Added optional pressure reference pRef to p_rgh in buoyantPimpleFoam, buoyantSimpleFoam and chtMultiRegionFoam which handles cases in which the pressure variation is small compared to the pressure level more accurately. The pRef value is provided in the optional constant/pRef file. All tutorials and templates have been updated to use pRef as appropriate.
22 lines
765 B
C++
22 lines
765 B
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class uniformDimensionedScalarField;
|
|
location "constant";
|
|
object pRef;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
dimensions [1 -1 -2 0 0 0 0];
|
|
value 1e6;
|
|
|
|
// ************************************************************************* //
|