This boundary condition provides a volumetric- OR mass-flow normal vector boundary condition by its magnitude as an integral over its area with a swirl component determined by the angular speed, given in revolutions per minute (RPM) More...
This boundary condition provides a volumetric- OR mass-flow normal vector boundary condition by its magnitude as an integral over its area with a swirl component determined by the angular speed, given in revolutions per minute (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.
Property | Description | Required | Default value |
---|---|---|---|
phi | flux field name | no | phi |
rho | density field name | no | rho |
origin | origin of rotation | no | patch centre |
axis | axis of rotation | no | -patch normal |
flowRate | flow rate profile | yes | |
rpm | rotational speed profile | yes |
Example of the boundary condition specification:
<patchName> { type swirlFlowRateInletVelocity; flowRate constant 0.2; rpm constant 100; }
flowRate
and rpm
entries are Function1 types, able to describe time varying functions. The example above gives the usage for supplying constant values.Definition at line 121 of file swirlFlowRateInletVelocityFvPatchVectorField.H.
swirlFlowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 37 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
Referenced by swirlFlowRateInletVelocityFvPatchVectorField::clone(), and swirlFlowRateInletVelocityFvPatchVectorField::swirlFlowRateInletVelocityFvPatchVectorField().
swirlFlowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 54 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
References swirlFlowRateInletVelocityFvPatchVectorField::swirlFlowRateInletVelocityFvPatchVectorField().
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 90 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
References swirlFlowRateInletVelocityFvPatchVectorField::swirlFlowRateInletVelocityFvPatchVectorField().
swirlFlowRateInletVelocityFvPatchVectorField | ( | const swirlFlowRateInletVelocityFvPatchVectorField & | ptf | ) |
Copy constructor.
Definition at line 109 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
References swirlFlowRateInletVelocityFvPatchVectorField::swirlFlowRateInletVelocityFvPatchVectorField().
swirlFlowRateInletVelocityFvPatchVectorField | ( | const swirlFlowRateInletVelocityFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 125 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
TypeName | ( | "swirlFlowRateInletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 187 of file swirlFlowRateInletVelocityFvPatchVectorField.H.
References swirlFlowRateInletVelocityFvPatchVectorField::swirlFlowRateInletVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 204 of file swirlFlowRateInletVelocityFvPatchVectorField.H.
References swirlFlowRateInletVelocityFvPatchVectorField::swirlFlowRateInletVelocityFvPatchVectorField(), swirlFlowRateInletVelocityFvPatchVectorField::updateCoeffs(), and swirlFlowRateInletVelocityFvPatchVectorField::write().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 142 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
References Foam::dimArea, Foam::dimDensity, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimVelocity, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::gSum(), Foam::mag(), n, Foam::nl, Foam::operator==(), phi, Foam::constant::mathematical::pi(), fvPatchField< Type >::updateCoeffs(), Function1< Type >::value(), and swirlFlowRateInletVelocityFvPatchVectorField::write().
Referenced by swirlFlowRateInletVelocityFvPatchVectorField::clone().
|
virtual |
Write.
Definition at line 197 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
References Foam::makePatchTypeField(), fvPatchField< Type >::write(), and Foam::writeEntry().
Referenced by swirlFlowRateInletVelocityFvPatchVectorField::clone(), and swirlFlowRateInletVelocityFvPatchVectorField::updateCoeffs().