43 mixedFvPatchScalarField(
p, iF,
dict, false),
44 phaseFraction_(
dict.lookupOrDefault<
word>(
"phaseFraction",
"alpha")),
51 if (
dict.found(
"value"))
63 this->refGrad() = 0.0;
64 this->valueFraction() = 0.0;
77 mixedFvPatchScalarField(ptf,
p, iF, mapper),
78 phaseFraction_(ptf.phaseFraction_),
80 pRefValue_(ptf.pRefValue_),
81 pRefPoint_(ptf.pRefPoint_)
92 mixedFvPatchScalarField(ptf, iF),
93 phaseFraction_(ptf.phaseFraction_),
95 pRefValue_(ptf.pRefValue_),
96 pRefPoint_(ptf.pRefPoint_)
121 valueFraction() =
max(
min(alphap, scalar(1)), scalar(0));
125 + rho_*((g.value() & patch().Cf()) - (g.value() & pRefPoint_));
127 mixedFvPatchScalarField::updateCoeffs();
134 if (phaseFraction_ !=
"alpha")
136 writeEntry(os,
"phaseFraction", phaseFraction_);
147 void Foam::phaseHydrostaticPressureFvPatchScalarField::operator=
154 valueFraction()*refValue() + (1 - valueFraction())*ptf
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
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 any number of values (e....
Abstract base class for field mapping.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
virtual void operator=(const UList< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
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.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
scalar pRefValue_
Reference pressure.
A class for handling words, derived from string.
const dimensionSet dimPressure
const dimensionSet dimLength
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
const dimensionSet dimDensity
VolField< scalar > volScalarField
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)