101#ifndef functionObjects_fieldMinMax_H
102#define functionObjects_fieldMinMax_H
115namespace functionObjects
124 public fvMeshFunctionObject,
162 const word& fieldName,
168 const label minProci,
169 const label maxProci,
190 const word& fieldName,
231 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,...
const word & name() const noexcept
Return the name of this functionObject.
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 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.
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.
TypeName("fieldMinMax")
Runtime type information.
virtual void writeFileHeader(Ostream &os)
Output file header information.
virtual bool execute()
Execute, currently does nothing.
virtual bool write()
Write the fieldMinMax.
virtual bool read(const dictionary &)
Read the field min/max data.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Helper class to manage solver field selections.
Base class for writing single files from the function objects.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
A class for handling words, derived from Foam::string.
word outputName("finiteArea-edges.obj")
OBJstream os(runTime.globalPath()/outputName)
mode_t mode(const fileName &name, const bool followLink=true)
Return the file mode, normally following symbolic links.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.