49 this->refValue() = 0.0;
50 this->refGrad() = 0.0;
51 this->valueFraction() = 0.0;
64 mixedFvPatchScalarField(ptf,
p, iF, mapper),
65 phiName_(ptf.phiName_),
66 lowerBound_(ptf.lowerBound_),
67 upperBound_(ptf.upperBound_)
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;
104 mixedFvPatchScalarField(ptf),
105 phiName_(ptf.phiName_),
106 lowerBound_(ptf.lowerBound_),
107 upperBound_(ptf.upperBound_)
118 mixedFvPatchScalarField(ptf, iF),
119 phiName_(ptf.phiName_),
120 lowerBound_(ptf.lowerBound_),
121 upperBound_(ptf.upperBound_)
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
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions, i.e. conditions that mix fixed value and patch-normal gradient conditions.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
virtual void readDict(const dictionary &dict)
Read dictionary entries.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
fvPatchField< scalar > fvPatchScalarField
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
This boundary condition provides a phase fraction condition based on the local flow conditions...
A FieldMapper for finite-volume patch fields.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
OBJstream os(runTime.globalPath()/outputName)
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
variableHeightFlowRateFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.