Go to the documentation of this file.
83 #ifndef phaseHydrostaticPressureFvPatchScalarField_H
84 #define phaseHydrostaticPressureFvPatchScalarField_H
97 class phaseHydrostaticPressureFvPatchScalarField
99 public mixedFvPatchScalarField
122 TypeName(
"phaseHydrostaticPressure");
131 const DimensionedField<scalar, volMesh>&
138 const DimensionedField<scalar, volMesh>&,
fvPatchField< scalar > fvPatchScalarField
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
TypeName("phaseHydrostaticPressure")
Runtime type information.
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
const vector & pRefPoint() const
Return the pressure reference location.
scalar rho() const
Return the constant density in the far-field.
vector pRefPoint_
Reference pressure location.
virtual bool assignable() const
Return true: this patch field is altered by assignment.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
word phaseFraction_
Name of phase-fraction field.
scalar pRefValue() const
Return the reference pressure.
This boundary condition provides a phase-based hydrostatic pressure condition, calculated as:
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
scalar & pRefValue()
Return reference to the reference pressure to allow adjustment.
phaseHydrostaticPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Vector< scalar > vector
A scalar version of the templated Vector.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const word & phaseFraction() const
Return the phaseFraction.
scalar rho_
Constant density in the far-field.
scalar pRefValue_
Reference pressure.
word & phaseFraction()
Return reference to the phaseFraction to allow adjustment.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void write(Ostream &) const
Write.
virtual void operator=(const fvPatchScalarField &pvf)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...