44 expressions::patchExprFieldBase(),
65 parent_bctype(rhs,
p, iF, mapper),
66 expressions::patchExprFieldBase(rhs),
89 expressions::patchExprFieldBase
92 expressions::patchExprFieldBase::expectedTypes::VALUE_TYPE,
113 refCast<const facePointPatch>(this->
patch()).
patch()
124 if (this->valueExpr_.empty())
127 <<
"The valueExpr was not defined!" <<
nl 131 driver_.readDict(dict_);
133 if (!this->readValueEntry(
dict))
136 this->extrapolateInternal();
139 if (this->evalOnConstruct_)
150 const exprValuePointPatchField<Type>& rhs,
151 const DimensionedField<Type, pointMesh>& iF
154 parent_bctype(rhs, iF),
155 expressions::patchExprFieldBase(rhs),
176 expressions::patchExprFieldBase(rhs),
203 <<
"Value: " << this->valueExpr_ <<
nl 205 driver_.writeVariableStrings(
Info) <<
nl;
212 bool evalValue = (!this->valueExpr_.empty() && this->valueExpr_ !=
"0");
215 driver_.clearVariables();
221 driver_.evaluate<Type>(this->valueExpr_,
true)
230 this->parent_bctype::updateCoeffs();
240 this->writeValueEntry(
os);
242 driver_.writeCommon(
os, this->debug_ ||
debug);
virtual void updateCoeffs()
Update the patch field.
Foam::valuePointPatchField.
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...
static const fvPatch & lookupPatch(const polyPatch &p)
Lookup the polyPatch index on corresponding fvMesh.
constexpr char nl
The newline '\n' character (0x0a)
Type & refCast(U &obj)
A dynamic_cast (for references). Generates a FatalError on failed casts and uses the virtual type() m...
Foam::pointPatchFieldMapper.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A fixed value point boundary condition with expressions.
A pointPatch based on a polyPatch.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
friend Ostream & operator(Ostream &, const Field< Type > &)
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)
String evaluation with specified (positive, non-zero) field width.
exprValuePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
A wrapper for dictionary content, without operators that could affect inheritance patterns...
virtual void write(Ostream &os) const
Write.
int debug
Static debugging option.
OBJstream os(runTime.globalPath()/outputName)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Basic pointPatch represents a set of points from the mesh.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
messageStream Info
Information stream (stdout output on master, null elsewhere)
void write(Ostream &os) const
Write.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
#define InfoInFunction
Report an information message using Foam::Info.
static constexpr const zero Zero
Global zero (0)