Go to the documentation of this file.
49 this->refValue() = 0.0;
50 this->refGrad() = 0.0;
51 this->valueFraction() = 0.0;
64 mixedFvPatchScalarField(ptf,
p, iF, mapper),
79 mixedFvPatchScalarField(
p, iF),
80 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
81 lowerBound_(
dict.get<scalar>(
"lowerBound")),
82 upperBound_(
dict.get<scalar>(
"upperBound"))
84 patchType() =
dict.getOrDefault<
word>(
"patchType", word::null);
85 this->refValue() = 0.0;
87 if (
dict.found(
"value"))
89 fvPatchScalarField::operator=
96 fvPatchScalarField::operator=(this->patchInternalField());
99 this->refGrad() = 0.0;
100 this->valueFraction() = 0.0;
110 mixedFvPatchScalarField(ptf),
124 mixedFvPatchScalarField(ptf, iF),
148 if (phip[i] < -SMALL)
152 this->refValue()[i] = 0.0;
156 this->refValue()[i] = 1.0;
160 this->refValue()[i] = alphap[i];
163 this->valueFraction()[i] = 1.0;
167 this->refValue()[i] = 0.0;
168 this->valueFraction()[i] = 0.0;
172 mixedFvPatchScalarField::updateCoeffs();
182 this->writeEntry(
"value",
os);
scalar lowerBound_
Lower bound for alpha1.
virtual void write(Ostream &) const
Write.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for handling words, derived from Foam::string.
scalar upperBound_
Upper bound for alpha1.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
#define forAll(list, i)
Loop across all elements in list.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
word phiName_
Name of flux field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
This boundary condition provides a phase fraction condition based on the local flow conditions,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const std::string patch
OpenFOAM patch number as a std::string.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Foam::fvPatchFieldMapper.
virtual void write(Ostream &) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
variableHeightFlowRateFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...