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:
@ -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)
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user