42 mixedFvPatchScalarField(
p, iF,
dict, false),
43 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
44 lowerBound_(
dict.lookup<scalar>(
"lowerBound")),
45 upperBound_(
dict.lookup<scalar>(
"upperBound"))
47 this->refValue() = 0.0;
49 if (
dict.found(
"value"))
61 this->refGrad() = 0.0;
62 this->valueFraction() = 0.0;
75 mixedFvPatchScalarField(ptf,
p, iF, mapper),
76 phiName_(ptf.phiName_),
77 lowerBound_(ptf.lowerBound_),
78 upperBound_(ptf.upperBound_)
89 mixedFvPatchScalarField(ptf, iF),
90 phiName_(ptf.phiName_),
91 lowerBound_(ptf.lowerBound_),
92 upperBound_(ptf.upperBound_)
113 if (phip[i] < -small)
115 if (alphap[i] < lowerBound_)
117 this->refValue()[i] = 0.0;
119 else if (alphap[i] > upperBound_)
121 this->refValue()[i] = 1.0;
125 this->refValue()[i] = alphap[i];
128 this->valueFraction()[i] = 1.0;
132 this->refValue()[i] = 0.0;
133 this->valueFraction()[i] = 0.0;
137 mixedFvPatchScalarField::updateCoeffs();
144 if (phiName_ !=
"phi")
#define forAll(list, i)
Loop across all elements in list.
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,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Foam::fvPatchFieldMapper.
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.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
This boundary condition provides a phase fraction condition based on the local flow conditions,...
virtual void write(Ostream &) const
Write.
variableHeightFlowRateFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for handling words, derived from string.
SurfaceField< scalar > surfaceScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)