36namespace functionObjects
48 const word& defaultArg
79 const word& fieldName,
80 const word& resultName
84 fieldName_(fieldName),
85 resultName_(resultName)
97 if (fieldName_.empty() ||
dict.found(
"field"))
99 dict.readEntry(
"field", fieldName_);
102 dict.readIfPresent(
"result", resultName_);
104 if (
dict.found(
"cellZones"))
110 zoneSubSetPtr_.reset(
nullptr);
125 <<
" functionObjects::" <<
type() <<
" " <<
name()
126 <<
" failed to execute." <<
endl;
140 return writeObject(resultName_);
146 return clearObject(resultName_);
virtual bool read()
Re-read model coefficients if they have changed.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
word scopedName(const word &name) const
Return a scoped (prefixed) name.
Intermediate class for handling field expression function objects (e.g. blendingFactor etc....
virtual bool read(const dictionary &dict)
Read the fieldExpression data.
word resultName_
Name of result field.
word fieldName_
Name of field to process.
virtual bool clear()
Clear the result field from the objectRegistry.
virtual bool execute()
Calculate the result field.
virtual bool write()
Write the result field.
void setResultName(const word &typeName, const word &defaultArg)
Set the name of result field.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.