Added limiters for the phase temperatures to prevent divergence, and monitors to report the minimum and maximum values. Removed the setTimeStep functionObject as the temperature limiters make this unnecessary. Dereased the number of energy correctors and set a higher Courant number limit to reduce the execution-time of the case. Patch contributed by Juho Peltola, VTT.
74 lines
1.4 KiB
C++
74 lines
1.4 KiB
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 dictionary;
|
|
location "system";
|
|
object controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
application reactingTwoPhaseEulerFoam;
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 10;
|
|
|
|
deltaT 1e-3;
|
|
|
|
writeControl adjustableRunTime;
|
|
|
|
writeInterval 0.1;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat binary;
|
|
|
|
writePrecision 10;
|
|
|
|
writeCompression off;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 9;
|
|
|
|
runTimeModifiable yes;
|
|
|
|
adjustTimeStep yes;
|
|
|
|
maxCo 0.25;
|
|
|
|
maxDeltaT 1e-2;
|
|
|
|
functions
|
|
{
|
|
minMax
|
|
{
|
|
type fieldMinMax;
|
|
functionObjectLibs ("libfieldFunctionObjects.so");
|
|
fields
|
|
(
|
|
T.steam
|
|
T.water
|
|
p
|
|
);
|
|
location no;
|
|
writeControl timeStep;
|
|
writeInterval 1;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|