50 valueFraction() = 0.0;
65 alphaName_(ptf.alphaName_)
78 Umean_(
dict.
get<scalar>(
"Umean")),
87 if (!this->readValueEntry(
dict))
89 this->extrapolateInternal();
97 const outletPhaseMeanVelocityFvPatchVectorField& ptf
100 mixedFvPatchField<
vector>(ptf),
102 alphaName_(ptf.alphaName_)
115 alphaName_(ptf.alphaName_)
130 patch().lookupPatchField<volScalarField>(alphaName_)
133 alphap =
max(alphap, scalar(0));
134 alphap =
min(alphap, scalar(1));
146 if (Uzgmean >= Umean_)
149 valueFraction() = 1.0 - Umean_/Uzgmean;
153 refValue() = (Umean_ + Uzgmean)*
patch().nf();
154 valueFraction() = 1.0 - Uzgmean/Umean_;
181 outletPhaseMeanVelocityFvPatchVectorField
outletPhaseMeanVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
fvPatchField< vector > fvPatchVectorField
virtual void write(Ostream &) const
Write.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
This boundary condition adjusts the velocity for the given phase to achieve the specified mean thus c...
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.
Lookup type of boundary radiation properties.
Macros for easy insertion into run-time selection tables.
Type gSum(const FieldField< Field, Type > &f)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A FieldMapper for finite-volume patch fields.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
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.
Field< vector > vectorField
Specialisation of Field<T> for vector.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
static constexpr const zero Zero
Global zero (0)