tutorials/multiphase/reactingTwoPhaseEulerFoam: Initialize by first running without boiling

then restart with boiling.

Contributed by Juho Peltola, VTT
This commit is contained in:
Henry Weller
2016-10-04 16:39:49 +01:00
parent daf57eddf6
commit 96d86ec6f1
21 changed files with 186 additions and 26398 deletions

View File

@ -17,21 +17,21 @@ FoamFile
dimensions [0 0 0 1 0 0 0]; dimensions [0 0 0 1 0 0 0];
internalField uniform 373.55; internalField uniform 368;
boundaryField boundaryField
{ {
inlet inlet
{ {
type fixedValue; type fixedValue;
value uniform 373.55; value uniform 368;
} }
outlet outlet
{ {
type inletOutlet; type inletOutlet;
phi phi.gas; phi phi.gas;
inletValue uniform 373.55; inletValue uniform 368;
value uniform 373.55; value uniform 368;
} }
wall1 wall1
{ {
@ -41,7 +41,7 @@ boundaryField
{ {
type copiedFixedValue; type copiedFixedValue;
sourceFieldName T.liquid; sourceFieldName T.liquid;
value uniform 373.55; value uniform 368;
} }
defaultFaces defaultFaces
{ {

View File

@ -17,21 +17,21 @@ FoamFile
dimensions [0 0 0 1 0 0 0]; dimensions [0 0 0 1 0 0 0];
internalField uniform 370; internalField uniform 368;
boundaryField boundaryField
{ {
inlet inlet
{ {
type fixedValue; type fixedValue;
value uniform 370; value uniform 368;
} }
outlet outlet
{ {
type inletOutlet; type inletOutlet;
phi phi.liquid; phi phi.liquid;
inletValue uniform 370; inletValue uniform 368;
value uniform 370; value uniform 368;
} }
wall1 wall1
{ {
@ -41,9 +41,9 @@ boundaryField
{ {
type fixedMultiPhaseHeatFlux; type fixedMultiPhaseHeatFlux;
relax 0.5; relax 0.5;
q uniform 100000; q uniform 0;
phase "liquid"; phase "liquid";
value uniform 370; value uniform 368;
} }
defaultFaces defaultFaces
{ {

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "5"; location "0";
object alpha.gas; object alpha.gas;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -0,0 +1,10 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
cp ./system/controlDict.org ./system/controlDict
#------------------------------------------------------------------------------

View File

@ -0,0 +1,15 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
application=`getApplication`
runApplication blockMesh
runApplication $application
foamDictionary system/controlDict -entry endTime -set 5
foamDictionary 2/T.liquid -entry boundaryField.wall2.q -set 1e5
runApplication -a $application
#------------------------------------------------------------------------------

View File

@ -17,7 +17,7 @@ FoamFile
application reactingTwoPhaseEulerFoam; application reactingTwoPhaseEulerFoam;
startFrom startTime; startFrom latestTime;
startTime 0; startTime 0;
@ -25,11 +25,11 @@ stopAt endTime;
endTime 2; endTime 2;
deltaT 1e-5; deltaT 1e-4;
writeControl adjustableRunTime; writeControl adjustableRunTime;
writeInterval 0.1; writeInterval 0.5;
purgeWrite 0; purgeWrite 0;
@ -37,7 +37,7 @@ writeFormat ascii;
writePrecision 9; writePrecision 9;
writeCompression compressed; writeCompression uncompressed;
timeFormat general; timeFormat general;

View File

@ -0,0 +1,54 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application reactingTwoPhaseEulerFoam;
startFrom latestTime;
startTime 0;
stopAt endTime;
endTime 2;
deltaT 1e-4;
writeControl adjustableRunTime;
writeInterval 0.5;
purgeWrite 0;
writeFormat ascii;
writePrecision 9;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
adjustTimeStep yes;
maxCo 0.05;
maxDeltaT 0.001;
// ************************************************************************* //

View File

@ -80,10 +80,10 @@ solvers
PIMPLE PIMPLE
{ {
nOuterCorrectors 3; nOuterCorrectors 6;
nCorrectors 1; nCorrectors 1;
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
nEnergyCorrectors 3; nEnergyCorrectors 2;
faceMomentum yes; faceMomentum yes;
} }
@ -97,7 +97,7 @@ relaxationFactors
equations equations
{ {
".*" 1; ".*" 1;
"h.*" 0.4; "h.*" 0.3;
} }
} }