43 fixedGradientFvPatchScalarField(
p, iF),
55 fixedGradientFvPatchScalarField(
p, iF),
60 if (!this->readGradientEntry(
dict) || !this->readValueEntry(
dict))
62 extrapolateInternal();
70 const fixedFluxPressureFvPatchScalarField& ptf,
72 const DimensionedField<scalar, volMesh>& iF,
73 const fvPatchFieldMapper& mapper
76 fixedGradientFvPatchScalarField(
p, iF),
79 patchType() = ptf.patchType();
83 gradient().map(ptf.gradient(), mapper);
105 this->map(ptf, mapper);
112 const fixedFluxPressureFvPatchScalarField& wbppsf
115 fixedGradientFvPatchScalarField(wbppsf),
126 fixedGradientFvPatchScalarField(wbppsf, iF),
143 curTimeIndex_ = this->db().time().timeIndex();
145 gradient() = snGradp;
146 fixedGradientFvPatchScalarField::updateCoeffs();
157 if (curTimeIndex_ != this->db().time().
timeIndex())
160 <<
"updateCoeffs(const scalarField& snGradp) MUST be called before" 161 " updateCoeffs() or evaluate() to set the boundary gradient." 181 fixedFluxPressureFvPatchScalarField
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual void updateSnGrad(const scalarField &snGradp)
Update the patch pressure gradient field from the given snGradp.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void readDict(const dictionary &dict)
Read dictionary entries.
Macros for easy insertion into run-time selection tables.
virtual void write(Ostream &) const
Write.
friend Ostream & operator(Ostream &, const Field< scalar > &)
fvPatchField< scalar > fvPatchScalarField
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the patch pressure gradient field.
This boundary condition sets the pressure gradient to the provided value such that the flux on the bo...
OBJstream os(runTime.globalPath()/outputName)
fixedFluxPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
bool notNull(const T *ptr) noexcept
True if ptr is not a pointer (of type T) to the nullObject.
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.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
static constexpr const zero Zero
Global zero (0)