44 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
45 rhoName_(
dict.lookupOrDefault<
word>(
"rho",
"rho")),
52 ?
gSum(patch().Cf()*patch().magSf())/
gSum(patch().magSf())
62 ? -
gSum(patch().Sf())/
gSum(patch().magSf())
81 phiName_(ptf.phiName_),
82 rhoName_(ptf.rhoName_),
85 flowRate_(ptf.flowRate_, false),
98 phiName_(ptf.phiName_),
99 rhoName_(ptf.rhoName_),
100 origin_(ptf.origin_),
102 flowRate_(ptf.flowRate_, false),
103 rpm_(ptf.rpm_, false)
116 const scalar t = this->db().time().userTimeValue();
117 const scalar flowRate = flowRate_->value(t);
118 const scalar rpm = rpm_->value(t);
120 const scalar totArea =
gSum(patch().magSf());
121 const scalar avgU = -flowRate/totArea;
152 <<
"dimensions of " << phiName_ <<
" are incorrect" <<
nl
153 <<
" on patch " << this->patch().name()
154 <<
" of field " << this->internalField().name()
155 <<
" in file " << this->internalField().objectPath()
169 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
170 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
Run-time selectable general function of one variable.
Generic GeometricField class.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
Foam::fvPatchFieldMapper.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a volumetric- OR mass-flow normal vector boundary condition by its m...
swirlFlowRateInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for managing temporary objects.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Type gSum(const FieldField< Field, Type > &f)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
const dimensionSet dimMassFlux
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
VolField< scalar > volScalarField
dimensioned< scalar > mag(const dimensioned< Type > &)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
const dimensionSet dimFlux