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.
Watches for presence of the named trigger file in the case directory and signals a simulation stop (o...
bool allowRestart() const
Return the allow restart flag.
const FIFOStack< word > & windowFieldNames() const
Return the list of window field names (windowType = EXACT)
const word & base() const
Return averaging base type name.
const word & fieldName() const
Return const access to the field name.
bool writeWindowFields() const
Return true if we wish to write window fields.
bool mean() const
Return const access to the mean flag.
bool storeWindowFields() const
Return true if we wish to store window fields.
const word & windowName() const
Return the (optional) window name.
bool inWindow(const scalar t) const
Return true if time is inside window (including boundaries)
scalar totalTime() const
Return the total time item has been evolved.
scalar window() const
Return the window length (iterations or seconds)
scalar dt(const scalar deltaT) const
Return the current time interval.
label totalIter() const
Return the total number of iterations item has been evolved.
scalar Dt() const
Return the total time interval.
word windowFieldName(const word &prefix) const
Helper function to construct a window field name.
void setPrime2MeanFieldName(const word &name)
Set the prime-squared mean field name.
bool prime2Mean() const
Return const access to the prime-squared mean flag.
void setMeanFieldName(const word &name)
Set the mean field name.
const FIFOStack< scalar > & windowTimes() const
Return the list of window times (windowType = EXACT)
const word & prime2MeanFieldName() const
Return const access to the prime-squared mean field name.
bool active() const
Return const access to the active flag.
const word & meanFieldName() const
Return const access to the mean field name.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.