83#ifndef phaseHydrostaticPressureFvPatchScalarField_H
84#define phaseHydrostaticPressureFvPatchScalarField_H
99 public mixedFvPatchScalarField
122 TypeName(
"phaseHydrostaticPressure");
131 const DimensionedField<scalar, volMesh>&
184 virtual bool assignable()
const {
return true; }
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,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A FieldMapper for finite-volume patch fields.
static tmp< fvPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a phase-based hydrostatic pressure condition, calculated as:
const vector & pRefPoint() const
Return the pressure reference location.
word & phaseFraction()
Return reference to the phaseFraction to allow adjustment.
virtual void operator=(const fvPatchScalarField &pvf)
TypeName("phaseHydrostaticPressure")
Runtime type information.
word phaseFraction_
Name of phase-fraction field.
scalar rho_
Constant density in the far-field.
virtual tmp< fvPatchField< scalar > > clone(const DimensionedField< scalar, volMesh > &iF) const
Clone with an internal field reference.
virtual tmp< fvPatchField< scalar > > clone() const
Return a clone.
vector pRefPoint_
Reference pressure location.
const word & phaseFraction() const
Return the phaseFraction.
vector & pRefPoint()
Return reference to the pressure reference location.
scalar rho() const
Return the constant density in the far-field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
scalar & pRefValue()
Return reference to the reference pressure to allow adjustment.
phaseHydrostaticPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual bool assignable() const
True: this patch field is altered by assignment.
scalar pRefValue_
Reference pressure.
scalar & rho()
Return reference to the constant density in the far-field.
scalar pRefValue() const
Return the reference pressure.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
fvPatchField< scalar > fvPatchScalarField
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.