Go to the documentation of this file.
84 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
85 rhoName_(
dict.lookupOrDefault<
word>(
"rho",
"rho")),
133 lookupPatchField<volScalarField, scalar>(
"cellIbMask");
150 const scalar avgU = -flowRate_/totArea_;
155 * ((patch().Cf() - avgCenter_) ^ avgNormal_);
166 lookupPatchField<volScalarField, scalar>(
"cellIbMask");
168 scalarField faceMask = patchCellIbMask.patchInternalField();
173 U = faceMask*(tangentialVelocity +
n*avgU);
181 U = faceMask*(tangentialVelocity +
n*avgU/rhop);
187 "ibSwirlFlowRateInletVelocityFvPatchVectorField::updateCoeffs()"
188 ) <<
"dimensions of " << phiName_ <<
" are incorrect" <<
nl
189 <<
" on patch " << this->patch().name()
206 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
207 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
209 writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
A class for handling words, derived from string.
const dimensionSet dimVelocity
const dimensionSet dimDensity
ibSwirlFlowRateInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
scalar totArea_
Total area of inlet patch.
virtual void write(Ostream &) const
Write.
rDeltaT dimensionedInternalField()
Type gSum(const FieldField< Field, Type > &f)
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.
const dimensionSet dimArea(sqr(dimLength))
vector avgCenter_
Average centre.
Pre-declare SubField and related Field type.
const word phiName_
Name of the flux transporting the field.
void calcGeom()
Calculate geometrical characteristics of the patch.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
vector avgNormal_
Average normal.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
Describes a volumetric/mass flow normal vector boundary condition by its magnitude as an integral ove...
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const scalar flowRate_
Inlet integral flow rate.
Generic GeometricField class.
const word rhoName_
Name of the density field used to normalize the mass flux.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...