107 #ifndef volFieldValue_functionObject_H
108 #define volFieldValue_functionObject_H
117 namespace functionObjects
119 namespace fieldValues
205 const scalar emptyVal,
206 Result<scalar>& result,
212 template<
class Type,
class ResultType>
215 const Field<Type>& values,
218 Result<ResultType>& result
226 const Field<Type>& values,
236 const Field<Type>& values,
239 Result<scalar>& result
305 const word& fieldName,
311 template<
class Type,
class ResultType>
314 const word& fieldName,
328 virtual bool write();
348 void volFieldValue::writeFileHeaderLocation<scalar>();
369 volFieldValue::Result<Type>& result
372 return is >> result.value >> result.celli >> result.proci >> result.cc;
380 const volFieldValue::Result<Type>& result
383 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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const word & name() const
Return the name of this functionObject.
const dictionary & dict() const
Return the reference to the construction dictionary.
const bool writeVolume_
Optionally write the area of the surface.
scalar scaleFactor_
Scale factor.
bool writeValues(const word &fieldName, const scalarField &weights, const scalarField &V)
Templated helper function to output field values.
const bool writeNCells_
Optionally write the number of faces in the surface.
bool processValuesTypeType(const Field< Type > &values, const scalarField &weights, const scalarField &V, Result< Type > &result) const
Apply a Type -> Type operation to the values.
fvCellZone zone_
The cellZone to operate on.
tmp< Field< Type > > getFieldValues(const word &fieldName) const
Insert field values into values list.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
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.
static const NamedEnum< operationType, 12 > operationTypeNames_
Operation type names.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual void writeFileHeader(const label i)
Output file header information.
wordList weightFieldNames_
Weight field names.
virtual void movePoints(const polyMesh &)
Update for mesh motion.
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.
const bool writeLocation_
Optionally write the location if available for this operation.
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.
Registry of regIOobjects.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Mesh consisting of general polyhedral cells.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
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.