2021-02-18 15:28:14 +05:00
|
|
|
/*--------------------------------*- 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;
|
|
|
|
|
2021-02-21 19:10:30 +05:00
|
|
|
startFrom latestTime; //startTime;
|
2021-02-18 15:28:14 +05:00
|
|
|
|
|
|
|
startTime 0;
|
|
|
|
|
|
|
|
stopAt endTime;
|
|
|
|
|
2021-02-20 14:59:59 +05:00
|
|
|
endTime 5000;
|
2021-02-18 15:28:14 +05:00
|
|
|
|
|
|
|
deltaT 1;
|
|
|
|
|
|
|
|
writeControl timeStep;
|
|
|
|
|
|
|
|
writeInterval 50;
|
|
|
|
|
|
|
|
purgeWrite 0;
|
|
|
|
|
|
|
|
writeFormat ascii;
|
|
|
|
|
|
|
|
writePrecision 6;
|
|
|
|
|
|
|
|
writeCompression off;
|
|
|
|
|
|
|
|
timeFormat general;
|
|
|
|
|
|
|
|
timePrecision 6;
|
|
|
|
|
|
|
|
runTimeModifiable true;
|
|
|
|
|
|
|
|
functions
|
|
|
|
{
|
2021-02-19 19:36:53 +05:00
|
|
|
flowRatePatch(name=inlet)
|
2021-02-18 15:28:14 +05:00
|
|
|
{
|
2021-02-19 19:36:53 +05:00
|
|
|
name inlet;
|
|
|
|
type surfaceFieldValue;
|
|
|
|
libs ( "libfieldFunctionObjects.so" );
|
|
|
|
writeControl timeStep;
|
|
|
|
writeInterval 1;
|
|
|
|
writeFields false;
|
|
|
|
log false;
|
|
|
|
regionType patch;
|
|
|
|
fields ( phi );
|
|
|
|
operation sum;
|
2021-02-18 15:28:14 +05:00
|
|
|
}
|
2021-02-19 19:36:53 +05:00
|
|
|
|
|
|
|
flowRatePatch(name=outlet)
|
2021-02-18 15:28:14 +05:00
|
|
|
{
|
2021-02-19 19:36:53 +05:00
|
|
|
name outlet;
|
|
|
|
type surfaceFieldValue;
|
|
|
|
libs ( "libfieldFunctionObjects.so" );
|
|
|
|
writeControl timeStep;
|
|
|
|
writeInterval 1;
|
|
|
|
writeFields false;
|
|
|
|
log false;
|
|
|
|
regionType patch;
|
|
|
|
fields ( phi );
|
|
|
|
operation sum;
|
2021-02-18 15:28:14 +05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ************************************************************************* //
|