42 mixedFvPatchScalarField(p, iF),
43 phaseFraction_(
"alpha"),
48 this->refValue() = 0.0;
49 this->refGrad() = 0.0;
50 this->valueFraction() = 0.0;
62 mixedFvPatchScalarField(p, iF),
64 rho_(dict.
lookup<scalar>(
"rho")),
65 pRefValue_(dict.
lookup<scalar>(
"pRefValue")),
66 pRefPoint_(dict.
lookup(
"pRefPoint"))
68 this->refValue() = pRefValue_;
70 if (dict.
found(
"value"))
72 fvPatchScalarField::operator=
79 fvPatchScalarField::operator=(this->refValue());
82 this->refGrad() = 0.0;
83 this->valueFraction() = 0.0;
96 mixedFvPatchScalarField(ptf, p, iF, mapper),
111 mixedFvPatchScalarField(ptf, iF),
140 valueFraction() =
max(
min(alphap, scalar(1)), scalar(0));
146 mixedFvPatchScalarField::updateCoeffs();
166 void Foam::phaseHydrostaticPressureFvPatchScalarField::operator=
173 valueFraction()*refValue() + (1 - valueFraction())*ptf
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
scalar rho_
Constant density in the far-field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
This boundary condition provides a phase-based hydrostatic pressure condition, calculated as: ...
GeometricField< scalar, fvPatchField, volMesh > volScalarField
word phaseFraction_
Name of phase-fraction field.
A class for handling words, derived from string.
vector pRefPoint_
Reference pressure location.
Foam::fvPatchFieldMapper.
phaseHydrostaticPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
volScalarField scalarField(fieldObject, mesh)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
scalar pRefValue_
Reference pressure.
const dimensionedVector & g
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
virtual void write(Ostream &) const
Write.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.