Go to the documentation of this file.
58 alphaName_(
dict.lookup(
"alpha"))
72 flowRate_(ptf.flowRate_.clone()),
73 alphaName_(ptf.alphaName_)
84 flowRate_(ptf.flowRate_.clone()),
85 alphaName_(ptf.alphaName_)
97 flowRate_(ptf.flowRate_.clone()),
98 alphaName_(ptf.alphaName_)
115 alphap =
max(alphap, scalar(0));
116 alphap =
min(alphap, scalar(1));
118 const scalar t = db().time().timeOutputValue();
119 scalar flowRate = flowRate_->value(t);
122 scalar avgU = -flowRate/
gSum(
patch().magSf()*alphap);
138 flowRate_->writeData(
os);
139 os.writeEntry(
"alpha", alphaName_);
140 writeEntry(
"value",
os);
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,...
OBJstream os(runTime.globalPath()/outputName)
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.
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...