45#ifndef functionObjects_valueAverageBase_H
46#define functionObjects_valueAverageBase_H
56namespace functionObjects
123 template<
class Type,
class Type2=Type>
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Computes the natural logarithm of an input volScalarField.
Base class for function objects, adding functionality to read/write state information (data required ...
Base class that computes the ensemble- or time-based singular-value average values,...
word functionObjectName_
Name of function object to retrieve data from.
windowType
Averaging window types.
@ APPROXIMATE
"approximate"
scalar tolerance_
Optional tolerance to check for converged results.
virtual void readState(dictionary &dict)
Read state from dictionary.
wordList fieldNames_
List of fields on which to operate.
virtual void writeState(dictionary &dict)
Write state to dictionary for restarts.
virtual bool calculate(dictionary &dict)
Calculate the averages.
List< scalar > totalTime_
Average time per field.
virtual bool read(const dictionary &dict)
Read the field value average data.
virtual ~valueAverageBase()=default
Destructor.
bool calc(const label fieldi, bool &converged, dictionary &dict)
Templated function to calculate the average.
virtual void writeFileHeader(Ostream &os) const
Output file header information.
void operator=(const valueAverageBase &)=delete
No copy assignment.
scalar window_
Averaging window.
bool resetOnRestart_
Reset the averaging process on restart.
static const Enum< windowType > windowTypeNames
Names for windowType enumeration.
virtual void resetState(dictionary &dict)
Reset state.
stateFunctionObject & state_
Reference to the state functionObject.
valueAverageBase(const valueAverageBase &)=delete
No copy construct.
windowType windowType_
Window type.
Base class for writing single files from the function objects.
virtual bool writeToFile() const
Flag to allow writing to file.
Registry of regIOobjects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.