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_)
89 expressions::patchExprFieldBase
92 expressions::patchExprFieldBase::expectedTypes::VALUE_TYPE
108 driver_(this->
patch(), dict_)
111 <<
"Use uniformFixedValue with an expression Function1 instead." <<
nl 112 <<
" This boundary condition will be removed in the future" <<
endl;
118 if (this->valueExpr_.empty())
121 <<
"The valueExpr was not defined!" <<
nl 126 driver_.readDict(dict_);
131 if (!this->readValueEntry(
dict))
134 this->extrapolateInternal();
138 <<
"No value defined for " 139 << this->internalField().name() <<
" on " 140 << this->
patch().name() <<
" - using patch internal field" <<
endl;
144 if (this->evalOnConstruct_)
155 const exprFixedValueFvPatchField<Type>& rhs
159 expressions::patchExprFieldBase(rhs),
161 driver_(this->
patch(), rhs.driver_, dict_)
175 parent_bctype(rhs, iF),
176 expressions::patchExprFieldBase(rhs),
178 driver_(this->
patch(), rhs.driver_, dict_)
198 <<
"Value: " << this->valueExpr_ <<
nl 200 driver_.writeVariableStrings(
Info) <<
nl;
207 bool evalValue = (!this->valueExpr_.empty() && this->valueExpr_ !=
"0");
210 driver_.clearVariables();
214 (*this) == driver_.evaluate<Type>(this->valueExpr_);
222 this->parent_bctype::updateCoeffs();
232 driver_.writeCommon(
os, this->debug_ ||
debug);
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...
virtual void write(Ostream &os) const
Write.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
void setDebug()
Set debug ON if "debug" is enabled.
virtual void readDict(const dictionary &dict)
Read dictionary entries.
#define DeprecatedInFunction(afterVersion)
Report a warning using Foam::Warning.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
#define DebugInFunction
Report an information message using Foam::Info.
A fixed value boundary condition with expressions.
A FieldMapper for finite-volume patch fields.
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.
A wrapper for dictionary content, without operators that could affect inheritance patterns...
int debug
Static debugging option.
OBJstream os(runTime.globalPath()/outputName)
exprFixedValueFvPatchField(const fvPatch &p, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
#define WarningInFunction
Report a warning using Foam::Warning.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
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)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
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)
readOption
Enumeration defining read preferences.