35 namespace functionObjects
63 "weightedVolIntegrate",
85 Info<<
name() <<
" " << operationTypeNames_[operation_]
86 <<
" weight fields " << weightFieldNames_;
88 else if (dict.
found(
"weightField"))
90 weightFieldNames_.setSize(1);
91 dict.
lookup(
"weightField") >> weightFieldNames_[0];
93 Info<<
name() <<
" " << operationTypeNames_[operation_]
94 <<
" weight field " << weightFieldNames_[0];
108 writeCommented(
file(),
"Time");
112 file() <<
tab << operationTypeNames_[operation_] <<
"(";
114 forAll(weightFieldNames_, i)
116 file() << weightFieldNames_[i] <<
',';
119 file() << fields_[fieldi] <<
")";
137 operation_(operationTypeNames_.read(dict.
lookup(
"operation")))
152 operation_(operationTypeNames_.read(dict.
lookup(
"operation")))
191 const word& fieldName = fields_[i];
192 bool processed =
false;
194 processed = processed || writeValues<scalar>(fieldName);
195 processed = processed || writeValues<vector>(fieldName);
196 processed = processed || writeValues<sphericalTensor>(fieldName);
197 processed = processed || writeValues<symmTensor>(fieldName);
198 processed = processed || writeValues<tensor>(fieldName);
203 <<
"Requested field " << fieldName
204 <<
" not found in database and not processed" bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
#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.
word name(const complex &)
Return a string representation of a complex.
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.