Go to the documentation of this file.
57 alphaName_(
dict.lookup(
"alpha"))
71 flowRate_(ptf.flowRate_.clone()),
72 alphaName_(ptf.alphaName_)
83 flowRate_(ptf.flowRate_.clone()),
84 alphaName_(ptf.alphaName_)
96 flowRate_(ptf.flowRate_.clone()),
97 alphaName_(ptf.alphaName_)
114 alphap =
max(alphap, scalar(0));
115 alphap =
min(alphap, scalar(1));
117 const scalar t = db().time().timeOutputValue();
118 scalar flowRate = flowRate_->value(t);
121 scalar avgU = -flowRate/
gSum(
patch().magSf()*alphap);
137 flowRate_->writeData(os);
139 writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
This boundary condition provides a velocity boundary condition for multphase flow based on a user-spe...
Type gSum(const FieldField< Field, Type > &f)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
variableHeightFlowRateInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
const std::string patch
OpenFOAM patch number as a std::string.
virtual void write(Ostream &) const
Write.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...