55 alphaName_(dict.
lookup(
"alpha"))
69 flowRate_(ptf.flowRate_,
false),
70 alphaName_(ptf.alphaName_)
81 flowRate_(ptf.flowRate_,
false),
82 alphaName_(ptf.alphaName_)
94 flowRate_(ptf.flowRate_,
false),
95 alphaName_(ptf.alphaName_)
112 alphap =
max(alphap, scalar(0));
113 alphap =
min(alphap, scalar(1));
115 const scalar t = db().time().timeOutputValue();
116 scalar flowRate = flowRate_->value(t);
119 scalar avgU = -flowRate/
gSum(patch().magSf()*alphap);
135 flowRate_->writeData(os);
136 os.
writeKeyword(
"alpha") << alphaName_ << token::END_STATEMENT <<
nl;
137 writeEntry(
"value", os);
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...
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...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
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...
Macros for easy insertion into run-time selection tables.
This boundary condition provides a velocity boundary condition for multphase flow based on a user-spe...
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
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.