tutorials/modules/CHT/wallBoiling: CHT version of the Euler-Euler wall-boiling case
Supersedes and replaces the tutorials/modules/multiphaseEuler/wallBoiling case as it is more physical and representative of a real case. Patch contributed by Juho Peltola, VTT.
This commit is contained in:
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "5";
|
||||
object T.gas;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -34,8 +33,7 @@ boundaryField
|
||||
}
|
||||
wall
|
||||
{
|
||||
type copiedFixedValue;
|
||||
sourceFieldName T.liquid;
|
||||
type coupledMultiphaseTemperature;
|
||||
value $internalField;
|
||||
}
|
||||
front
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object T.liquid;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -34,10 +33,7 @@ boundaryField
|
||||
}
|
||||
wall
|
||||
{
|
||||
type fixedMultiphaseHeatFlux;
|
||||
relax 0.6;
|
||||
q uniform 0;
|
||||
phase "liquid";
|
||||
type coupledMultiphaseTemperature;
|
||||
value $internalField;
|
||||
}
|
||||
front
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volVectorField;
|
||||
location "0";
|
||||
object U.gas;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volVectorField;
|
||||
location "0";
|
||||
object U.liquid;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object alpha.gas;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object alpha.liquid;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object alphat.gas;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object alphat.liquid;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -37,7 +36,7 @@ boundaryField
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
relax 0.6;
|
||||
relax 1.0;
|
||||
otherPhase gas;
|
||||
phaseType liquid;
|
||||
partitioningModel
|
||||
48
tutorials/modules/CHT/wallBoiling/0/fluid/dDeparture.liquid
Normal file
48
tutorials/modules/CHT/wallBoiling/0/fluid/dDeparture.liquid
Normal file
@ -0,0 +1,48 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
object dDeparture.liquid;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 0 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
front
|
||||
{
|
||||
type wedge;
|
||||
}
|
||||
back
|
||||
{
|
||||
type wedge;
|
||||
}
|
||||
wall
|
||||
{
|
||||
type calculated;
|
||||
value uniform 1e-05;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object epsilon.gas;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object epsilon.liquid;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
48
tutorials/modules/CHT/wallBoiling/0/fluid/fDeparture.liquid
Normal file
48
tutorials/modules/CHT/wallBoiling/0/fluid/fDeparture.liquid
Normal file
@ -0,0 +1,48 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
object fDeparture.liquid;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 0 -1 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
front
|
||||
{
|
||||
type wedge;
|
||||
}
|
||||
back
|
||||
{
|
||||
type wedge;
|
||||
}
|
||||
wall
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object k.gas;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object k.liquid;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -0,0 +1,48 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
object nucleationSiteDensity.liquid;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 -2 0 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
front
|
||||
{
|
||||
type wedge;
|
||||
}
|
||||
back
|
||||
{
|
||||
type wedge;
|
||||
}
|
||||
wall
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object nut.gas;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object nut.liquid;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object omega.gas;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object omega.liquid;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object p;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -9,7 +9,6 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "5";
|
||||
object p_rgh;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -0,0 +1,48 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
object qEvaporative.liquid;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [1 0 -3 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
front
|
||||
{
|
||||
type wedge;
|
||||
}
|
||||
back
|
||||
{
|
||||
type wedge;
|
||||
}
|
||||
wall
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
48
tutorials/modules/CHT/wallBoiling/0/fluid/qQuenching.liquid
Normal file
48
tutorials/modules/CHT/wallBoiling/0/fluid/qQuenching.liquid
Normal file
@ -0,0 +1,48 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
object qQuenching.liquid;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [1 0 -3 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
front
|
||||
{
|
||||
type wedge;
|
||||
}
|
||||
back
|
||||
{
|
||||
type wedge;
|
||||
}
|
||||
wall
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
48
tutorials/modules/CHT/wallBoiling/0/fluid/wetFraction.liquid
Normal file
48
tutorials/modules/CHT/wallBoiling/0/fluid/wetFraction.liquid
Normal file
@ -0,0 +1,48 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
object wetFraction.liquid;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 0 0 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
front
|
||||
{
|
||||
type wedge;
|
||||
}
|
||||
back
|
||||
{
|
||||
type wedge;
|
||||
}
|
||||
wall
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
52
tutorials/modules/CHT/wallBoiling/0/solid/T
Normal file
52
tutorials/modules/CHT/wallBoiling/0/solid/T
Normal file
@ -0,0 +1,52 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
object T;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [ 0 0 0 1 0 0 0 ];
|
||||
|
||||
internalField uniform 350;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
wall_inner
|
||||
{
|
||||
type coupledTemperature;
|
||||
Tnbr T.liquid;
|
||||
value $internalField;
|
||||
}
|
||||
wall_outer
|
||||
{
|
||||
type externalTemperature;
|
||||
q uniform 61150.34;
|
||||
value $internalField;
|
||||
}
|
||||
top
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
bottom
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
front
|
||||
{
|
||||
type wedge;
|
||||
}
|
||||
back
|
||||
{
|
||||
type wedge;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -6,21 +6,17 @@ cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication extrudeMesh
|
||||
runApplication decomposePar
|
||||
runApplication splitMeshRegions -cellZones -overwrite
|
||||
runApplication foamDictionary constant/fluid/polyMesh/boundary -entry entry0/inlet/neighbourRegion -set "fluid"
|
||||
paraFoam -region fluid -touch
|
||||
paraFoam -region solid -touch
|
||||
|
||||
runApplication decomposePar -allRegions
|
||||
|
||||
runParallel $(getApplication)
|
||||
|
||||
if ! isTest "$@"
|
||||
then
|
||||
runApplication -a foamDictionary system/controlDict -entry endTime -set 4
|
||||
runApplication -a foamDictionary system/controlDict -entry startTime -set 0.5
|
||||
runParallel -a foamDictionary 0.5/T.liquid -entry boundaryField/wall/q -set "uniform 73890"
|
||||
runParallel -a foamDictionary 0.5/U.liquid -entry boundaryField/inlet/type -set "fixedValue"
|
||||
runParallel -a $(getApplication)
|
||||
fi
|
||||
|
||||
runApplication reconstructPar -latestTime
|
||||
runApplication foamPostProcess -latestTime -func "
|
||||
runApplication reconstructPar -latestTime -allRegions
|
||||
runApplication foamPostProcess -latestTime -region fluid -func "
|
||||
graphCell
|
||||
(
|
||||
funcName=graph,
|
||||
@ -31,7 +27,7 @@ runApplication foamPostProcess -latestTime -func "
|
||||
|
||||
./validation/createGraphs
|
||||
|
||||
runApplication -append foamPostProcess -latestTime -func "
|
||||
runApplication -append foamPostProcess -region fluid -latestTime -func "
|
||||
patchSurface
|
||||
(
|
||||
funcName=patchWallBoilingProperties,
|
||||
@ -0,0 +1,37 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object physicalProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
thermoType constSolidThermo;
|
||||
|
||||
rho
|
||||
{
|
||||
type uniform;
|
||||
value 8000;
|
||||
}
|
||||
|
||||
Cv
|
||||
{
|
||||
type uniform;
|
||||
value 500;
|
||||
}
|
||||
|
||||
kappa
|
||||
{
|
||||
type uniform;
|
||||
value 16.3;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -17,8 +17,10 @@ backgroundMesh
|
||||
{
|
||||
length 3.5;
|
||||
rA 0.0096;
|
||||
rB 0.0116;
|
||||
lengthCells 350;
|
||||
rAcells 40;
|
||||
rBcells 10;
|
||||
}
|
||||
|
||||
convertToMeters 1;
|
||||
@ -34,14 +36,22 @@ vertices
|
||||
($!backgroundMesh/length 0 0)
|
||||
( 0 $!backgroundMesh/rA 0)
|
||||
($!backgroundMesh/length $!backgroundMesh/rA 0)
|
||||
|
||||
( 0 $!backgroundMesh/rA -1)
|
||||
($!backgroundMesh/length $!backgroundMesh/rA -1)
|
||||
( 0 $!backgroundMesh/rB -1)
|
||||
($!backgroundMesh/length $!backgroundMesh/rB -1)
|
||||
|
||||
( 0 $!backgroundMesh/rA 0)
|
||||
($!backgroundMesh/length $!backgroundMesh/rA 0)
|
||||
( 0 $!backgroundMesh/rB 0)
|
||||
($!backgroundMesh/length $!backgroundMesh/rB 0)
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
hex (0 1 3 2 4 5 7 6)
|
||||
($!backgroundMesh/lengthCells $!backgroundMesh/rAcells 1)
|
||||
simpleGrading (1 0.5 1)
|
||||
|
||||
hex (0 1 3 2 4 5 7 6) fluid ($!backgroundMesh/lengthCells $!backgroundMesh/rAcells 1) simpleGrading (1 0.5 1)
|
||||
hex (8 9 11 10 12 13 15 14) solid ($!backgroundMesh/lengthCells $!backgroundMesh/rBcells 1) simpleGrading (1 2 1)
|
||||
);
|
||||
|
||||
boundary
|
||||
@ -49,6 +59,7 @@ boundary
|
||||
inlet
|
||||
{
|
||||
type mappedInternal;
|
||||
neighbourRegion fluid;
|
||||
offset (0.05 0 0);
|
||||
faces
|
||||
(
|
||||
@ -68,7 +79,8 @@ boundary
|
||||
type symmetry;
|
||||
faces
|
||||
(
|
||||
(4 5 7 6)
|
||||
(4 5 7 6)
|
||||
(12 13 15 14)
|
||||
);
|
||||
}
|
||||
|
||||
@ -78,16 +90,55 @@ boundary
|
||||
faces
|
||||
(
|
||||
(0 1 3 2)
|
||||
(8 9 11 10)
|
||||
);
|
||||
}
|
||||
|
||||
wall
|
||||
{
|
||||
type mappedWall;
|
||||
neighbourRegion solid;
|
||||
neighbourPatch wall_inner
|
||||
transformType none;
|
||||
faces
|
||||
(
|
||||
(3 2 6 7)
|
||||
(1 0 4 5)
|
||||
);
|
||||
}
|
||||
bottom
|
||||
{
|
||||
type wall;
|
||||
faces
|
||||
(
|
||||
(3 2 6 7)
|
||||
(1 0 4 5)
|
||||
(8 12 14 10)
|
||||
);
|
||||
}
|
||||
top
|
||||
{
|
||||
type wall;
|
||||
faces
|
||||
(
|
||||
(9 13 15 11)
|
||||
);
|
||||
}
|
||||
wall_inner
|
||||
{
|
||||
type mappedWall;
|
||||
neighbourRegion fluid;
|
||||
neighbourPatch wall
|
||||
transformType none;
|
||||
faces
|
||||
(
|
||||
(9 8 12 13)
|
||||
);
|
||||
}
|
||||
wall_outer
|
||||
{
|
||||
type wall;
|
||||
faces
|
||||
(
|
||||
(11 10 14 15)
|
||||
);
|
||||
}
|
||||
);
|
||||
@ -14,9 +14,13 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
application foamRun;
|
||||
application foamMultiRun;
|
||||
|
||||
solver multiphaseEuler;
|
||||
regionSolvers
|
||||
{
|
||||
fluid multiphaseEuler;
|
||||
solid solid;
|
||||
}
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
@ -24,7 +28,7 @@ startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 0.5;
|
||||
endTime 10;
|
||||
|
||||
deltaT 0.0001;
|
||||
|
||||
@ -50,15 +54,22 @@ adjustTimeStep yes;
|
||||
|
||||
maxCo 0.5;
|
||||
|
||||
maxDeltaT 0.001;
|
||||
maxDi 200;
|
||||
|
||||
maxDeltaT 0.005;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc wallHeatFlux(funcName=WHFliquid, writeFields=false, phase=liquid, region=fluid)
|
||||
#includeFunc wallHeatFlux(funcName=WHFgas, writeFields=false, phase=gas, region=fluid)
|
||||
#includeFunc wallHeatFlux(funcName=WHFsolid, writeFields=false, region=solid, log=yes)
|
||||
|
||||
writeWallBoilingProperties
|
||||
{
|
||||
type wallBoilingProperties;
|
||||
functionObjectLibs ( "libmultiphaseEulerFoamFunctionObjects.so" );
|
||||
writeControl writeTime;
|
||||
region fluid;
|
||||
phase liquid;
|
||||
}
|
||||
outflow
|
||||
@ -67,6 +78,7 @@ functions
|
||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||
log yes;
|
||||
writeFields false;
|
||||
region fluid;
|
||||
regionType patch;
|
||||
name outlet;
|
||||
operation sum;
|
||||
@ -78,6 +90,7 @@ functions
|
||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||
log yes;
|
||||
writeFields false;
|
||||
region fluid;
|
||||
regionType patch;
|
||||
name inlet;
|
||||
operation sum;
|
||||
@ -89,6 +102,7 @@ functions
|
||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||
log yes;
|
||||
writeFields false;
|
||||
region fluid;
|
||||
regionType patch;
|
||||
name outlet;
|
||||
operation sum;
|
||||
@ -101,6 +115,7 @@ functions
|
||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||
log yes;
|
||||
writeFields false;
|
||||
region fluid;
|
||||
regionType patch;
|
||||
name outlet;
|
||||
operation sum;
|
||||
@ -113,6 +128,7 @@ functions
|
||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||
log yes;
|
||||
writeFields false;
|
||||
region fluid;
|
||||
regionType patch;
|
||||
name inlet;
|
||||
operation sum;
|
||||
@ -125,6 +141,7 @@ functions
|
||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||
log yes;
|
||||
writeFields false;
|
||||
region fluid;
|
||||
regionType patch;
|
||||
name inlet;
|
||||
operation sum;
|
||||
@ -135,6 +152,7 @@ functions
|
||||
{
|
||||
type writeObjects;
|
||||
libs ("libutilityFunctionObjects.so");
|
||||
region fluid;
|
||||
|
||||
objects
|
||||
(
|
||||
75
tutorials/modules/CHT/wallBoiling/system/fvSchemes
Normal file
75
tutorials/modules/CHT/wallBoiling/system/fvSchemes
Normal file
@ -0,0 +1,75 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default Euler;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
limited cellLimited Gauss linear 1;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
|
||||
div(phi,alpha) Gauss vanLeer;
|
||||
div(phir,alpha) Gauss vanLeer;
|
||||
|
||||
div(alphaRhoPhi,U) Gauss linearUpwind limited;
|
||||
div(phi,U) Gauss linearUpwind limited;
|
||||
|
||||
div(alphaRhoPhi,Yi) Gauss linearUpwind limited;
|
||||
"div\(alphaRhoPhi,(h|e)\)" Gauss linearUpwind limited;
|
||||
div(alphaRhoPhi,K) Gauss linearUpwind limited;
|
||||
div(alphaRhoPhi,(p|rho)) Gauss linearUpwind limited;
|
||||
"div\(alphaRhoPhi,(k|epsilon|omega)\)" Gauss linearUpwind limited;
|
||||
"div\(phim,(k|epsilon)m\)" Gauss linearUpwind limited;
|
||||
|
||||
div((((alpha*rho)*nuEff)*dev2(T(grad(U))))) Gauss linear;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default Gauss linear corrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default corrected;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
}
|
||||
|
||||
wallDist
|
||||
{
|
||||
method meshWave;
|
||||
nRequired yes;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
87
tutorials/modules/CHT/wallBoiling/system/fvSolution
Normal file
87
tutorials/modules/CHT/wallBoiling/system/fvSolution
Normal file
@ -0,0 +1,87 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solvers
|
||||
{
|
||||
"alpha.*"
|
||||
{
|
||||
nAlphaCorr 1;
|
||||
nAlphaSubCycles 1;
|
||||
}
|
||||
|
||||
p_rgh
|
||||
{
|
||||
solver GAMG;
|
||||
smoother DIC;
|
||||
tolerance 1e-8;
|
||||
relTol 0.01;
|
||||
maxIter 20;
|
||||
minIter 2;
|
||||
}
|
||||
|
||||
p_rghFinal
|
||||
{
|
||||
$p_rgh;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
"(e|h).*"
|
||||
{
|
||||
solver PBiCGStab;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-12;
|
||||
relTol 0.001;
|
||||
minIter 1;
|
||||
maxIter 20;
|
||||
}
|
||||
|
||||
"(k|epsilon|omega).*"
|
||||
{
|
||||
solver PBiCGStab;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-8;
|
||||
relTol 0;
|
||||
minIter 1;
|
||||
}
|
||||
}
|
||||
|
||||
PIMPLE
|
||||
{
|
||||
nOuterCorrectors 1;
|
||||
nCorrectors 1;
|
||||
nNonOrthogonalCorrectors 0;
|
||||
nEnergyCorrectors 1;
|
||||
|
||||
faceMomentum yes;
|
||||
|
||||
}
|
||||
|
||||
relaxationFactors
|
||||
{
|
||||
fields
|
||||
{
|
||||
thermalPhaseChange:dmdtf 1.0;
|
||||
}
|
||||
|
||||
equations
|
||||
{
|
||||
".*" 1;
|
||||
"h\..*" 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
46
tutorials/modules/CHT/wallBoiling/system/solid/fvSchemes
Normal file
46
tutorials/modules/CHT/wallBoiling/system/solid/fvSchemes
Normal file
@ -0,0 +1,46 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default Euler;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default Gauss linear uncorrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default uncorrected;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
46
tutorials/modules/CHT/wallBoiling/system/solid/fvSolution
Normal file
46
tutorials/modules/CHT/wallBoiling/system/solid/fvSolution
Normal file
@ -0,0 +1,46 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object fvSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solvers
|
||||
{
|
||||
e
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
tolerance 1e-06;
|
||||
relTol 0.1;
|
||||
}
|
||||
|
||||
eFinal
|
||||
{
|
||||
$e;
|
||||
relTol 0;
|
||||
}
|
||||
}
|
||||
|
||||
PIMPLE
|
||||
{
|
||||
nNonOrthogonalCorrectors 0;
|
||||
}
|
||||
|
||||
relaxationFactors
|
||||
{
|
||||
equations
|
||||
{
|
||||
".*" 1;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -7,7 +7,7 @@ then
|
||||
fi
|
||||
|
||||
graphFile=$(foamListTimes -latestTime)/line.xy
|
||||
surfaceFile=$(cd postProcessing/inflow && ls -1tr */* | tail -n 1)
|
||||
surfaceFile=$(cd postProcessing/fluid/inflow && ls -1tr */* | tail -n 1)
|
||||
|
||||
gnuplot<<EOF
|
||||
|
||||
@ -26,45 +26,45 @@ gnuplot<<EOF
|
||||
|
||||
set ylabel 'Void fraction (-)'
|
||||
plot \
|
||||
"postProcessing/graph/$graphFile" \
|
||||
"postProcessing/fluid/graph/$graphFile" \
|
||||
u (\$1/0.0096):2 w lp lt 1 t 'Simulation', \
|
||||
'./validation/exptData/vof_deb1.txt' \
|
||||
u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
|
||||
|
||||
set ylabel 'Liquid temperature (K)'
|
||||
plot \
|
||||
"postProcessing/graph/$graphFile" \
|
||||
"postProcessing/fluid/graph/$graphFile" \
|
||||
u (\$1/0.0096):3 w lp lt 1 t 'Simulation', \
|
||||
'./validation/exptData/T_deb1.txt' \
|
||||
u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
|
||||
|
||||
set key at graph 0.99,0.95
|
||||
set xlabel 'Time (s)'
|
||||
set xrange [0.5:4]
|
||||
set xrange [0.5:10]
|
||||
|
||||
set ylabel 'Mass in- and outflow (kg/s)'
|
||||
set yrange [0.5:0.8]
|
||||
plot \
|
||||
'./postProcessing/inflow/$surfaceFile' \
|
||||
every ::4::10000 u 1:(-1*360*\$3) w l lt 1 t 'liquid inflow', \
|
||||
'./postProcessing/outflow/$surfaceFile' \
|
||||
every ::4::10000 u 1:(360*\$3) w l lt 3 t 'liquid outflow', \
|
||||
'./postProcessing/outflow/$surfaceFile' \
|
||||
every ::4::10000 u 1:(360*\$2+360*\$3) w l lt 4 t 'liquid + vapor outflow'
|
||||
'./postProcessing/fluid/inflow/$surfaceFile' \
|
||||
every ::4::20000 u 1:(-1*360*\$3) w l lt 1 t 'liquid inflow', \
|
||||
'./postProcessing/fluid/outflow/$surfaceFile' \
|
||||
every ::4::20000 u 1:(360*\$3) w l lt 3 t 'liquid outflow', \
|
||||
'./postProcessing/fluid/outflow/$surfaceFile' \
|
||||
every ::4::20000 u 1:(360*\$2+360*\$3) w l lt 4 t 'liquid + vapor outflow'
|
||||
|
||||
set ylabel 'Enthalpy in- and outflow (J/s)'
|
||||
set yrange [1.5e5:2.0e5]
|
||||
plot \
|
||||
'./postProcessing/inletLiquid/$surfaceFile' \
|
||||
every ::4::10000 u 1:(-1*360*\$2) w l lt 1 t 'liquid inflow', \
|
||||
'./postProcessing/inletLiquid/$surfaceFile' \
|
||||
every ::4::10000 u 1:(-1*360*\$2+360*A*q) w l lt 8 t 'liquid inflow + wall heat flux', \
|
||||
'./postProcessing/outletLiquid/$surfaceFile' \
|
||||
every ::4::10000 u 1:(360*\$2) w l lt 3 t 'liquid outflow', \
|
||||
'./postProcessing/fluid/inletLiquid/$surfaceFile' \
|
||||
every ::4::20000 u 1:(-1*360*\$2) w l lt 1 t 'liquid inflow', \
|
||||
'./postProcessing/fluid/inletLiquid/$surfaceFile' \
|
||||
every ::4::20000 u 1:(-1*360*\$2+360*A*q) w l lt 8 t 'liquid inflow + wall heat flux', \
|
||||
'./postProcessing/fluid/outletLiquid/$surfaceFile' \
|
||||
every ::4::20000 u 1:(360*\$2) w l lt 3 t 'liquid outflow', \
|
||||
"<paste \
|
||||
./postProcessing/outletLiquid/$surfaceFile \
|
||||
./postProcessing/outletGas/$surfaceFile" \
|
||||
every ::4::10000 u 1:(360*\$2+360*\$4) w l lt 4 t 'liquid + vapor outflow'
|
||||
./postProcessing/fluid/outletLiquid/$surfaceFile \
|
||||
./postProcessing/fluid/outletGas/$surfaceFile" \
|
||||
every ::4::20000 u 1:(360*\$2+360*\$4) w l lt 4 t 'liquid + vapor outflow'
|
||||
|
||||
unset multiplot
|
||||
|
||||
@ -22,22 +22,22 @@ gnuplot<<EOF
|
||||
|
||||
set xlabel 'Departure diameter (mm)'
|
||||
plot \
|
||||
"postProcessing/patchWallBoilingProperties/$graphFile" \
|
||||
"postProcessing/fluid/patchWallBoilingProperties/$graphFile" \
|
||||
u (\$4*1000):1 w lp lt 1 t 'Simulation' \
|
||||
|
||||
set xlabel 'Departure frequency (Hz)'
|
||||
plot \
|
||||
"postProcessing/patchWallBoilingProperties/$graphFile" \
|
||||
"postProcessing/fluid/patchWallBoilingProperties/$graphFile" \
|
||||
u 5:1 w lp lt 1 t 'Simulation' \
|
||||
|
||||
set xlabel 'Nucleation Site Density (1/m^2)'
|
||||
plot \
|
||||
"postProcessing/patchWallBoilingProperties/$graphFile" \
|
||||
"postProcessing/fluid/patchWallBoilingProperties/$graphFile" \
|
||||
u 5:1 w lp lt 1 t 'Simulation' \
|
||||
|
||||
set xlabel 'Heat flux partitioning function, liquid (-)'
|
||||
plot \
|
||||
"postProcessing/patchWallBoilingProperties/$graphFile" \
|
||||
"postProcessing/fluid/patchWallBoilingProperties/$graphFile" \
|
||||
u 7:1 w lp lt 1 t 'Simulation' \
|
||||
|
||||
set key at graph 0.99,0.95
|
||||
Reference in New Issue
Block a user