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),
65 phiName_(ptf.phiName_),
66 lowerBound_(ptf.lowerBound_),
67 upperBound_(ptf.upperBound_)
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"))
85 this->refValue() = 0.0;
99 this->refGrad() = 0.0;
100 this->valueFraction() = 0.0;
104Foam::variableHeightFlowRateFvPatchScalarField
105 ::variableHeightFlowRateFvPatchScalarField
110 mixedFvPatchScalarField(ptf),
111 phiName_(ptf.phiName_),
112 lowerBound_(ptf.lowerBound_),
113 upperBound_(ptf.upperBound_)
117Foam::variableHeightFlowRateFvPatchScalarField
118 ::variableHeightFlowRateFvPatchScalarField
124 mixedFvPatchScalarField(ptf, iF),
125 phiName_(ptf.phiName_),
126 lowerBound_(ptf.lowerBound_),
127 upperBound_(ptf.upperBound_)
148 if (phip[i] < -SMALL)
150 if (alphap[i] < lowerBound_)
152 this->refValue()[i] = 0.0;
154 else if (alphap[i] > upperBound_)
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);
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.
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
virtual void operator=(const UList< scalar > &)
friend Ostream & operator(Ostream &, const fvPatchField< scalar > &)
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 base class for 'mixed' type boundary conditions,...
This boundary condition provides a phase fraction condition based on the local flow conditions,...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
#define forAll(list, i)
Loop across all elements in list.