105 #ifndef functionObjects_volFieldValue_H 106 #define functionObjects_volFieldValue_H 115 namespace functionObjects
117 namespace fieldValues
180 const word& fieldName,
181 const bool mustGet =
false 188 const Field<Type>& values,
210 const dictionary&
dict 217 const objectRegistry& obr,
218 const dictionary&
dict 240 virtual bool write();
operationType operation_
Operation to apply to values.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const NamedEnum< operationType, 13 > operationTypeNames_
Operation type names.
const word & name() const
Return the name of this functionObject.
A list of keyword definitions, which are a keyword followed by any number of values (e...
tmp< Field< Type > > setFieldValues(const word &fieldName, const bool mustGet=false) const
Insert field values into values list.
void initialise(const dictionary &dict)
Initialise, e.g. cell addressing.
volFieldValue(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, Time and dictionary.
Pre-declare SubField and related Field type.
bool validField(const word &fieldName) const
Return true if the field name is valid.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
tmp< Field< Type > > filterField(const Field< Type > &field) const
Filter a field according to cellIds.
Type processValues(const Field< Type > &values, const scalarField &V, const scalarField &weightField) const
Apply the 'operation' to the values.
const dictionary & dict() const
Return the reference to the construction dictionary.
virtual ~volFieldValue()
Destructor.
scalar V() const
Return total volume of the region.
TypeName("volFieldValue")
Run-time type information.
List< word > wordList
A List of words.
virtual void writeFileHeader(const label i)
Output file header information.
operationType
Operation type enumeration.
wordList weightFieldNames_
Weight field names - only used for weighted modes.
A class for managing temporary objects.
bool writeValues(const word &fieldName)
Templated helper function to output field values.
virtual bool write()
Calculate and write.
virtual bool read(const dictionary &)
Read from dictionary.