102 lines
2.2 KiB
C++
102 lines
2.2 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | foam-extend: Open Source CFD |
|
|
| \\ / O peration | Version: 4.1 |
|
|
| \\ / A nd | Web: http://www.foam-extend.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
libs
|
|
(
|
|
"liblduSolvers.so"
|
|
);
|
|
|
|
application twoPhaseEulerFoam;
|
|
|
|
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 of functionObject
|
|
type fieldAverage;
|
|
|
|
// Where to load it from (if not already in solver)
|
|
functionObjectLibs ("libfieldFunctionObjects.so");
|
|
|
|
outputControl outputTime;
|
|
|
|
// Fields to be averaged - runTime modifiable
|
|
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;
|
|
}
|
|
);
|
|
}
|
|
);
|
|
|
|
|
|
// ************************************************************************* //
|