Go to the documentation of this file.
54 #ifndef fixedFluxPressureFvPatchScalarField_H
55 #define fixedFluxPressureFvPatchScalarField_H
72 public fixedGradientFvPatchScalarField,
172 template<
class GradBC>
181 if (isA<GradBC>(bf[patchi]))
183 refCast<GradBC>(bf[patchi]).updateSnGrad(
snGrad[patchi]);
188 template<
class GradBC>
195 setSnGrad<GradBC>(bf, tsnGrad());
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
A field of fields is a PtrList of fields with reference counting.
A class for managing temporary objects.
virtual void updateCoeffs()
Update the patch pressure gradient field.
#define forAll(list, i)
Loop across all elements in list.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
void setSnGrad(volScalarField::Boundary &bf, const FieldField< fvsPatchField, scalar > &snGrad)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void updateSnGrad(const scalarField &snGradp)
Update the patch pressure gradient field from the given snGradp.
This boundary condition sets the pressure gradient to the provided value such that the flux on the bo...
virtual void write(Ostream &) const
Write.
TypeName("fixedFluxPressure")
Runtime type information.
Foam::fvPatchFieldMapper.
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...