35Foam::variableHeightFlowRateInletVelocityFvPatchVectorField
36::variableHeightFlowRateInletVelocityFvPatchVectorField
48Foam::variableHeightFlowRateInletVelocityFvPatchVectorField
49::variableHeightFlowRateInletVelocityFvPatchVectorField
62Foam::variableHeightFlowRateInletVelocityFvPatchVectorField
63::variableHeightFlowRateInletVelocityFvPatchVectorField
72 flowRate_(ptf.flowRate_.
clone()),
73 alphaName_(ptf.alphaName_)
77Foam::variableHeightFlowRateInletVelocityFvPatchVectorField
78::variableHeightFlowRateInletVelocityFvPatchVectorField
84 flowRate_(ptf.flowRate_.
clone()),
85 alphaName_(ptf.alphaName_)
89Foam::variableHeightFlowRateInletVelocityFvPatchVectorField
90::variableHeightFlowRateInletVelocityFvPatchVectorField
97 flowRate_(ptf.flowRate_.
clone()),
98 alphaName_(ptf.alphaName_)
111 const auto&
mesh = patch().boundaryMesh().mesh();
117 auto& alphabf =
alpha.boundaryFieldRef();
119 if (!alphabf[patch().index()].updated())
122 alphabf.evaluateSelected(
labelList({ patch().index() }));
129 alphap.clamp_range(Foam::zero_one{});
131 const scalar t = db().time().timeOutputValue();
132 scalar flowRate = flowRate_->value(t);
151 flowRate_->writeData(
os);
152 os.writeEntry(
"alpha", alphaName_);
164 variableHeightFlowRateInletVelocityFvPatchVectorField
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.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
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,...
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
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.
Lookup type of boundary radiation properties.
This boundary condition provides a velocity boundary condition for multphase flow based on a user-spe...
virtual void write(Ostream &) const
Write.
virtual tmp< fvPatchField< vector > > clone() const
Return a clone.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
variableHeightFlowRateInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
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,...
#define DebugInfo
Report an information message using Foam::Info.
const std::string patch
OpenFOAM patch number as a std::string.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
List< label > labelList
A List of labels.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Type gWeightedSum(const UList< scalar > &weights, const UList< Type > &fld, const label comm)
The global weighted sum (integral) of a field, using the mag() of the weights.
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
Field< vector > vectorField
Specialisation of Field<T> for vector.
fvPatchField< vector > fvPatchVectorField