104 #ifndef functionObjects_volFieldValue_H
105 #define functionObjects_volFieldValue_H
114 namespace functionObjects
116 namespace fieldValues
196 const scalar emptyVal,
197 Result<scalar>& result,
203 template<
class Type,
class ResultType>
206 const Field<Type>& values,
209 Result<ResultType>& result
217 const Field<Type>& values,
227 const Field<Type>& values,
296 const word& fieldName,
302 template<
class Type,
class ResultType>
305 const word& fieldName,
319 virtual bool write();
324 void volFieldValue::writeFileHeaderLocation<scalar>();
345 volFieldValue::Result<Type>& result
348 return is >> result.value >> result.celli >> result.proci >> result.cc;
356 const volFieldValue::Result<Type>& result
359 return os << result.value << result.celli << result.proci << result.cc;
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const word & name() const
Return the name of this functionObject.
const dictionary & dict() const
Return the reference to the construction dictionary.
scalar scaleFactor_
Scale factor - optional.
bool writeValues(const word &fieldName, const scalarField &weights, const scalarField &V)
Templated helper function to output field values.
static const NamedEnum< operationType, 11 > operationTypeNames_
Operation type names.
bool processValuesTypeType(const Field< Type > &values, const scalarField &weights, const scalarField &V, Result< Type > &result) const
Apply a Type -> Type operation to the values.
tmp< Field< Type > > getFieldValues(const word &fieldName) const
Insert field values into values list.
Switch writeLocation_
Write the location if available for this operation - optional.
void initialise(const dictionary &dict)
Initialise, e.g. cell addressing.
void writeFileHeaderLocation()
Output file header location information for a given type.
operationType operation_
Operation to apply to values.
tmp< Field< Type > > filterField(const Field< Type > &field) const
Filter a field according to cellIds.
volFieldValue(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, Time and dictionary.
virtual void writeFileHeader(const label i)
Output file header information.
wordList weightFieldNames_
Weight field names.
bool validField(const word &fieldName) const
Return true if the field name is valid.
virtual ~volFieldValue()
Destructor.
TypeName("volFieldValue")
Run-time type information.
virtual bool write()
Calculate and write.
bool processValues(const Field< Type > &values, const scalarField &weights, const scalarField &V, Result< ResultType > &result) const
Apply the operation to the values, and return true if successful.
virtual bool read(const dictionary &)
Read from dictionary.
void compareScalars(const scalarField &values, const scalar emptyVal, Result< scalar > &result, const Op &op) const
Apply a comparison operation to the values, returning the limiting.
operationType
Operation type enumeration.
scalar V() const
Return const access to the total cell volume.
Registry of regIOobjects.
A class for managing temporary objects.
A class for handling words, derived from string.
List< word > wordList
A List of words.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Forward declare the result structure.