functionObjects::fieldAverage: Simplified the controls

Rather than specifying the controls per field it is simpler to use a single set
of controls for all the fields in the list and use separate instances of the
fieldAverage functionObject for different control sets:

    Example of function object specification setting all the optional parameters:
    fieldAverage1
    {
        type                fieldAverage;
        libs                ("libfieldFunctionObjects.so");

        writeControl        writeTime;

        restartOnRestart    false;
        restartOnOutput     false;
        periodicRestart     false;
        restartPeriod       0.002;

        base                time;
        window              10.0;
        windowName          w1;

        mean                yes;
        prime2Mean          yes;

        fields              (U p);
    }

This allows for a simple specification with the optional prime2Mean entry using

    #includeFunc fieldAverage(U, p, prime2Mean = yes)

or if the prime2Mean is not needed just

    #includeFunc fieldAverage(U, p)
This commit is contained in:
Henry Weller
2020-03-17 20:15:17 +00:00
parent fbe98c6e84
commit 0177c7dd59
30 changed files with 213 additions and 535 deletions

View File

@ -51,23 +51,7 @@ maxCo 0.5;
functions
{
fieldAverage1
{
#includeEtc "caseDicts/postProcessing/fields/fieldAverage.cfg"
fields
(
U
{
prime2Mean on;
}
p
{
prime2Mean on;
}
);
}
#includeFunc fieldAverage(U, p, prime2Mean = yes)
}
// ************************************************************************* //