Describes a volumetric/mass flow normal vector boundary condition by its magnitude as an integral over its area with a swirl component determined by the RPM. More...
#include <finiteVolume/swirlFlowRateInletVelocityFvPatchVectorField.H>
Describes a volumetric/mass flow normal vector boundary condition by its magnitude as an integral over its area with a swirl component determined by the RPM.
The basis of the patch (volumetric or mass) is determined by the dimensions of the flux, phi. The current density is used to correct the velocity when applying the mass basis.
Example of the boundary condition specification:
inlet { typeswirlFlowRateInletVelocity; flowRate0.2;// Volumetric/mass flow rate [m3/s or kg/s] rpm 100; }
Definition at line 69 of file swirlFlowRateInletVelocityFvPatchVectorField.H.
Public Member Functions | |
TypeName ("swirlFlowRateInletVelocity") | |
Runtime type information.
| |
swirlFlowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field.
| |
swirlFlowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary.
| |
swirlFlowRateInletVelocityFvPatchVectorField (const swirlFlowRateInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given.
| |
swirlFlowRateInletVelocityFvPatchVectorField (const swirlFlowRateInletVelocityFvPatchVectorField &) | |
Construct as copy.
| |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone.
| |
swirlFlowRateInletVelocityFvPatchVectorField (const swirlFlowRateInletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy setting internal field reference.
| |
virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
Construct and return a clone setting internal field reference.
| |
scalar | flowRate () const |
Return the flux.
| |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field.
| |
virtual void | write (Ostream &) const |
Write.
|
swirlFlowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 38 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
Referenced by swirlFlowRateInletVelocityFvPatchVectorField::clone().
swirlFlowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 72 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
swirlFlowRateInletVelocityFvPatchVectorField | ( | const swirlFlowRateInletVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
flowRateInletVelocityFvPatchVectorField onto a new patch
Definition at line 54 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
swirlFlowRateInletVelocityFvPatchVectorField | ( | const swirlFlowRateInletVelocityFvPatchVectorField & | ptf ) |
Construct as copy.
Definition at line 89 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
swirlFlowRateInletVelocityFvPatchVectorField | ( | const swirlFlowRateInletVelocityFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 104 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
TypeName | ( | "swirlFlowRateInletVelocity" | ) |
Runtime type information.
virtual tmp<fvPatchVectorField> clone | ( | ) | const [inline, virtual]
|
Construct and return a clone.
Definition at line 129 of file swirlFlowRateInletVelocityFvPatchVectorField.H.
References swirlFlowRateInletVelocityFvPatchVectorField::swirlFlowRateInletVelocityFvPatchVectorField().
virtual tmp<fvPatchVectorField> clone | ( | const DimensionedField< vector, volMesh > & | iF ) | const [inline, virtual]
|
Construct and return a clone setting internal field reference.
Definition at line 146 of file swirlFlowRateInletVelocityFvPatchVectorField.H.
References swirlFlowRateInletVelocityFvPatchVectorField::swirlFlowRateInletVelocityFvPatchVectorField().
scalar flowRate | ( | ) | const [inline]
|
Return the flux.
Definition at line 162 of file swirlFlowRateInletVelocityFvPatchVectorField.H.
void updateCoeffs | ( | ) | [virtual]
|
Update the coefficients associated with the patch field.
Definition at line 119 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
References Foam::dimArea, Foam::dimDensity, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimVelocity, Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::gSum(), Foam::nl, Foam::operator==(), phi, and Foam::mathematicalConstant::pi().
void write | ( | Ostream & | os ) | const [virtual]
|
Write.
Definition at line 175 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
References token::END_STATEMENT, Foam::nl, fvPatchField< Type >::write(), and Ostream::writeKeyword().