44 expressions::patchExprFieldBase(),
66 expressions::patchExprFieldBase(rhs),
89 expressions::patchExprFieldBase
113 dynamicCast<const facePointPatch>(this->patch()).patch()
119 if (this->valueExpr_.empty())
122 <<
"The valueExpr was not defined!" <<
nl
127 driver_.readDict(dict_);
139 <<
"No value defined for "
140 << this->internalField().name()
141 <<
" on " << this->
patch().name()
145 if (this->evalOnConstruct_)
161 expressions::patchExprFieldBase(rhs),
182 expressions::patchExprFieldBase(rhs),
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();
243 this->parent_bctype::write(
os);
246 this->writeEntry(
"value",
os);
248 driver_.writeCommon(
os, this->debug_ || debug);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic templated field type.
friend Ostream & operator(Ostream &, const Field< Type > &)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void size(const label n)
Older name for setAddressableSize.
A wrapper for dictionary content, without operators that could affect inheritance patterns.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
A fixed value point boundary condition with expressions.
virtual void updateCoeffs()
Update the patch field.
expectedTypes
Enumeration of expected expressions.
A pointPatch based on a polyPatch.
virtual bool write()
Write the output fields.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
static const fvPatch & lookupPatch(const polyPatch &p)
Lookup the polyPatch index on corresponding fvMesh.
Foam::pointPatchFieldMapper.
Basic pointPatch represents a set of points from the mesh.
Foam::valuePointPatchField.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
OBJstream os(runTime.globalPath()/outputName)
#define WarningInFunction
Report a warning using Foam::Warning.
#define InfoInFunction
Report an information message using Foam::Info.
const std::string patch
OpenFOAM patch number as a std::string.
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.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static constexpr const zero Zero
Global zero (0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
To & dynamicCast(From &r)