69 ?
gSum(patch().Cf()*patch().magSf())/
gSum(patch().magSf())
98 phiName_(ptf.phiName_),
99 rhoName_(ptf.rhoName_),
100 origin_(ptf.origin_),
102 flowRate_(ptf.flowRate_,
false),
103 rpm_(ptf.rpm_,
false)
114 phiName_(ptf.phiName_),
115 rhoName_(ptf.rhoName_),
116 origin_(ptf.origin_),
118 flowRate_(ptf.flowRate_,
false),
119 rpm_(ptf.rpm_,
false)
131 phiName_(ptf.phiName_),
132 rhoName_(ptf.rhoName_),
133 origin_(ptf.origin_),
135 flowRate_(ptf.flowRate_,
false),
136 rpm_(ptf.rpm_,
false)
149 const scalar t = this->db().time().timeOutputValue();
150 const scalar flowRate = flowRate_->value(t);
151 const scalar rpm = rpm_->value(t);
153 const scalar totArea =
gSum(patch().magSf());
154 const scalar avgU = -flowRate/totArea;
185 <<
"dimensions of " << phiName_ <<
" are incorrect" <<
nl 186 <<
" on patch " << this->patch().name()
187 <<
" of field " << this->internalField().name()
188 <<
" in file " << this->internalField().objectPath()
202 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
203 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
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...
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet & dimensions() const
Return dimensions.
Type gSum(const FieldField< Field, Type > &f)
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
A class for handling words, derived from string.
swirlFlowRateInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
Foam::fvPatchFieldMapper.
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)
const dimensionSet dimDensity
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
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...
virtual void write(Ostream &) const
Write.
dimensioned< scalar > mag(const dimensioned< Type > &)
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
A class for managing temporary objects.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
This boundary condition provides a volumetric- OR mass-flow normal vector boundary condition by its m...
const dimensionSet dimArea(sqr(dimLength))
const dimensionSet dimVelocity