Go to the documentation of this file.
83 #ifndef fieldAverageItem_H
84 #define fieldAverageItem_H
100 namespace functionObjects
104 class fieldAverageItem;
105 Istream&
operator>>(Istream&, fieldAverageItem&);
106 Ostream&
operator<<(Ostream&,
const fieldAverageItem&);
112 class fieldAverageItem
163 word prime2MeanFieldName_;
222 inline bool active()
const;
231 inline bool mean()
const;
264 inline scalar
window()
const;
279 inline scalar
dt(
const scalar deltaT)
const;
282 inline scalar
Dt()
const;
288 inline bool inWindow(
const scalar t)
const;
316 template<
class Type1,
class Type2>
327 friend bool operator==
334 a.active_ ==
b.active_
335 && a.fieldName_ ==
b.fieldName_
336 && a.mean_ ==
b.mean_
337 && a.meanFieldName_ ==
b.meanFieldName_
338 && a.prime2Mean_ ==
b.prime2Mean_
339 && a.prime2MeanFieldName_ ==
b.prime2MeanFieldName_
340 && a.base_ ==
b.base_
341 && a.totalIter_ ==
b.totalIter_
342 && a.totalTime_ ==
b.totalTime_
343 && a.window_ ==
b.window_
344 && a.windowName_ ==
b.windowName_
345 && a.windowType_ ==
b.windowType_
346 && a.allowRestart_ ==
b.allowRestart_;
349 friend bool operator!=
friend Istream & operator>>(Istream &, fieldAverageItem &)
bool calculatePrime2MeanField(const objectRegistry &obr) const
const FIFOStack< scalar > & windowTimes() const
A class for handling words, derived from Foam::string.
void setPrime2MeanFieldName(const word &name)
void writeState(dictionary &dict) const
bool writeWindowFields() const
bool readState(const dictionary &dict)
Ostream & operator<<(Ostream &, const fieldInfo &)
scalar dt(const scalar deltaT) const
Istream & operator>>(Istream &, fieldInfo &)
void operator=(const fieldAverageItem &)
const word & fieldName() const
bool allowRestart() const
bool storeWindowFields() const
Registry of regIOobjects.
void addToWindow(const word &fieldName, const scalar deltaT)
const word & meanFieldName() const
void clear(const objectRegistry &obr, const bool fullClean)
const dimensionedScalar b
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static const word EXT_MEAN
bool inWindow(const scalar t) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const word & windowName() const
void setMeanFieldName(const word &name)
Helper class to describe what form of averaging to apply. A set will be applied to each base field in...
friend Ostream & operator<<(Ostream &, const fieldAverageItem &)
static const word EXT_PRIME2MEAN
const word & prime2MeanFieldName() const
word name(const expressions::valueTypeCode typeCode)
bool calculateMeanField(const objectRegistry &obr) const
const FIFOStack< word > & windowFieldNames() const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void evolve(const objectRegistry &obr)
word windowFieldName(const word &prefix) const
const word & base() const