83#ifndef phaseHydrostaticPressureFvPatchScalarField_H
84#define phaseHydrostaticPressureFvPatchScalarField_H
97class phaseHydrostaticPressureFvPatchScalarField
99 public mixedFvPatchScalarField
122 TypeName(
"phaseHydrostaticPressure");
131 const DimensionedField<scalar, volMesh>&
138 const DimensionedField<scalar, volMesh>&,
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.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a phase-based hydrostatic pressure condition, calculated as:
virtual tmp< fvPatchScalarField > clone(const DimensionedField< scalar, volMesh > &iF) const
Construct and return a clone setting internal field reference.
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.
vector pRefPoint_
Reference pressure location.
const word & phaseFraction() const
Return the phaseFraction.
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
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
Return true: this patch field is altered by assignment.
scalar pRefValue_
Reference pressure.
scalar pRefValue() const
Return the reference pressure.
A class for managing temporary objects.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
A class for handling words, derived from Foam::string.
fvPatchField< scalar > fvPatchScalarField
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.