37 const word& redirectType,
38 const word& entryName,
46 driver_(
fvPatch::lookupPatch(this->patch()), dict_)
48 if (
dict.getOrDefault(
"debug",
false))
53 valueExpr_.
readEntry(
"expression", dict_);
56 if (valueExpr_.empty())
59 <<
"The expression was not defined!" <<
nl
86 valueExpr_(rhs.valueExpr_),
87 driver_(
fvPatch::lookupPatch(this->patch()), rhs.driver_, dict_)
101 driver_.clearVariables();
103 driver_.setArgument(
x);
108 <<
"Evaluated: " << tresult() <<
nl;
156 dict_.writeEntry(this->
name(), os);
Abstract base class to hold the Field mapping addressing and weights.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
PatchFunction1 with values supplied by a parsed expression.
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two values.
virtual void rmap(const PatchFunction1< Type > &pf1, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
virtual void autoMap(const FieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual void rmap(const PatchFunction1< Type > &rhs, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
virtual void autoMap(const FieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.
const polyPatch const word const word const dictionary & dict
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool readEntry(const word &keyword, const dictionary &dict, bool mandatory=true, const bool stripComments=true)
virtual bool readDict(const dictionary &dict)
Read variables, tables etc.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A patch is a list of labels that address the faces in the global face list.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
OBJstream os(runTime.globalPath()/outputName)
#define DebugInfo
Report an information message using Foam::Info.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)