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...
Private Attributes | |
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... | |
autoPtr< DataEntry< scalar > > | flowRate_ |
Inlet integral flow rate. More... | |
autoPtr< DataEntry< scalar > > | rpm_ |
Angular speed 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.
Patch usage
Property | Description | Required | Default value |
---|---|---|---|
phi | flux field name | no | phi |
rho | density field name | no | rho |
flowRate | flow rate profile | yes | |
rpm | rotational speed profile | yes |
Example of the boundary condition specification:
myPatch { type swirlFlowRateInletVelocity; flowRate constant 0.2; rpm constant 100; }
flowRate
and rpm
entries are DataEntry types, able to describe time varying functions. The example above gives the usage for supplying constant values.Definition at line 112 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().
swirlFlowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 69 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 52 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
swirlFlowRateInletVelocityFvPatchVectorField | ( | const swirlFlowRateInletVelocityFvPatchVectorField & | ptf | ) |
Construct as copy.
Definition at line 85 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
swirlFlowRateInletVelocityFvPatchVectorField | ( | const swirlFlowRateInletVelocityFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 99 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
TypeName | ( | "swirlFlowRateInletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 172 of file swirlFlowRateInletVelocityFvPatchVectorField.H.
References swirlFlowRateInletVelocityFvPatchVectorField::swirlFlowRateInletVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 189 of file swirlFlowRateInletVelocityFvPatchVectorField.H.
References swirlFlowRateInletVelocityFvPatchVectorField::swirlFlowRateInletVelocityFvPatchVectorField().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 114 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
References Foam::dimArea, Foam::dimDensity, dimensionedInternalField(), Foam::dimVelocity, Foam::exit(), Foam::FatalError, FatalErrorInFunction, swirlFlowRateInletVelocityFvPatchVectorField::flowRate_, Foam::gSum(), n, Foam::nl, Foam::operator==(), phi, swirlFlowRateInletVelocityFvPatchVectorField::phiName_, Foam::constant::mathematical::pi(), swirlFlowRateInletVelocityFvPatchVectorField::rhoName_, swirlFlowRateInletVelocityFvPatchVectorField::rpm_, and fvPatchField< Type >::updateCoeffs().
|
virtual |
Write.
Definition at line 171 of file swirlFlowRateInletVelocityFvPatchVectorField.C.
References fvPatchField::write().
|
private |
Name of the flux transporting the field.
Definition at line 119 of file swirlFlowRateInletVelocityFvPatchVectorField.H.
Referenced by swirlFlowRateInletVelocityFvPatchVectorField::updateCoeffs().
|
private |
Name of the density field used to normalize the mass flux.
Definition at line 122 of file swirlFlowRateInletVelocityFvPatchVectorField.H.
Referenced by swirlFlowRateInletVelocityFvPatchVectorField::updateCoeffs().
Inlet integral flow rate.
Definition at line 125 of file swirlFlowRateInletVelocityFvPatchVectorField.H.
Referenced by swirlFlowRateInletVelocityFvPatchVectorField::updateCoeffs().
Angular speed in revolutions per minute (RPM)
Definition at line 128 of file swirlFlowRateInletVelocityFvPatchVectorField.H.
Referenced by swirlFlowRateInletVelocityFvPatchVectorField::updateCoeffs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.