54 #ifndef fixedFluxPressureFvPatchScalarField_H 55 #define fixedFluxPressureFvPatchScalarField_H 72 public fixedGradientFvPatchScalarField,
166 template<
class GradBC>
170 const FieldField<fvsPatchField, scalar>&
snGrad 175 if (isA<GradBC>(bf[patchi]))
177 refCast<GradBC>(bf[patchi]).updateSnGrad(
snGrad[patchi]);
182 template<
class GradBC>
186 const tmp<FieldField<fvsPatchField, scalar>>& tsnGrad
189 setSnGrad<GradBC>(bf, tsnGrad());
virtual void updateSnGrad(const scalarField &snGradp)
Update the patch pressure gradient field from the given snGradp.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void setSnGrad(volScalarField::Boundary &bf, const FieldField< fvsPatchField, scalar > &snGrad)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
GeometricBoundaryField< scalar, fvPatchField, volMesh > Boundary
Type of boundary fields.
#define forAll(list, i)
Loop across all elements in list.
static tmp< fvPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the patch pressure gradient field.
A FieldMapper for finite-volume patch fields.
TypeName("fixedFluxPressure")
Runtime type information.
This boundary condition sets the pressure gradient to the provided value such that the flux on the bo...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
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...
A class for managing temporary objects.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
virtual tmp< fvPatchField< scalar > > clone() const
Return a clone.