Go to the documentation of this file.
42 mixedFvPatchScalarField(
p, iF),
46 pRefPoint_(vector::zero)
48 this->refValue() = 0.0;
49 this->refGrad() = 0.0;
50 this->valueFraction() = 0.0;
62 mixedFvPatchScalarField(
p, iF),
63 phaseName_(
dict.lookupOrDefault<
word>(
"phaseName",
"alpha")),
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),
110 mixedFvPatchScalarField(ptf),
122 mixedFvPatchScalarField(ptf, iF),
151 valueFraction() =
max(
min(alphap, scalar(1.0)), scalar(0.0));
157 mixedFvPatchScalarField::updateCoeffs();
164 if (phaseName_ !=
"alpha")
172 writeEntry(
"value", os);
178 void Foam::phaseHydrostaticPressureFvPatchScalarField::operator=
185 valueFraction()*refValue()
186 + (1 - valueFraction())*ptf
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
A class for handling words, derived from string.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
const dimensionedVector & g
vector pRefPoint_
Reference pressure location.
Pre-declare SubField and related Field type.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a phase-based hydrostatic pressure condition, calculated as:
GeometricField< scalar, fvPatchField, volMesh > volScalarField
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
phaseHydrostaticPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
volScalarField scalarField(fieldObject, mesh)
scalar rho_
Constant density in the far-field.
scalar pRefValue_
Reference pressure.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
Foam::fvPatchFieldMapper.
word phaseName_
Name of phase-fraction field.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void write(Ostream &) const
Write.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...