93 lines
2.1 KiB
C++
93 lines
2.1 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: 10
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
application interFoam;
|
|
|
|
startFrom latestTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 1.0;
|
|
|
|
deltaT 1e-8;
|
|
|
|
writeControl adjustableRunTime;
|
|
|
|
writeInterval 1e-7;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression off;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable yes;
|
|
|
|
adjustTimeStep yes;
|
|
|
|
maxCo 0.2;
|
|
maxAlphaCo 0.1;
|
|
|
|
maxDeltaT 1;
|
|
|
|
functions
|
|
{
|
|
residuals
|
|
{
|
|
type residuals;
|
|
libs ("libutilityFunctionObjects.so");
|
|
fields (p_rgh U);
|
|
writeResidualFields yes;
|
|
writeControl timeStep;
|
|
writeInterval 1;
|
|
}
|
|
saturation1
|
|
{
|
|
type saturation;
|
|
libs ("multiphaseFunctionObjects.so");
|
|
writeControl timeStep;
|
|
writeInterval 10;
|
|
}
|
|
volumetricFlowRate1
|
|
{
|
|
type volumetricFlowRate;
|
|
libs ("multiphaseFunctionObjects.so");
|
|
writeControl timeStep;
|
|
writeInterval 10;
|
|
phi phi;
|
|
patches (inlet outlet cperiodic-west cperiodic-east cperiodic-down cperiodic-up);
|
|
}
|
|
massFlowRate1
|
|
{
|
|
type massFlowRate;
|
|
libs ("multiphaseFunctionObjects.so");
|
|
writeControl timeStep;
|
|
writeInterval 10;
|
|
phi phi;
|
|
patches (inlet outlet cperiodic-west cperiodic-east cperiodic-down cperiodic-up);
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|