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;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "5";
|
|
||||||
object T.gas;
|
object T.gas;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -34,8 +33,7 @@ boundaryField
|
|||||||
}
|
}
|
||||||
wall
|
wall
|
||||||
{
|
{
|
||||||
type copiedFixedValue;
|
type coupledMultiphaseTemperature;
|
||||||
sourceFieldName T.liquid;
|
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
front
|
front
|
||||||
@ -9,7 +9,6 @@ FoamFile
|
|||||||
{
|
{
|
||||||
format ascii;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "0";
|
|
||||||
object T.liquid;
|
object T.liquid;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -34,10 +33,7 @@ boundaryField
|
|||||||
}
|
}
|
||||||
wall
|
wall
|
||||||
{
|
{
|
||||||
type fixedMultiphaseHeatFlux;
|
type coupledMultiphaseTemperature;
|
||||||
relax 0.6;
|
|
||||||
q uniform 0;
|
|
||||||
phase "liquid";
|
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
front
|
front
|
||||||
@ -9,7 +9,6 @@ FoamFile
|
|||||||
{
|
{
|
||||||
format ascii;
|
format ascii;
|
||||||
class volVectorField;
|
class volVectorField;
|
||||||
location "0";
|
|
||||||
object U.gas;
|
object U.gas;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -9,7 +9,6 @@ FoamFile
|
|||||||
{
|
{
|
||||||
format ascii;
|
format ascii;
|
||||||
class volVectorField;
|
class volVectorField;
|
||||||
location "0";
|
|
||||||
object U.liquid;
|
object U.liquid;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -9,7 +9,6 @@ FoamFile
|
|||||||
{
|
{
|
||||||
format ascii;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "0";
|
|
||||||
object alpha.gas;
|
object alpha.gas;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -9,7 +9,6 @@ FoamFile
|
|||||||
{
|
{
|
||||||
format ascii;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "0";
|
|
||||||
object alpha.liquid;
|
object alpha.liquid;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -9,7 +9,6 @@ FoamFile
|
|||||||
{
|
{
|
||||||
format ascii;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "0";
|
|
||||||
object alphat.gas;
|
object alphat.gas;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -9,7 +9,6 @@ FoamFile
|
|||||||
{
|
{
|
||||||
format ascii;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "0";
|
|
||||||
object alphat.liquid;
|
object alphat.liquid;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -37,7 +36,7 @@ boundaryField
|
|||||||
Cmu 0.09;
|
Cmu 0.09;
|
||||||
kappa 0.41;
|
kappa 0.41;
|
||||||
E 9.8;
|
E 9.8;
|
||||||
relax 0.6;
|
relax 1.0;
|
||||||
otherPhase gas;
|
otherPhase gas;
|
||||||
phaseType liquid;
|
phaseType liquid;
|
||||||
partitioningModel
|
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;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "0";
|
|
||||||
object epsilon.gas;
|
object epsilon.gas;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -9,7 +9,6 @@ FoamFile
|
|||||||
{
|
{
|
||||||
format ascii;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "0";
|
|
||||||
object epsilon.liquid;
|
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;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "0";
|
|
||||||
object k.gas;
|
object k.gas;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -9,7 +9,6 @@ FoamFile
|
|||||||
{
|
{
|
||||||
format ascii;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "0";
|
|
||||||
object k.liquid;
|
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;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "0";
|
|
||||||
object nut.gas;
|
object nut.gas;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -9,7 +9,6 @@ FoamFile
|
|||||||
{
|
{
|
||||||
format ascii;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "0";
|
|
||||||
object nut.liquid;
|
object nut.liquid;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -9,7 +9,6 @@ FoamFile
|
|||||||
{
|
{
|
||||||
format ascii;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "0";
|
|
||||||
object omega.gas;
|
object omega.gas;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -9,7 +9,6 @@ FoamFile
|
|||||||
{
|
{
|
||||||
format ascii;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "0";
|
|
||||||
object omega.liquid;
|
object omega.liquid;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -9,7 +9,6 @@ FoamFile
|
|||||||
{
|
{
|
||||||
format ascii;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "0";
|
|
||||||
object p;
|
object p;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -9,7 +9,6 @@ FoamFile
|
|||||||
{
|
{
|
||||||
format ascii;
|
format ascii;
|
||||||
class volScalarField;
|
class volScalarField;
|
||||||
location "5";
|
|
||||||
object p_rgh;
|
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 blockMesh
|
||||||
runApplication extrudeMesh
|
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)
|
runParallel $(getApplication)
|
||||||
|
|
||||||
if ! isTest "$@"
|
runApplication reconstructPar -latestTime -allRegions
|
||||||
then
|
runApplication foamPostProcess -latestTime -region fluid -func "
|
||||||
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 "
|
|
||||||
graphCell
|
graphCell
|
||||||
(
|
(
|
||||||
funcName=graph,
|
funcName=graph,
|
||||||
@ -31,7 +27,7 @@ runApplication foamPostProcess -latestTime -func "
|
|||||||
|
|
||||||
./validation/createGraphs
|
./validation/createGraphs
|
||||||
|
|
||||||
runApplication -append foamPostProcess -latestTime -func "
|
runApplication -append foamPostProcess -region fluid -latestTime -func "
|
||||||
patchSurface
|
patchSurface
|
||||||
(
|
(
|
||||||
funcName=patchWallBoilingProperties,
|
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;
|
length 3.5;
|
||||||
rA 0.0096;
|
rA 0.0096;
|
||||||
|
rB 0.0116;
|
||||||
lengthCells 350;
|
lengthCells 350;
|
||||||
rAcells 40;
|
rAcells 40;
|
||||||
|
rBcells 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
convertToMeters 1;
|
convertToMeters 1;
|
||||||
@ -34,14 +36,22 @@ vertices
|
|||||||
($!backgroundMesh/length 0 0)
|
($!backgroundMesh/length 0 0)
|
||||||
( 0 $!backgroundMesh/rA 0)
|
( 0 $!backgroundMesh/rA 0)
|
||||||
($!backgroundMesh/length $!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
|
blocks
|
||||||
(
|
(
|
||||||
hex (0 1 3 2 4 5 7 6)
|
hex (0 1 3 2 4 5 7 6) fluid ($!backgroundMesh/lengthCells $!backgroundMesh/rAcells 1) simpleGrading (1 0.5 1)
|
||||||
($!backgroundMesh/lengthCells $!backgroundMesh/rAcells 1)
|
hex (8 9 11 10 12 13 15 14) solid ($!backgroundMesh/lengthCells $!backgroundMesh/rBcells 1) simpleGrading (1 2 1)
|
||||||
simpleGrading (1 0.5 1)
|
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
boundary
|
boundary
|
||||||
@ -49,6 +59,7 @@ boundary
|
|||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type mappedInternal;
|
type mappedInternal;
|
||||||
|
neighbourRegion fluid;
|
||||||
offset (0.05 0 0);
|
offset (0.05 0 0);
|
||||||
faces
|
faces
|
||||||
(
|
(
|
||||||
@ -69,6 +80,7 @@ boundary
|
|||||||
faces
|
faces
|
||||||
(
|
(
|
||||||
(4 5 7 6)
|
(4 5 7 6)
|
||||||
|
(12 13 15 14)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,18 +90,57 @@ boundary
|
|||||||
faces
|
faces
|
||||||
(
|
(
|
||||||
(0 1 3 2)
|
(0 1 3 2)
|
||||||
|
(8 9 11 10)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
wall
|
wall
|
||||||
{
|
{
|
||||||
type wall;
|
type mappedWall;
|
||||||
|
neighbourRegion solid;
|
||||||
|
neighbourPatch wall_inner
|
||||||
|
transformType none;
|
||||||
faces
|
faces
|
||||||
(
|
(
|
||||||
(3 2 6 7)
|
(3 2 6 7)
|
||||||
(1 0 4 5)
|
(1 0 4 5)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
bottom
|
||||||
|
{
|
||||||
|
type wall;
|
||||||
|
faces
|
||||||
|
(
|
||||||
|
(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;
|
startFrom startTime;
|
||||||
|
|
||||||
@ -24,7 +28,7 @@ startTime 0;
|
|||||||
|
|
||||||
stopAt endTime;
|
stopAt endTime;
|
||||||
|
|
||||||
endTime 0.5;
|
endTime 10;
|
||||||
|
|
||||||
deltaT 0.0001;
|
deltaT 0.0001;
|
||||||
|
|
||||||
@ -50,15 +54,22 @@ adjustTimeStep yes;
|
|||||||
|
|
||||||
maxCo 0.5;
|
maxCo 0.5;
|
||||||
|
|
||||||
maxDeltaT 0.001;
|
maxDi 200;
|
||||||
|
|
||||||
|
maxDeltaT 0.005;
|
||||||
|
|
||||||
functions
|
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
|
writeWallBoilingProperties
|
||||||
{
|
{
|
||||||
type wallBoilingProperties;
|
type wallBoilingProperties;
|
||||||
functionObjectLibs ( "libmultiphaseEulerFoamFunctionObjects.so" );
|
functionObjectLibs ( "libmultiphaseEulerFoamFunctionObjects.so" );
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
|
region fluid;
|
||||||
phase liquid;
|
phase liquid;
|
||||||
}
|
}
|
||||||
outflow
|
outflow
|
||||||
@ -67,6 +78,7 @@ functions
|
|||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
log yes;
|
log yes;
|
||||||
writeFields false;
|
writeFields false;
|
||||||
|
region fluid;
|
||||||
regionType patch;
|
regionType patch;
|
||||||
name outlet;
|
name outlet;
|
||||||
operation sum;
|
operation sum;
|
||||||
@ -78,6 +90,7 @@ functions
|
|||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
log yes;
|
log yes;
|
||||||
writeFields false;
|
writeFields false;
|
||||||
|
region fluid;
|
||||||
regionType patch;
|
regionType patch;
|
||||||
name inlet;
|
name inlet;
|
||||||
operation sum;
|
operation sum;
|
||||||
@ -89,6 +102,7 @@ functions
|
|||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
log yes;
|
log yes;
|
||||||
writeFields false;
|
writeFields false;
|
||||||
|
region fluid;
|
||||||
regionType patch;
|
regionType patch;
|
||||||
name outlet;
|
name outlet;
|
||||||
operation sum;
|
operation sum;
|
||||||
@ -101,6 +115,7 @@ functions
|
|||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
log yes;
|
log yes;
|
||||||
writeFields false;
|
writeFields false;
|
||||||
|
region fluid;
|
||||||
regionType patch;
|
regionType patch;
|
||||||
name outlet;
|
name outlet;
|
||||||
operation sum;
|
operation sum;
|
||||||
@ -113,6 +128,7 @@ functions
|
|||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
log yes;
|
log yes;
|
||||||
writeFields false;
|
writeFields false;
|
||||||
|
region fluid;
|
||||||
regionType patch;
|
regionType patch;
|
||||||
name inlet;
|
name inlet;
|
||||||
operation sum;
|
operation sum;
|
||||||
@ -125,6 +141,7 @@ functions
|
|||||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
log yes;
|
log yes;
|
||||||
writeFields false;
|
writeFields false;
|
||||||
|
region fluid;
|
||||||
regionType patch;
|
regionType patch;
|
||||||
name inlet;
|
name inlet;
|
||||||
operation sum;
|
operation sum;
|
||||||
@ -135,6 +152,7 @@ functions
|
|||||||
{
|
{
|
||||||
type writeObjects;
|
type writeObjects;
|
||||||
libs ("libutilityFunctionObjects.so");
|
libs ("libutilityFunctionObjects.so");
|
||||||
|
region fluid;
|
||||||
|
|
||||||
objects
|
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
|
fi
|
||||||
|
|
||||||
graphFile=$(foamListTimes -latestTime)/line.xy
|
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
|
gnuplot<<EOF
|
||||||
|
|
||||||
@ -26,45 +26,45 @@ gnuplot<<EOF
|
|||||||
|
|
||||||
set ylabel 'Void fraction (-)'
|
set ylabel 'Void fraction (-)'
|
||||||
plot \
|
plot \
|
||||||
"postProcessing/graph/$graphFile" \
|
"postProcessing/fluid/graph/$graphFile" \
|
||||||
u (\$1/0.0096):2 w lp lt 1 t 'Simulation', \
|
u (\$1/0.0096):2 w lp lt 1 t 'Simulation', \
|
||||||
'./validation/exptData/vof_deb1.txt' \
|
'./validation/exptData/vof_deb1.txt' \
|
||||||
u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
|
u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
|
||||||
|
|
||||||
set ylabel 'Liquid temperature (K)'
|
set ylabel 'Liquid temperature (K)'
|
||||||
plot \
|
plot \
|
||||||
"postProcessing/graph/$graphFile" \
|
"postProcessing/fluid/graph/$graphFile" \
|
||||||
u (\$1/0.0096):3 w lp lt 1 t 'Simulation', \
|
u (\$1/0.0096):3 w lp lt 1 t 'Simulation', \
|
||||||
'./validation/exptData/T_deb1.txt' \
|
'./validation/exptData/T_deb1.txt' \
|
||||||
u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
|
u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
|
||||||
|
|
||||||
set key at graph 0.99,0.95
|
set key at graph 0.99,0.95
|
||||||
set xlabel 'Time (s)'
|
set xlabel 'Time (s)'
|
||||||
set xrange [0.5:4]
|
set xrange [0.5:10]
|
||||||
|
|
||||||
set ylabel 'Mass in- and outflow (kg/s)'
|
set ylabel 'Mass in- and outflow (kg/s)'
|
||||||
set yrange [0.5:0.8]
|
set yrange [0.5:0.8]
|
||||||
plot \
|
plot \
|
||||||
'./postProcessing/inflow/$surfaceFile' \
|
'./postProcessing/fluid/inflow/$surfaceFile' \
|
||||||
every ::4::10000 u 1:(-1*360*\$3) w l lt 1 t 'liquid inflow', \
|
every ::4::20000 u 1:(-1*360*\$3) w l lt 1 t 'liquid inflow', \
|
||||||
'./postProcessing/outflow/$surfaceFile' \
|
'./postProcessing/fluid/outflow/$surfaceFile' \
|
||||||
every ::4::10000 u 1:(360*\$3) w l lt 3 t 'liquid outflow', \
|
every ::4::20000 u 1:(360*\$3) w l lt 3 t 'liquid outflow', \
|
||||||
'./postProcessing/outflow/$surfaceFile' \
|
'./postProcessing/fluid/outflow/$surfaceFile' \
|
||||||
every ::4::10000 u 1:(360*\$2+360*\$3) w l lt 4 t 'liquid + vapor outflow'
|
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 ylabel 'Enthalpy in- and outflow (J/s)'
|
||||||
set yrange [1.5e5:2.0e5]
|
set yrange [1.5e5:2.0e5]
|
||||||
plot \
|
plot \
|
||||||
'./postProcessing/inletLiquid/$surfaceFile' \
|
'./postProcessing/fluid/inletLiquid/$surfaceFile' \
|
||||||
every ::4::10000 u 1:(-1*360*\$2) w l lt 1 t 'liquid inflow', \
|
every ::4::20000 u 1:(-1*360*\$2) w l lt 1 t 'liquid inflow', \
|
||||||
'./postProcessing/inletLiquid/$surfaceFile' \
|
'./postProcessing/fluid/inletLiquid/$surfaceFile' \
|
||||||
every ::4::10000 u 1:(-1*360*\$2+360*A*q) w l lt 8 t 'liquid inflow + wall heat flux', \
|
every ::4::20000 u 1:(-1*360*\$2+360*A*q) w l lt 8 t 'liquid inflow + wall heat flux', \
|
||||||
'./postProcessing/outletLiquid/$surfaceFile' \
|
'./postProcessing/fluid/outletLiquid/$surfaceFile' \
|
||||||
every ::4::10000 u 1:(360*\$2) w l lt 3 t 'liquid outflow', \
|
every ::4::20000 u 1:(360*\$2) w l lt 3 t 'liquid outflow', \
|
||||||
"<paste \
|
"<paste \
|
||||||
./postProcessing/outletLiquid/$surfaceFile \
|
./postProcessing/fluid/outletLiquid/$surfaceFile \
|
||||||
./postProcessing/outletGas/$surfaceFile" \
|
./postProcessing/fluid/outletGas/$surfaceFile" \
|
||||||
every ::4::10000 u 1:(360*\$2+360*\$4) w l lt 4 t 'liquid + vapor outflow'
|
every ::4::20000 u 1:(360*\$2+360*\$4) w l lt 4 t 'liquid + vapor outflow'
|
||||||
|
|
||||||
unset multiplot
|
unset multiplot
|
||||||
|
|
||||||
@ -22,22 +22,22 @@ gnuplot<<EOF
|
|||||||
|
|
||||||
set xlabel 'Departure diameter (mm)'
|
set xlabel 'Departure diameter (mm)'
|
||||||
plot \
|
plot \
|
||||||
"postProcessing/patchWallBoilingProperties/$graphFile" \
|
"postProcessing/fluid/patchWallBoilingProperties/$graphFile" \
|
||||||
u (\$4*1000):1 w lp lt 1 t 'Simulation' \
|
u (\$4*1000):1 w lp lt 1 t 'Simulation' \
|
||||||
|
|
||||||
set xlabel 'Departure frequency (Hz)'
|
set xlabel 'Departure frequency (Hz)'
|
||||||
plot \
|
plot \
|
||||||
"postProcessing/patchWallBoilingProperties/$graphFile" \
|
"postProcessing/fluid/patchWallBoilingProperties/$graphFile" \
|
||||||
u 5:1 w lp lt 1 t 'Simulation' \
|
u 5:1 w lp lt 1 t 'Simulation' \
|
||||||
|
|
||||||
set xlabel 'Nucleation Site Density (1/m^2)'
|
set xlabel 'Nucleation Site Density (1/m^2)'
|
||||||
plot \
|
plot \
|
||||||
"postProcessing/patchWallBoilingProperties/$graphFile" \
|
"postProcessing/fluid/patchWallBoilingProperties/$graphFile" \
|
||||||
u 5:1 w lp lt 1 t 'Simulation' \
|
u 5:1 w lp lt 1 t 'Simulation' \
|
||||||
|
|
||||||
set xlabel 'Heat flux partitioning function, liquid (-)'
|
set xlabel 'Heat flux partitioning function, liquid (-)'
|
||||||
plot \
|
plot \
|
||||||
"postProcessing/patchWallBoilingProperties/$graphFile" \
|
"postProcessing/fluid/patchWallBoilingProperties/$graphFile" \
|
||||||
u 7:1 w lp lt 1 t 'Simulation' \
|
u 7:1 w lp lt 1 t 'Simulation' \
|
||||||
|
|
||||||
set key at graph 0.99,0.95
|
set key at graph 0.99,0.95
|
||||||
Reference in New Issue
Block a user