Go to the documentation of this file.
49 dynamicCast<const facePointPatch>(this->
patch()).
patch()
70 dynamicCast<const facePointPatch>(this->
patch()).
patch()
91 dynamicCast<const facePointPatch>(this->
patch()).
patch()
97 if (this->valueExpr_.empty())
100 <<
"The valueExpr was not defined!" <<
nl
104 driver_.readDict(
dict);
106 if (
dict.found(
"value"))
116 <<
"No value defined for "
117 << this->internalField().name()
118 <<
" on " << this->
patch().name()
122 if (this->evalOnConstruct_)
143 dynamicCast<const facePointPatch>(this->
patch()).
patch()
162 dynamicCast<const facePointPatch>(this->
patch()).
patch()
177 <<
"Value: " << this->valueExpr_ <<
nl
179 driver_.writeVariableStrings(
Info) <<
endl;
189 driver_.clearVariables();
191 if (this->valueExpr_.empty())
199 driver_.evaluate<Type>(this->valueExpr_,
true)
214 this->writeEntry(
"value",os);
216 driver_.writeCommon(os,this->debug_ ||
debug);
int debug
Static debugging option.
#define InfoInFunction
Report an information message using Foam::Info.
static constexpr const zero Zero
Global zero (0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Basic pointPatch represents a set of points from the mesh.
Foam::pointPatchFieldMapper.
Base class for managing patches with expressions. The expected input supports values,...
Generic templated field type.
messageStream Info
Information stream (uses stdout - output is on the master only)
virtual void write(Ostream &os) const
Write.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
expressions::patchExpr::parseDriver driver_
The expression driver.
errorManipArg< error, int > exit(error &err, const int errNo=1)
exprValuePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
Foam::valuePointPatchField.
const std::string patch
OpenFOAM patch number as a std::string.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
virtual void updateCoeffs()
Update the patch field.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
#define WarningInFunction
Report a warning using Foam::Warning.
string evaluate(const std::string &s, size_t pos=0, size_t len=std::string::npos)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A fixed value point boundary condition with expressions.