40 fixedGradientFvPatchScalarField(p, iF),
52 fixedGradientFvPatchScalarField(p, iF),
55 if (dict.
found(
"value") && dict.
found(
"gradient"))
79 fixedGradientFvPatchScalarField(p, iF),
82 patchType() = ptf.patchType();
86 mapper(gradient(), ptf.gradient());
91 scalarField::operator=
96 patchInternalField() + gradient()*(patch().nf() & patch().delta())
113 fixedGradientFvPatchScalarField(wbppsf),
124 fixedGradientFvPatchScalarField(wbppsf, iF),
141 curTimeIndex_ = this->db().time().timeIndex();
143 gradient() = snGradp;
144 fixedGradientFvPatchScalarField::updateCoeffs();
155 if (curTimeIndex_ != this->db().time().
timeIndex())
158 <<
"updateCoeffs(const scalarField& snGradp) MUST be called before" 159 " updateCoeffs() or evaluate() to set the boundary gradient."
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Macros for easy insertion into run-time selection tables.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the patch pressure gradient field.
Foam::fvPatchFieldMapper.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
This boundary condition sets the pressure gradient to the provided value such that the flux on the bo...
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
volScalarField scalarField(fieldObject, mesh)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
bool notNull(const T &t)
Return true if t is not a reference to the nullObject of type T.
fixedFluxPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)