Go to the documentation of this file.
42 const fvMesh* meshptr = isA<fvMesh>(pmesh);
47 <<
"Point patch not attached to a base fvMesh, "
48 <<
"cannot use patch expressions" <<
nl <<
endl
70 allowGradient_(allowGradient),
71 evalOnConstruct_(
false),
85 debug_(
dict.lookupOrDefault(
"debug",
false)),
86 allowGradient_(allowGradient),
87 evalOnConstruct_(
dict.lookupOrDefault<
bool>(
"evalOnConstruct",
false)),
99 if (
dict.readIfPresent(
"valueExpr", expr))
108 Info<<
"No valueExpr" <<
nl;
114 if (
dict.readIfPresent(
"gradientExpr", expr))
124 Info<<
"No gradientExpr" <<
nl;
128 if (
dict.readIfPresent(
"fractionExpr", expr))
130 if (!expr.empty() && expr !=
"0")
134 expr =
"toPoint(" + expr +
")";
171 if (!valueExpr_.empty())
175 if (!gradExpr_.empty())
179 if (!fracExpr_.empty())
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
A pointPatch based on a polyPatch.
Ostream & endl(Ostream &os)
Add newline and flush stream.
expressions::exprString gradExpr_
Mesh consisting of general polyhedral cells.
virtual label index() const
Return the index of this patch in the pointBoundaryMesh.
Base class for managing patches with expressions. The expected input supports values,...
patchExprFieldBase()
Null constructor.
const Mesh & mesh() const
messageStream Info
Information stream (uses stdout - output is on the master only)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const pointMesh & mesh() const
Return the mesh reference.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
expressions::exprString fracExpr_
errorManipArg< error, int > exit(error &err, const int errNo=1)
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
static const fvPatch & getFvPatch(const facePointPatch &fp)
Find (guess) fvPatch from a pointPatch.
void write(Ostream &os) const
Write.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const pointBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
expressions::exprString valueExpr_
bool evalOnConstruct_
Slightly dodgy concept here.