Go to the documentation of this file.
118 #ifndef fieldAverage_H
119 #define fieldAverage_H
131 class objectRegistry;
133 class fieldAverageItem;
145 public functionObjectState
152 const objectRegistry&
obr_;
203 template<
class Type1,
class Type2>
207 template<
class Type1,
class Type2>
225 template<
class Type1,
class Type2>
229 template<
class Type1,
class Type2>
233 template<
class Type1,
class Type2>
237 template<
class Type1,
class Type2>
283 const bool loadFromFiles =
false
312 virtual void write();
virtual void writeAverages() const
Write averages.
virtual void movePoints(const polyMesh &)
Move points.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
List< fieldAverageItem > faItems_
List of field average items, describing what averages to be.
A class for handling words, derived from string.
Base class for function objects, adding functionality to read/write state information (data required ...
void calculatePrime2MeanFields() const
Calculate prime-squared average fields.
List< label > totalIter_
Iteration steps counter.
void writeAveragingProperties()
Write averaging properties - steps and time.
virtual const word & name() const
Return name of the set of field averages.
List< scalar > totalTime_
Total time counter.
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
void readAveragingProperties()
Read averaging properties - steps and time.
virtual void updateMesh(const mapPolyMesh &)
Update mesh.
Switch log_
Switch to send output to Info as well as to file.
void writeFieldType(const word &fieldName) const
Write fields.
Mesh consisting of general polyhedral cells.
void addPrime2MeanField(const label fieldI)
Add prime-squared average field to database.
fieldAverage(const fieldAverage &)
Disallow default bitwise copy construct.
Registry of regIOobjects.
This function object calculates average quantities for a user-specified selection of volumetric and s...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void end()
Execute the averaging at the final time-loop, currently does nothing.
virtual void execute()
Execute the averaging.
void writeFields() const
Write fields.
void addMeanField(const label fieldI)
Add mean average field to database.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual void calcAverages()
Main calculation routine.
void addMeanSqrToPrime2MeanType(const label fieldI) const
Add mean-squared field value to prime-squared mean field.
const objectRegistry & obr_
Reference to the database.
void addMeanSqrToPrime2Mean() const
Add mean-squared field value to prime-squared mean field.
void addMeanFieldType(const label fieldI)
Add mean average field to database.
virtual void read(const dictionary &)
Read the field average data.
const word name_
Name of model.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void addPrime2MeanFieldType(const label fieldI)
Add prime-squared average field to database.
TypeName("fieldAverage")
Runtime type information.
void calculateMeanFields() const
Calculate mean average fields.
virtual ~fieldAverage()
Destructor.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void calculatePrime2MeanFieldType(const label fieldI) const
Calculate prime-squared average fields.
bool initialised_
Initialised flag.
label prevTimeIndex_
Time at last call, prevents repeated averaging.
virtual void write()
Calculate the field average data and write.
void calculateMeanFieldType(const label fieldI) const
Calculate mean average fields.
Switch resetOnOutput_
Reset the averaging process on output flag.
Switch resetOnRestart_
Reset the averaging process on restart flag.
void initialize()
Reset lists (clear existing values) and initialize averaging.
void resetFields()
Checkout fields (causes deletion) from the database.
void operator=(const fieldAverage &)
Disallow default bitwise assignment.