- change system/controlDict to use functions {..} instead of functions (..); * This is internally more efficient - fixed formatting of system/controlDict functions entry - pedantic change: use 'return 0' instead of 'return(0)' in the applications, since return is a C/C++ keyword, not a function.
94 lines
2.0 KiB
C++
94 lines
2.0 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: 1.5 |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 20;
|
|
|
|
deltaT 0.002;
|
|
|
|
writeControl runTime;
|
|
|
|
writeInterval 0.5;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression uncompressed;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable yes;
|
|
|
|
adjustTimeStep no;
|
|
|
|
maxCo 0.5;
|
|
|
|
maxDeltaT 1;
|
|
|
|
functions
|
|
{
|
|
fieldAverage1
|
|
{
|
|
type fieldAverage;
|
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
|
outputControl outputTime;
|
|
fields
|
|
(
|
|
Ua
|
|
{
|
|
mean on;
|
|
prime2Mean off;
|
|
base time;
|
|
}
|
|
|
|
Ub
|
|
{
|
|
mean on;
|
|
prime2Mean off;
|
|
base time;
|
|
}
|
|
|
|
alpha
|
|
{
|
|
mean on;
|
|
prime2Mean off;
|
|
base time;
|
|
}
|
|
|
|
p
|
|
{
|
|
mean on;
|
|
prime2Mean off;
|
|
base time;
|
|
}
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|