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...
Public Member Functions | |
TypeName ("ibSwirlFlowRateInletVelocity") | |
Runtime type information. More... | |
ibSwirlFlowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
ibSwirlFlowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
ibSwirlFlowRateInletVelocityFvPatchVectorField (const ibSwirlFlowRateInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
ibSwirlFlowRateInletVelocityFvPatchVectorField (const ibSwirlFlowRateInletVelocityFvPatchVectorField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
ibSwirlFlowRateInletVelocityFvPatchVectorField (const ibSwirlFlowRateInletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
scalar | flowRate () const |
Return the flux. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Private Member Functions | |
void | calcGeom () |
Calculate geometrical characteristics of the patch. More... | |
Private Attributes | |
const scalar | flowRate_ |
Inlet integral flow rate. More... | |
const word | phiName_ |
Name of the flux transporting the field. More... | |
const word | rhoName_ |
Name of the density field used to normalize the mass flux. More... | |
const scalar | rpm_ |
RPM. More... | |
scalar | totArea_ |
Total area of inlet patch. More... | |
vector | avgCenter_ |
Average centre. More... | |
vector | avgNormal_ |
Average normal. More... | |
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.
The boundary condition is sensitised to work only on live IB cells
Example of the boundary condition specification:
inlet { type ibSwirlFlowRateInletVelocity; flowRate 0.2; // Volumetric/mass flow rate [m3/s or kg/s] rpm 100; }
Definition at line 69 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.H.
ibSwirlFlowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 38 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.C.
Referenced by ibSwirlFlowRateInletVelocityFvPatchVectorField::clone().
ibSwirlFlowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 76 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.C.
ibSwirlFlowRateInletVelocityFvPatchVectorField | ( | const ibSwirlFlowRateInletVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
flowRateInletVelocityFvPatchVectorField onto a new patch
Definition at line 56 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.C.
ibSwirlFlowRateInletVelocityFvPatchVectorField | ( | const ibSwirlFlowRateInletVelocityFvPatchVectorField & | ptf | ) |
Construct as copy.
Definition at line 95 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.C.
ibSwirlFlowRateInletVelocityFvPatchVectorField | ( | const ibSwirlFlowRateInletVelocityFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 112 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.C.
|
private |
Calculate geometrical characteristics of the patch.
Definition at line 129 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.C.
References ibSwirlFlowRateInletVelocityFvPatchVectorField::avgCenter_, ibSwirlFlowRateInletVelocityFvPatchVectorField::avgNormal_, Foam::gSum(), fvPatchField::patchInternalField(), and ibSwirlFlowRateInletVelocityFvPatchVectorField::totArea_.
TypeName | ( | "ibSwirlFlowRateInletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 146 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.H.
References ibSwirlFlowRateInletVelocityFvPatchVectorField::ibSwirlFlowRateInletVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 163 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.H.
References ibSwirlFlowRateInletVelocityFvPatchVectorField::ibSwirlFlowRateInletVelocityFvPatchVectorField().
|
inline |
Return the flux.
Definition at line 179 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.H.
References ibSwirlFlowRateInletVelocityFvPatchVectorField::flowRate_.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 143 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.C.
References Foam::dimArea, Foam::dimDensity, dimensionedInternalField(), Foam::dimVelocity, Foam::exit(), Foam::FatalError, FatalErrorIn, n, Foam::nl, phi, Foam::constant::mathematical::pi(), U, and fvPatchField< Type >::updateCoeffs().
|
virtual |
Write.
Definition at line 200 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.C.
References token::END_STATEMENT, Foam::nl, fvPatchField::write(), and Ostream::writeKeyword().
|
private |
Inlet integral flow rate.
Definition at line 76 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.H.
Referenced by ibSwirlFlowRateInletVelocityFvPatchVectorField::flowRate().
|
private |
Name of the flux transporting the field.
Definition at line 79 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.H.
|
private |
Name of the density field used to normalize the mass flux.
Definition at line 82 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.H.
|
private |
RPM.
Definition at line 85 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.H.
|
private |
Total area of inlet patch.
Definition at line 90 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.H.
Referenced by ibSwirlFlowRateInletVelocityFvPatchVectorField::calcGeom().
|
private |
Average centre.
Definition at line 93 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.H.
Referenced by ibSwirlFlowRateInletVelocityFvPatchVectorField::calcGeom().
|
private |
Average normal.
Definition at line 96 of file ibSwirlFlowRateInletVelocityFvPatchVectorField.H.
Referenced by ibSwirlFlowRateInletVelocityFvPatchVectorField::calcGeom().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.