Go to the documentation of this file.
37 #ifndef averageCondition_H
38 #define averageCondition_H
86 const word& fieldName,
115 virtual bool apply();
118 virtual void write();
Base class for run time conditions.
dimensionedScalar beta("beta", dimless/dimTemperature, laminarTransport)
const scalar window_
Averaging window.
virtual bool apply()
Apply the condition.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
A class for handling words, derived from string.
void calc(const word &fieldName, const scalar alpha, const scalar beta, bool &satisfied, bool &processed)
Templated function to calculate the average.
Base class for function objects, adding functionality to read/write state information (data required ...
TypeName("average")
Runtime type information.
List< scalar > totalTime_
Average time per field.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
averageCondition(const word &name, const objectRegistry &obr, const dictionary &dict, functionObjectState &state)
Constructor.
virtual void write()
Write.
word functionObjectName_
Name of function object to retrueve data from.
Registry of regIOobjects.
virtual const word & name() const
Return the condition name.
const scalar tolerance_
Satisfied when difference in mean values is less than this value.
Average run time condition - satisfied when average does not change by more than a given value.
virtual ~averageCondition()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Switch resetOnRestart_
Reset the averaging process on restart flag.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
wordList fieldNames_
List of fields on which to operate.