anisotropy/openfoam/template/system/controlDict
2021-05-26 17:18:39 +05:00

81 lines
2.0 KiB
C++

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application simpleFoam;
startFrom latestTime; //startTime;
startTime 0;
stopAt endTime;
endTime 5000;
deltaT 1;
writeControl timeStep;
writeInterval 50;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable true;
functions
{
flowRatePatch(name=inlet)
{
name inlet;
type surfaceFieldValue;
libs ( "libfieldFunctionObjects.so" );
writeControl timeStep;
writeInterval 1;
writeFields false;
log false;
regionType patch;
fields ( phi );
operation sum;
}
flowRatePatch(name=outlet)
{
name outlet;
type surfaceFieldValue;
libs ( "libfieldFunctionObjects.so" );
writeControl timeStep;
writeInterval 1;
writeFields false;
log false;
regionType patch;
fields ( phi );
operation sum;
}
}
// ************************************************************************* //