Go to the documentation of this file.
50 dynamicCast<const facePointPatch>(this->
patch()).
patch()
72 dynamicCast<const facePointPatch>(this->
patch()).
patch()
92 expressions::patchExprFieldBase::expectedTypes::VALUE_TYPE,
98 dictionaryContent::copyDict
113 dynamicCast<const facePointPatch>(this->
patch()).
patch()
119 if (this->valueExpr_.empty())
122 <<
"The valueExpr was not defined!" <<
nl
127 driver_.readDict(dict_);
129 if (
dict.found(
"value"))
131 Field<Type>::operator=
133 Field<Type>(
"value",
dict,
p.size())
139 <<
"No value defined for "
140 << this->internalField().name()
141 <<
" on " << this->
patch().name()
145 if (this->evalOnConstruct_)
167 dynamicCast<const facePointPatch>(this->
patch()).
patch()
188 dynamicCast<const facePointPatch>(this->
patch()).
patch()
209 <<
"Value: " << this->valueExpr_ <<
nl
211 driver_.writeVariableStrings(
Info) <<
nl;
218 bool evalValue = (!this->valueExpr_.empty() && this->valueExpr_ !=
"0");
221 driver_.clearVariables();
227 driver_.evaluate<Type>(this->valueExpr_,
true)
236 this->parent_bctype::updateCoeffs();
246 this->writeEntry(
"value",
os);
248 driver_.writeCommon(
os, this->debug_ ||
debug);
int debug
Static debugging option.
dictionary dict_
Dictionary contents for the boundary condition.
#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.
List< word > wordList
A List of words.
Base class for managing patches with expressions. The expected input supports value,...
Generic templated field type.
messageStream Info
Information stream (stdout output on master, null elsewhere)
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.
OBJstream os(runTime.globalPath()/outputName)
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.
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.
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.