Go to the documentation of this file.
37 if (expressions::patchExprFieldBase::debug_ && !
debug)
56 driver_(this->
patch())
85 const bool valueRequired
92 expressions::patchExprFieldBase::expectedTypes::VALUE_TYPE
97 dictionaryContent::copyDict
108 driver_(this->
patch(), dict_)
114 if (this->valueExpr_.empty())
117 <<
"The valueExpr was not defined!" <<
nl
122 driver_.readDict(dict_);
124 if (
dict.found(
"value"))
126 fvPatchField<Type>::operator=
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_)
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);
int debug
Static debugging option.
#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.
exprFixedValueFvPatchField(const fvPatch &p, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
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
Write.
Base class for managing patches with expressions. The expected input supports value,...
messageStream Info
Information stream (stdout output on master, null elsewhere)
#define DebugInFunction
Report an information message using Foam::Info.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
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_
The expression driver.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A fixed value boundary condition with expressions.
const std::string patch
OpenFOAM patch number as a std::string.
dictionary dict_
Dictionary contents for the boundary condition.
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.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void setDebug()
Set debug ON if "debug" is enabled.
#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...
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.