37Foam::outletPhaseMeanVelocityFvPatchVectorField
38::outletPhaseMeanVelocityFvPatchVectorField
50 valueFraction() = 0.0;
54Foam::outletPhaseMeanVelocityFvPatchVectorField
55::outletPhaseMeanVelocityFvPatchVectorField
65 alphaName_(ptf.alphaName_)
69Foam::outletPhaseMeanVelocityFvPatchVectorField
70::outletPhaseMeanVelocityFvPatchVectorField
78 Umean_(
dict.get<scalar>(
"Umean")),
87 if (!this->readValueEntry(
dict))
89 this->extrapolateInternal();
94Foam::outletPhaseMeanVelocityFvPatchVectorField
95::outletPhaseMeanVelocityFvPatchVectorField
97 const outletPhaseMeanVelocityFvPatchVectorField& ptf
102 alphaName_(ptf.alphaName_)
106Foam::outletPhaseMeanVelocityFvPatchVectorField
107::outletPhaseMeanVelocityFvPatchVectorField
115 alphaName_(ptf.alphaName_)
130 patch().lookupPatchField<volScalarField>(alphaName_)
146 if (Uzgmean >= Umean_)
149 valueFraction() = 1.0 - Umean_/Uzgmean;
153 refValue() = (Umean_ + Uzgmean)*
patch().nf();
154 valueFraction() = 1.0 - Uzgmean/Umean_;
168 os.writeEntry(
"Umean", Umean_);
169 os.writeEntry(
"alpha", alphaName_);
181 outletPhaseMeanVelocityFvPatchVectorField
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...
void clamp_range(const Type &lower, const Type &upper)
Clamp field values (in-place) to the specified range.
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 a number of values (eg,...
virtual void readDict(const dictionary &dict)
Read dictionary entries.
A FieldMapper for finite-volume patch fields.
virtual void write(Ostream &) const
Write.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
This boundary condition adjusts the velocity for the given phase to achieve the specified mean thus c...
virtual void write(Ostream &) const
Write.
outletPhaseMeanVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Lookup type of boundary radiation properties.
Represents 0/1 range or concept. Used for tagged dispatch or clamping.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
const std::string patch
OpenFOAM patch number as a std::string.
Type gSum(const FieldField< Field, Type > &f)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Field< vector > vectorField
Specialisation of Field<T> for vector.
static constexpr const zero Zero
Global zero (0).
fvPatchField< vector > fvPatchVectorField