34 namespace functionObjects
46 >::names[] = {
"magnitude",
"component"};
61 writeHeader(file,
"Field minima and maxima");
62 writeCommented(file,
"Time");
66 writeTabbed(file,
"field");
68 writeTabbed(file,
"min");
69 writeTabbed(file,
"location(min)");
73 writeTabbed(file,
"processor");
76 writeTabbed(file,
"max");
77 writeTabbed(file,
"location(max)");
81 writeTabbed(file,
"processor");
88 writeTabbed(file,
"min(" + fieldSet_[fieldi] +
')');
89 writeTabbed(file,
"max(" + fieldSet_[fieldi] +
')');
111 if (!isA<fvMesh>(obr_))
137 dict.
lookup(
"fields") >> fieldSet_;
153 if (!location_) writeTime(file());
158 calcMinMaxFields<scalar>(fieldSet_[fieldi], mdCmpt);
159 calcMinMaxFields<vector>(fieldSet_[fieldi], mode_);
160 calcMinMaxFields<sphericalTensor>(fieldSet_[fieldi], mode_);
161 calcMinMaxFields<symmTensor>(fieldSet_[fieldi], mode_);
162 calcMinMaxFields<tensor>(fieldSet_[fieldi], mode_);
165 if (!location_) file()<<
endl;
virtual bool write()
Write the fieldMinMax.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual bool execute()
Execute, currently does nothing.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
fieldMinMax(const fieldMinMax &)
Disallow default bitwise copy construct.
functionObject base class for writing files
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none.
Initialise the NamedEnum HashTable from the static list of names.
virtual void writeFileHeader(const label i)
Output file header information.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &)
Read optional controls.
bool read(const char *, int32_t &)
virtual bool read(const dictionary &)
Read the field min/max data.
Include the header files for all the primitive types that Fields are instantiated for...
A class for handling words, derived from string.
virtual ~fieldMinMax()
Destructor.
static const NamedEnum< modeType, 2 > modeTypeNames_
Mode type names.
word name(const complex &)
Return a string representation of a complex.
static bool & parRun()
Is this a parallel run?
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
addToRunTimeSelectionTable(functionObject, blendingFactor, dictionary)
virtual bool write()
Write function.
#define Log
Report write to Foam::Info if the local log switch is true.
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.