69 ?
gSum(patch().Cf()*patch().magSf())/
gSum(patch().magSf())
79 ? -
gSum(patch().Sf())/
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)
115 phiName_(ptf.phiName_),
116 rhoName_(ptf.rhoName_),
117 origin_(ptf.origin_),
119 flowRate_(ptf.flowRate_,
false),
120 rpm_(ptf.rpm_,
false)
133 const scalar t = this->db().time().timeOutputValue();
134 const scalar flowRate = flowRate_->
value(t);
135 const scalar rpm = rpm_->
value(t);
137 const scalar totArea =
gSum(patch().magSf());
138 const scalar avgU = -flowRate/totArea;
169 <<
"dimensions of " << phiName_ <<
" are incorrect" <<
nl 170 <<
" on patch " << this->patch().name()
171 <<
" of field " << this->internalField().name()
172 <<
" in file " << this->internalField().objectPath()
186 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
187 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
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...
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)
virtual Type value(const scalar x) const =0
Return value as a function of scalar x.
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.
const dimensionSet dimFlux
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 dimMassFlux
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...