40 fixedGradientFvPatchScalarField(p, iF),
52 fixedGradientFvPatchScalarField(p, iF, dict,
false),
55 if (dict.
found(
"value") && dict.
found(
"gradient"))
76 fixedGradientFvPatchScalarField(ptf, p, iF, mapper),
87 fixedGradientFvPatchScalarField(wbppsf, iF),
104 curTimeIndex_ = this->db().time().timeIndex();
106 gradient() = snGradp;
107 fixedGradientFvPatchScalarField::updateCoeffs();
118 if (curTimeIndex_ != this->db().time().
timeIndex())
121 <<
"updateCoeffs(const scalarField& snGradp) MUST be called before" 122 " 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.
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)
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)