37Foam::variableHeightFlowRateFvPatchScalarField
38::variableHeightFlowRateFvPatchScalarField
49 this->refValue() = 0.0;
50 this->refGrad() = 0.0;
51 this->valueFraction() = 0.0;
55Foam::variableHeightFlowRateFvPatchScalarField
56::variableHeightFlowRateFvPatchScalarField
64 mixedFvPatchScalarField(ptf,
p, iF, mapper),
71Foam::variableHeightFlowRateFvPatchScalarField
72::variableHeightFlowRateFvPatchScalarField
79 mixedFvPatchScalarField(
p, iF),
80 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
81 lowerBound_(
dict.get<scalar>(
"lowerBound")),
82 upperBound_(
dict.get<scalar>(
"upperBound"))
86 if (!this->readValueEntry(
dict))
89 this->extrapolateInternal();
92 this->refValue() = 0.0;
93 this->refGrad() = 0.0;
94 this->valueFraction() = 0.0;
98Foam::variableHeightFlowRateFvPatchScalarField
99 ::variableHeightFlowRateFvPatchScalarField
104 mixedFvPatchScalarField(ptf),
111Foam::variableHeightFlowRateFvPatchScalarField
112 ::variableHeightFlowRateFvPatchScalarField
118 mixedFvPatchScalarField(ptf, iF),
119 phiName_(ptf.phiName_),
141 if (phip[i] < -SMALL)
143 if (alphap[i] < lowerBound_)
145 this->refValue()[i] = 0.0;
147 else if (alphap[i] > upperBound_)
149 this->refValue()[i] = 1.0;
153 this->refValue()[i] = alphap[i];
156 this->valueFraction()[i] = 1.0;
160 this->refValue()[i] = 0.0;
161 this->valueFraction()[i] = 0.0;
165 mixedFvPatchScalarField::updateCoeffs();
186 variableHeightFlowRateFvPatchScalarField
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...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void readDict(const dictionary &dict)
Read dictionary entries.
A FieldMapper for finite-volume patch fields.
virtual void write(Ostream &) const
Write.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
This boundary condition provides a phase fraction condition based on the local flow conditions,...
virtual void write(Ostream &) const
Write.
scalar upperBound_
Upper bound for alpha1.
scalar lowerBound_
Lower bound for alpha1.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
word phiName_
Name of flux field.
variableHeightFlowRateFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
fvPatchField< scalar > fvPatchScalarField
#define forAll(list, i)
Loop across all elements in list.