heatTransfer solvers: Added optional pressure reference

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.
This commit is contained in:
Henry Weller
2020-07-03 15:41:58 +01:00
parent 1611e0dbfb
commit 2f30c1364b
34 changed files with 328 additions and 68 deletions

View File

@ -16,26 +16,26 @@ FoamFile
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 1e5;
internalField uniform 0;
boundaryField
{
floor
{
type fixedFluxPressure;
value uniform 1e5;
value $internalField;
}
ceiling
{
type fixedFluxPressure;
value uniform 1e5;
value $internalField;
}
fixedWalls
{
type fixedFluxPressure;
value uniform 1e5;
value $internalField;
}
}

View File

@ -0,0 +1,21 @@
/*--------------------------------*- 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 1e5;
// ************************************************************************* //

View File

@ -17,32 +17,32 @@ FoamFile
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 1e5;
internalField uniform 0;
boundaryField
{
frontAndBack
{
type fixedFluxPressure;
value uniform 1e5;
value $internalField;
}
topAndBottom
{
type fixedFluxPressure;
value uniform 1e5;
value $internalField;
}
hot
{
type fixedFluxPressure;
value uniform 1e5;
value $internalField;
}
cold
{
type fixedFluxPressure;
value uniform 1e5;
value $internalField;
}
}

View File

@ -0,0 +1,21 @@
/*--------------------------------*- 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 1e5;
// ************************************************************************* //

View File

@ -17,7 +17,7 @@ FoamFile
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 101325;
internalField uniform 1e5;
boundaryField
{
@ -27,28 +27,31 @@ boundaryField
floor
{
type calculated;
value uniform 101325;
value $internalField;
}
ceiling
{
type calculated;
value uniform 101325;
value $internalField;
}
inlet
{
type calculated;
value uniform 101325;
value $internalField;
}
outlet
{
type calculated;
value uniform 101325;
value $internalField;
}
fixedWalls
{
type empty;
}
}

View File

@ -17,7 +17,7 @@ FoamFile
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 101325;
internalField uniform 0;
boundaryField
{
@ -27,31 +27,31 @@ boundaryField
floor
{
type fixedFluxPressure;
gradient uniform 0;
value uniform 101325;
value $internalField;
}
ceiling
{
type fixedFluxPressure;
gradient uniform 0;
value uniform 101325;
value $internalField;
}
inlet
{
type fixedFluxPressure;
gradient uniform 0;
value uniform 101325;
value $internalField;
}
outlet
{
type fixedValue;
value uniform 101325;
value $internalField;
}
fixedWalls
{
type empty;
}
}

View File

@ -0,0 +1,21 @@
/*--------------------------------*- 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 1e5;
// ************************************************************************* //

View File

@ -16,7 +16,7 @@ FoamFile
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 1e5;
internalField uniform 0;
boundaryField
{

View File

@ -0,0 +1,21 @@
/*--------------------------------*- 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 1e5;
// ************************************************************************* //

View File

@ -17,32 +17,32 @@ FoamFile
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 1e5;
internalField uniform 0;
boundaryField
{
frontAndBack
{
type fixedFluxPressure;
value uniform 1e5;
value $internalField;
}
topAndBottom
{
type fixedFluxPressure;
value uniform 1e5;
value $internalField;
}
hot
{
type fixedFluxPressure;
value uniform 1e5;
value $internalField;
}
cold
{
type fixedFluxPressure;
value uniform 1e5;
value $internalField;
}
}

View File

@ -0,0 +1,21 @@
/*--------------------------------*- 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 1e5;
// ************************************************************************* //

View File

@ -16,7 +16,7 @@ FoamFile
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 100000;
internalField uniform 1e5;
boundaryField
{

View File

@ -16,32 +16,32 @@ FoamFile
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 100000;
internalField uniform 0;
boundaryField
{
floor
{
type fixedFluxPressure;
value uniform 100000;
value $internalField;
}
ceiling
{
type fixedFluxPressure;
value uniform 100000;
value $internalField;
}
fixedWalls
{
type fixedFluxPressure;
value uniform 100000;
value $internalField;
}
box
{
type fixedFluxPressure;
value uniform 100000;
value $internalField;
}
}

View File

@ -0,0 +1,21 @@
/*--------------------------------*- 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 1e5;
// ************************************************************************* //

View File

@ -16,32 +16,32 @@ FoamFile
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 100000;
internalField uniform 1e5;
boundaryField
{
floor
{
type calculated;
value uniform 100000;
value $internalField;
}
ceiling
{
type calculated;
value uniform 100000;
value $internalField;
}
fixedWalls
{
type calculated;
value uniform 100000;
value $internalField;
}
box
{
type calculated;
value uniform 100000;
value $internalField;
}
}

View File

@ -16,32 +16,32 @@ FoamFile
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 100000;
internalField uniform 0;
boundaryField
{
floor
{
type fixedFluxPressure;
value uniform 100000;
value $internalField;
}
ceiling
{
type fixedFluxPressure;
value uniform 100000;
value $internalField;
}
fixedWalls
{
type fixedFluxPressure;
value uniform 100000;
value $internalField;
}
box
{
type fixedFluxPressure;
value uniform 100000;
value $internalField;
}
}

View File

@ -0,0 +1,21 @@
/*--------------------------------*- 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 1e5;
// ************************************************************************* //

View File

@ -23,19 +23,19 @@ boundaryField
floor
{
type fixedFluxPressure;
value uniform 0;
value $internalField;
}
ceiling
{
type fixedFluxPressure;
value uniform 0;
value $internalField;
}
fixedWalls
{
type fixedFluxPressure;
value uniform 0;
value $internalField;
}
}

View File

@ -26,7 +26,7 @@ boundaryField
wall
{
type fixedFluxPressure;
value uniform 0;
value $internalField;
}
}

View File

@ -18,20 +18,20 @@ FoamFile
dimensions [ 1 -1 -2 0 0 0 0 ];
internalField uniform $pInitial;
internalField uniform 0;
boundaryField
{
outlet
{
type fixedValue;
value uniform $pInitial;
value uniform 0;
}
inlet
{
type fixedFluxPressure;
value uniform $pInitial;
value uniform 0;
}
wall

View File

@ -0,0 +1,23 @@
/*--------------------------------*- 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;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "$FOAM_CASE/constant/initialConditions"
dimensions [1 -1 -2 0 0 0 0];
value $pInitial;
// ************************************************************************* //

View File

@ -17,7 +17,7 @@ FoamFile
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 100000;
internalField uniform 0;
boundaryField
{

View File

@ -0,0 +1,21 @@
/*--------------------------------*- 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 1e5;
// ************************************************************************* //

View File

@ -17,7 +17,7 @@ FoamFile
dimensions [ 1 -1 -2 0 0 0 0 ];
internalField uniform 1e6;
internalField uniform 0;
boundaryField
{

View File

@ -0,0 +1,21 @@
/*--------------------------------*- 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;
// ************************************************************************* //