This velocity inlet/outlet boundary condition is applied to patches in a rotating frame where the pressure is specified. A zero-gradient is applied for outflow (as defined by the flux); for inflow, the velocity is obtained from the flux with a direction normal to the patch faces. More...
Private Member Functions | |
void | calcTangentialVelocity () |
Calculate the tangentialVelocity from omega. More... | |
Private Attributes | |
autoPtr< DataEntry< vector > > | omega_ |
Angular velocity of the frame. More... | |
This velocity inlet/outlet boundary condition is applied to patches in a rotating frame where the pressure is specified. A zero-gradient is applied for outflow (as defined by the flux); for inflow, the velocity is obtained from the flux with a direction normal to the patch faces.
Property | Description | Required | Default value |
---|---|---|---|
phi | flux field name | no | phi |
tangentialVelocity | tangential velocity field | no | |
omega | angular velocty of the frame [rad/s] | yes |
Example of the boundary condition specification:
myPatch { type rotatingPressureInletOutletVelocity; phi phi; tangentialVelocity uniform (0 0 0); omega 100; }
The omega
entry is a DataEntry type, able to describe time varying functions.
Definition at line 108 of file rotatingPressureInletOutletVelocityFvPatchVectorField.H.
rotatingPressureInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 54 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.
Referenced by rotatingPressureInletOutletVelocityFvPatchVectorField::clone().
rotatingPressureInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 82 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.
rotatingPressureInletOutletVelocityFvPatchVectorField | ( | const rotatingPressureInletOutletVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
rotatingPressureInletOutletVelocityFvPatchVectorField onto a new patch
Definition at line 66 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.
rotatingPressureInletOutletVelocityFvPatchVectorField | ( | const rotatingPressureInletOutletVelocityFvPatchVectorField & | rppvf | ) |
Construct as copy.
Definition at line 97 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.
rotatingPressureInletOutletVelocityFvPatchVectorField | ( | const rotatingPressureInletOutletVelocityFvPatchVectorField & | rppvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 110 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.
|
private |
Calculate the tangentialVelocity from omega.
Definition at line 34 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.
References Foam::mag(), n, rotatingPressureInletOutletVelocityFvPatchVectorField::omega_, and pressureInletOutletVelocityFvPatchVectorField::tangentialVelocity().
TypeName | ( | "rotatingPressureInletOutletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Reimplemented from pressureInletOutletVelocityFvPatchVectorField.
Definition at line 165 of file rotatingPressureInletOutletVelocityFvPatchVectorField.H.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented from pressureInletOutletVelocityFvPatchVectorField.
Definition at line 182 of file rotatingPressureInletOutletVelocityFvPatchVectorField.H.
|
virtual |
Write.
Reimplemented from pressureInletOutletVelocityFvPatchVectorField.
Definition at line 125 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.
References token::END_STATEMENT, Foam::nl, fvPatchField::write(), and Ostream::writeKeyword().
Angular velocity of the frame.
Definition at line 115 of file rotatingPressureInletOutletVelocityFvPatchVectorField.H.
Referenced by rotatingPressureInletOutletVelocityFvPatchVectorField::calcTangentialVelocity().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.