37 const word& redirectType,
38 const word& entryName,
45 valueExpr_(
"expression", dict_),
48 if (
dict.getOrDefault(
"debug",
false))
54 if (valueExpr_.empty())
57 <<
"The expression was not defined!" <<
nl 74 valueExpr_(rhs.valueExpr_),
75 driver_(
fvPatch::lookupPatch(this->
patch()), rhs.driver_, dict_)
99 driver_.clearVariables();
101 driver_.setArgument(
x);
106 <<
"Evaluated: " << tresult() <<
nl;
154 dict_.writeEntry(this->
name(), os);
PatchFunction1 with values supplied by a parsed expression.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
constexpr char nl
The newline '\n' character (0x0a)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two values.
const polyPatch const word const word const dictionary & dict
virtual void rmap(const PatchFunction1< Type > &pf1, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Abstract base class to hold the Field mapping addressing and weights.
A class for handling words, derived from Foam::string.
virtual void writeData(Ostream &os) const
Write in dictionary format.
virtual tmp< Field< Type > > value(const scalar x) const
Return value.
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
int debug
Static debugging option.
OBJstream os(runTime.globalPath()/outputName)
virtual void autoMap(const FieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
virtual bool readDict(const dictionary &dict)
Read variables, tables etc.
const std::string patch
OpenFOAM patch number as a std::string.
A class for managing temporary objects.
A patch is a list of labels that address the faces in the global face list.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual void rmap(const PatchFunction1< Type > &rhs, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
PatchExprField(const polyPatch &pp, const word &redirectType, const word &entryName, const dictionary &dict, const bool faceValues=true)
Construct from patch, entry name and dictionary.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...