Go to the documentation of this file.
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
63 driver_.readDict(dict_);
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);
int debug
Static debugging option.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two values.
virtual tmp< Field< Type > > value(const scalar x) const
Return value.
Abstract base class to hold the Field mapping addressing and weights.
virtual void rmap(const PatchFunction1< Type > &pf1, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
A patch is a list of labels that address the faces in the global face list.
virtual void writeData(Ostream &os) const
Write in dictionary format.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
PatchExprField(const polyPatch &pp, const word &redirectType, const word &entryName, const dictionary &dict, const bool faceValues=true)
Construct from patch, entry name and dictionary.
OBJstream os(runTime.globalPath()/outputName)
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual void autoMap(const FieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.
#define DebugInfo
Report an information message using Foam::Info.
PatchFunction1 with values supplied by a parsed expression.
const std::string patch
OpenFOAM patch number as a std::string.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...