35 namespace functionObjects
63 "weightedVolIntegrate",
85 Info<<
" weight field = " << weightFieldName_;
99 writeCommented(
file(),
"Time");
104 <<
tab << operationTypeNames_[operation_]
105 <<
"(" << fields_[fieldi] <<
")";
123 operation_(operationTypeNames_.read(dict.
lookup(
"operation"))),
124 weightFieldName_(
"none")
139 operation_(operationTypeNames_.read(dict.
lookup(
"operation"))),
140 weightFieldName_(
"none")
179 const word& fieldName = fields_[i];
180 bool processed =
false;
182 processed = processed || writeValues<scalar>(fieldName);
183 processed = processed || writeValues<vector>(fieldName);
184 processed = processed || writeValues<sphericalTensor>(fieldName);
185 processed = processed || writeValues<symmTensor>(fieldName);
186 processed = processed || writeValues<tensor>(fieldName);
191 <<
"Requested field " << fieldName
192 <<
" not found in database and not processed" #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.
static const NamedEnum< operationType, 13 > operationTypeNames_
Operation type names.
A list of keyword definitions, which are a keyword followed by any number of values (e...
addToRunTimeSelectionTable(functionObject, fieldValueDelta, dictionary)
void initialise(const dictionary &dict)
Initialise, e.g. cell addressing.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual bool read(const dictionary &dict)
Read from dictionary.
static bool master(const label communicator=0)
Am I the master process.
volFieldValue(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, Time and dictionary.
Initialise the NamedEnum HashTable from the static list of names.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
bool read(const char *, int32_t &)
A class for handling words, derived from string.
defineTypeNameAndDebug(fieldValueDelta, 0)
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
virtual ~volFieldValue()
Destructor.
Volume (cell) region selection class.
void writeFileHeader(const writeFile &wf, Ostream &file)
Output file header information.
virtual void writeFileHeader(const label i)
Output file header information.
#define WarningInFunction
Report a warning using Foam::Warning.
operationType
Operation type enumeration.
#define Log
Report write to Foam::Info if the local log switch is true.
Base class for field value -based function objects.
Registry of regIOobjects.
virtual bool write()
Calculate and write.
virtual bool read(const dictionary &)
Read from dictionary.
const fvMesh & mesh_
Reference to the fvMesh.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual bool write()
Write.