55 alphaName_(dict.
lookup(
"alpha"))
69 flowRate_(ptf.flowRate_,
false),
70 alphaName_(ptf.alphaName_)
82 flowRate_(ptf.flowRate_,
false),
83 alphaName_(ptf.alphaName_)
100 alphap =
max(alphap, scalar(0));
101 alphap =
min(alphap, scalar(1));
103 const scalar t = db().time().userTimeValue();
104 scalar flowRate = flowRate_->value(t);
107 scalar avgU = -flowRate/
gSum(patch().magSf()*alphap);
Run-time selectable general function of one variable.
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
This boundary condition provides a velocity boundary condition for multiphase flow based on a user-sp...
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Type gSum(const FieldField< Field, Type > &f)
virtual void write(Ostream &) const
Write.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Foam::fvPatchFieldMapper.
variableHeightFlowRateInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
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...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.