83 #ifndef phaseHydrostaticPressureFvPatchScalarField_H 84 #define phaseHydrostaticPressureFvPatchScalarField_H 97 class phaseHydrostaticPressureFvPatchScalarField
99 public mixedFvPatchScalarField
122 TypeName(
"phaseHydrostaticPressure");
131 const DimensionedField<scalar, volMesh>&
190 virtual bool assignable()
const {
return true; }
TypeName("phaseHydrostaticPressure")
Runtime type information.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
scalar rho_
Constant density in the far-field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
scalar rho() const
Return the constant density in the far-field.
const vector & pRefPoint() const
Return the pressure reference location.
This boundary condition provides a phase-based hydrostatic pressure condition, calculated as: ...
word phaseFraction_
Name of phase-fraction field.
vector pRefPoint_
Reference pressure location.
A FieldMapper for finite-volume patch fields.
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void operator=(const fvPatchScalarField &pvf)
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
const word & phaseFraction() const
Return the phaseFraction.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
scalar pRefValue_
Reference pressure.
A class for managing temporary objects.
virtual void write(Ostream &) const
Write.
scalar pRefValue() const
Return the reference pressure.