102 #ifndef functionObjects_volRegion_H 103 #define functionObjects_volRegion_H 112 namespace functionObjects
114 namespace fieldValues
166 void setCellZoneCells();
169 void setPatchCells();
172 scalar volume()
const;
214 const word& fieldName,
215 const bool mustGet =
false 280 virtual bool write();
labelList cellId_
Local list of cell IDs.
virtual bool write()
Calculate and write.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
tmp< Field< Type > > filterField(const Field< Type > &field) const
Filter a field according to cellIds.
bool writeValues(const word &fieldName)
Templated helper function to output field values.
bool validField(const word &fieldName) const
Return true if the field name is valid.
regionTypes
region type enumeration
bool writeVolume_
Optionally write the volume of the volRegion.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
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.
static const NamedEnum< operationType, 11 > operationTypeNames_
Operation type names.
const dictionary & dict() const
Return the reference to the construction dictionary.
const word & name() const
Return the name of this functionObject.
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
label nCells_
Global number of cells.
List< label > labelList
A List of labels.
const regionTypes & regionType() const
Return the region type.
const labelList & cellId() const
Return the local list of cell IDs.
word weightFieldName_
Weight field name - only used for opWeightedAverage mode.
static const NamedEnum< regionTypes, 2 > regionTypeNames_
region type names
virtual bool read(const dictionary &)
Read from dictionary.
volRegion(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, Time and dictionary.
virtual ~volRegion()
Destructor.
regionTypes regionType_
region type
virtual void writeFileHeader(const label i)
Output file header information.
A class for managing temporary objects.
Registry of regIOobjects.
operationType operation_
Operation to apply to values.
Type processValues(const Field< Type > &values, const scalarField &V, const scalarField &weightField) const
Apply the 'operation' to the values.
TypeName("volRegion")
Run-time type information.
scalar volume_
Volume of the volRegion.
operationType
Operation type enumeration.