78 #ifndef phaseHydrostaticPressureFvPatchScalarField_H
79 #define phaseHydrostaticPressureFvPatchScalarField_H
92 class phaseHydrostaticPressureFvPatchScalarField
94 public mixedFvPatchScalarField
117 TypeName(
"phaseHydrostaticPressure");
126 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,...
Abstract base class for field mapping.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
This boundary condition provides a phase-based hydrostatic pressure condition, calculated as:
phaseHydrostaticPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
const word & phaseFraction() const
Return the phaseFraction.
virtual void operator=(const fvPatchScalarField &pvf)
TypeName("phaseHydrostaticPressure")
Runtime type information.
word phaseFraction_
Name of phase-fraction field.
virtual void write(Ostream &) const
Write.
scalar rho_
Constant density in the far-field.
vector pRefPoint_
Reference pressure location.
virtual tmp< fvPatchScalarField > clone(const DimensionedField< scalar, volMesh > &iF) const
Construct and return a clone setting internal field reference.
scalar rho() const
Return the constant density in the far-field.
virtual void updateCoeffs()
Update the coefficients associated with the patch 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.
const vector & pRefPoint() const
Return the pressure reference location.
A class for managing temporary objects.
A class for handling words, derived from string.
Vector< scalar > vector
A scalar version of the templated Vector.