63 return meanFieldName_;
72 meanFieldName_ =
name;
91 return prime2MeanFieldName_;
100 prime2MeanFieldName_ =
name;
106 return baseTypeNames_[base_];
144 return windowFieldNames_;
150 return allowRestart_;
172 <<
"Unhandled enumeration " << baseTypeNames_[base_]
191 return scalar(totalIter_);
196 <<
"Unhandled enumeration " << baseTypeNames_[base_]
210 return prefix +
':' + fieldName_ +
':' +
Foam::name(totalIter_);
220 return round(t) <= round(window_) + 1;
229 <<
"Unhandled baseType enumeration " 230 << baseTypeNames_[base_]
241 return windowType_ == windowType::EXACT;
247 return (allowRestart_ && window_ > 0);
A FIFO stack based on a singly-linked list.
const word & meanFieldName() const
Return const access to the mean field name.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void setMeanFieldName(const word &name)
Set the mean field name.
bool mean() const
Return const access to the mean flag.
scalar totalTime() const
Return the total time item has been evolved.
bool allowRestart() const
Return the allow restart flag.
word windowFieldName(const word &prefix) const
Helper function to construct a window field name.
const word & windowName() const
Return the (optional) window name.
scalar window() const
Return the window length (iterations or seconds)
const word & base() const
Return averaging base type name.
scalar dt(const scalar deltaT) const
Return the current time interval.
bool active() const
Return const access to the active flag.
scalar Dt() const
Return the total time interval.
const word & fieldName() const
Return const access to the field name.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
bool inWindow(const scalar t) const
Return true if time is inside window (including boundaries)
A class for handling words, derived from Foam::string.
const FIFOStack< scalar > & windowTimes() const
Return the list of window times (windowType = EXACT)
errorManip< error > abort(error &err)
const FIFOStack< word > & windowFieldNames() const
Return the list of window field names (windowType = EXACT)
const word & prime2MeanFieldName() const
Return const access to the prime-squared mean field name.
void setPrime2MeanFieldName(const word &name)
Set the prime-squared mean field name.
bool storeWindowFields() const
Return true if we wish to store window fields.
label totalIter() const
Return the total number of iterations item has been evolved.
bool prime2Mean() const
Return const access to the prime-squared mean flag.
bool writeWindowFields() const
Return true if we wish to write window fields.