Next: Model setting without an Up: Alternative formulation Previous: Alternative formulation Contents Index
Temporal Fields Averaging - fieldAverage Function
Function fieldAverage is included in file controlDict and it is a part of libfieldFunctionObjects.so library. Definition of these functions are created in file fieldAvg.fun. This function samples temporal average of fields
and
over a fixed time interval given by window parameter. Averaging function for rotor region is listed below:
![Node96 7 $ \color{white} U$](https://www.cfdsupport.com/wp-content/uploads/2022/02/img45.png)
![Node96 8 $ \color{white} p$](https://www.cfdsupport.com/wp-content/uploads/2022/02/img8-3.png)
fieldAverageRotor { // Type of functionObject type fieldAverage; // Where to load it from (if not already in solver) functionObjectLibs ("libfieldFunctionObjects.so"); // Function object enabled flag enabled true; // When to output the average fields outputControl outputTime; // Region option region rotor; // Reset on output resetOnOutput true; // Fields to be averaged - runTime modifiable fields ( U { mean on; prime2Mean off; base time; window 100; // optional averaging window } p { mean on; prime2Mean off; base time; window 100; // optional averaging window } p_rgh { mean on; prime2Mean off; base time; window 100; // optional averaging window } ); }