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,
183 const word& outputFieldName
190 const word& fieldName,
231 virtual bool write();
virtual bool write()
Write the fieldMinMax.
virtual bool execute()
Execute, currently does nothing.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
static const Enum< modeType > modeTypeNames_
Mode type names.
virtual void writeFileHeader(Ostream &os)
Output file header information.
volFieldSelection fieldSet_
Fields to assess min/max.
fieldMinMax(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
Generic GeometricField class.
virtual ~fieldMinMax()=default
Destructor.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const word & name() const noexcept
Return the name of this functionObject.
void calcMinMaxFields(const word &fieldName, const modeType &mode)
Calculate the field min/max.
word outputName("finiteArea-edges.obj")
virtual bool read(const dictionary &)
Read the field min/max data.
A class for handling words, derived from Foam::string.
void operator=(const fieldMinMax &)=delete
No copy assignment.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
bool location_
Flag to write location of min/max values.
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 mode_
Mode for min/max - only applicable for ranks > 0.
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.
mode_t mode(const fileName &name, const bool followLink=true)
Return the file mode, normally following symbolic links.
TypeName("fieldMinMax")
Runtime type information.