Go to the documentation of this file.
101 #ifndef functionObjects_fieldMinMax_H
102 #define functionObjects_fieldMinMax_H
115 namespace functionObjects
124 public fvMeshFunctionObject,
162 const word& fieldName,
168 const label minProci,
169 const label maxProci,
190 const word& fieldName,
231 virtual bool write();
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
Computes the values and locations of field minima and maxima. These are good indicators of calculatio...
void calcMinMaxFieldType(const GeometricField< Type, fvPatchField, volMesh > &field, const word &outputFieldName)
Calculate the field min/max for a given field type.
virtual bool execute()
Execute, currently does nothing.
volFieldSelection fieldSet_
Fields to assess min/max.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual bool write()
Write the fieldMinMax.
mode_t mode(const fileName &name, const bool followLink=true)
Return the file mode, normally following symbolic links.
word outputName("finiteArea-edges.obj")
Helper class to manage solver field selections.
virtual void writeFileHeader(Ostream &os)
Output file header information.
modeType mode_
Mode for min/max - only applicable for ranks > 0.
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.
fieldMinMax(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
TypeName("fieldMinMax")
Runtime type information.
void operator=(const fieldMinMax &)=delete
No copy assignment.
void calcMinMaxFields(const word &fieldName, const modeType &mode)
Calculate the field min/max.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
static const Enum< modeType > modeTypeNames_
Mode type names.
bool location_
Flag to write location of min/max values.
Vector< scalar > vector
A scalar version of the templated Vector.
virtual bool read(const dictionary &)
Read the field min/max data.
const word & name() const noexcept
Return the name of this functionObject.
virtual ~fieldMinMax()=default
Destructor.
Base class for writing single files from the function objects.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...