54 #ifndef fixedFluxPressureFvPatchScalarField_H 55 #define fixedFluxPressureFvPatchScalarField_H 72 public fixedGradientFvPatchScalarField,
172 template<
class GradBC>
176 const FieldField<fvsPatchField, scalar>&
snGrad 181 if (isA<GradBC>(bf[patchi]))
183 refCast<GradBC>(bf[patchi]).updateSnGrad(
snGrad[patchi]);
188 template<
class GradBC>
192 const tmp<FieldField<fvsPatchField, scalar>>& tsnGrad
195 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.
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.
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)