Go to the documentation of this file.
37 if (expressions::patchExprFieldBase::debug_ && !
debug)
54 expressions::patchExprFieldBase(),
56 driver_(this->
patch())
69 parent_bctype(rhs,
p, iF, mapper),
70 expressions::patchExprFieldBase(rhs),
72 driver_(this->
patch(), rhs.driver_, dict_)
85 const bool valueRequired
89 expressions::patchExprFieldBase
92 expressions::patchExprFieldBase::expectedTypes::VALUE_TYPE
108 driver_(this->
patch(), dict_)
114 if (this->valueExpr_.empty())
117 <<
"The valueExpr was not defined!" <<
nl
122 driver_.readDict(dict_);
128 Field<Type>(
"value",
dict,
p.size())
133 (*this) == this->patchInternalField();
137 <<
"No value defined for "
138 << this->internalField().name() <<
" on "
139 << this->
patch().name() <<
" - using patch internal field" <<
endl;
143 if (this->evalOnConstruct_)
154 const exprFixedValueFvPatchField<Type>& rhs
158 expressions::patchExprFieldBase(rhs),
160 driver_(this->
patch(), rhs.driver_, dict_)
174 parent_bctype(rhs, iF),
175 expressions::patchExprFieldBase(rhs),
177 driver_(this->
patch(), rhs.driver_, dict_)
197 <<
"Value: " << this->valueExpr_ <<
nl
199 driver_.writeVariableStrings(
Info) <<
nl;
206 bool evalValue = (!this->valueExpr_.empty() && this->valueExpr_ !=
"0");
209 driver_.clearVariables();
213 (*this) == driver_.evaluate<Type>(this->valueExpr_);
221 this->parent_bctype::updateCoeffs();
231 driver_.writeCommon(
os, this->debug_ ||
debug);
static constexpr const zero Zero
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
Ostream & endl(Ostream &os)
exprFixedValueFvPatchField(const fvPatch &p, const DimensionedField< Type, volMesh > &)
A wrapper for dictionary content, without operators that could affect inheritance patterns.
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
List< word > wordList
A List of words.
virtual void write(Ostream &os) const
Base class for managing patches with expressions. The expected input supports value,...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void updateCoeffs()
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
expressions::patchExpr::parseDriver driver_
errorManipArg< error, int > exit(error &err, const int errNo=1)
void write(Ostream &os) const
A fixed value boundary condition with expressions.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void write(vtk::formatter &fmt, const Type &val, const label n=1)
#define FatalIOErrorInFunction(ios)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
#define WarningInFunction
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)