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);
92 scalarField::operator=
98 + gradient()*(patch().nf() & patch().delta())
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
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
This boundary condition sets the pressure gradient to the provided value such that the flux on the bo...
virtual void write(Ostream &) const
Write.
fixedFluxPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual void updateCoeffs()
Update the patch pressure gradient field.
virtual void updateSnGrad(const scalarField &snGradp)
Update the patch pressure gradient field from the given snGradp.
virtual void write(Ostream &) const
Write.
virtual void readDict(const dictionary &dict)
Read dictionary entries.
A FieldMapper for finite-volume patch fields.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static constexpr const zero Zero
Global zero (0).
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
bool notNull(const T *ptr) noexcept
True if ptr is not a pointer (of type T) to the nullObject.
errorManipArg< error, int > exit(error &err, const int errNo=1)
fvPatchField< scalar > fvPatchScalarField