mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
for consistency with the time controls in controlDict and to avoid unnecessary confusion. All code and tutorials have been updated. The old names 'outputControl' and 'outputInterval' are but supported for backward compatibility but deprecated.
88 lines
1.8 KiB
C++
88 lines
1.8 KiB
C++
/*--------------------------------*- 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 interFoam;
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 200;
|
|
|
|
deltaT 0.1;
|
|
|
|
writeControl adjustableRunTime;
|
|
|
|
writeInterval 5;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression compressed;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable yes;
|
|
|
|
adjustTimeStep yes;
|
|
|
|
maxCo 6;
|
|
maxAlphaCo 6;
|
|
maxDeltaT 1;
|
|
|
|
functions
|
|
{
|
|
inletFlux
|
|
{
|
|
type faceSource;
|
|
functionObjectLibs ("libfieldFunctionObjects.so");
|
|
writeControl timeStep;
|
|
log true;
|
|
// Output field values as well
|
|
valueOutput false;
|
|
source patch;
|
|
sourceName inlet;
|
|
operation sum;
|
|
|
|
fields
|
|
(
|
|
rhoPhi
|
|
);
|
|
}
|
|
|
|
outletFlux
|
|
{
|
|
$inletFlux;
|
|
sourceName outlet;
|
|
}
|
|
|
|
atmosphereFlux
|
|
{
|
|
$inletFlux;
|
|
sourceName atmosphere;
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|