91#ifndef Foam_functionObjects_fieldMinMax_H
92#define Foam_functionObjects_fieldMinMax_H
153 const word& fieldName,
159 const label minProci,
160 const label maxProci,
181 const word& fieldName,
222 virtual bool write();
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
Generic GeometricField class.
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 a number of values (eg,...
Computes the values and locations of field minima and maxima. These are good indicators of calculatio...
volFieldSelection fieldSet_
Fields to assess min/max.
bool location_
Flag to write location of min/max values.
void operator=(const fieldMinMax &)=delete
No copy assignment.
modeType mode_
Mode for min/max - only applicable for ranks > 0.
fieldMinMax(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, Time and dictionary.
fieldMinMax(const fieldMinMax &)=delete
No copy construct.
void calcMinMaxFields(const word &fieldName, const modeType &mode)
Calculate the field min/max.
virtual ~fieldMinMax()=default
Destructor.
void calcMinMaxFieldType(const GeometricField< Type, fvPatchField, volMesh > &field, const word &outputFieldName)
Calculate the field min/max for a given field type.
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
static const Enum< modeType > modeTypeNames_
Mode type names.
void output(const word &fieldName, const word &outputName, const label minCell, const label maxCell, const vector &minC, const vector &maxC, const label minProci, const label maxProci, const Type &minValue, const Type &maxValue)
Helper function to write the output.
modeType
Options for the mode types.
TypeName("fieldMinMax")
Runtime type information.
virtual void writeFileHeader(Ostream &os)
Output file header information.
virtual bool execute()
Execute the function-object operations.
virtual bool write()
Write the function-object results.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
fvMeshFunctionObject(const fvMeshFunctionObject &)=delete
No copy construct.
Helper class to manage solver field selections.
Base class for writing single files from the function objects.
writeFile(const objectRegistry &obr, const fileName &prefix, const word &name="undefined", const bool writeToFile=true, const string &ext=".dat")
Construct from objectRegistry, prefix, fileName.
A class for handling words, derived from Foam::string.
word outputName("finiteArea-edges.obj")
OBJstream os(runTime.globalPath()/outputName)
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
mode_t mode(const fileName &name, const bool followLink=true)
Return the file mode, normally following symbolic links.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.