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...
Public Member Functions | |
TypeName ("rotatingPressureInletOutletVelocity") | |
Runtime type information. More... | |
rotatingPressureInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
rotatingPressureInletOutletVelocityFvPatchVectorField (const rotatingPressureInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
rotatingPressureInletOutletVelocityFvPatchVectorField (const rotatingPressureInletOutletVelocityFvPatchVectorField &)=delete | |
Disallow copy without setting internal field reference. More... | |
rotatingPressureInletOutletVelocityFvPatchVectorField (const rotatingPressureInletOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Copy constructor 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... | |
virtual void | write (Ostream &) const |
Write. More... | |
Public Member Functions inherited from pressureInletOutletVelocityFvPatchVectorField | |
TypeName ("pressureInletOutletVelocity") | |
Runtime type information. More... | |
pressureInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &)=delete | |
Disallow copy without setting internal field reference. More... | |
pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Copy constructor setting internal field reference. More... | |
virtual bool | assignable () const |
Return true: this patch field is altered by assignment. More... | |
const word & | phiName () const |
Return the name of phi. More... | |
word & | phiName () |
Return reference to the name of phi to allow adjustment. More... | |
const autoPtr< Function1< vector > > & | tangentialVelocity () const |
Return the tangential velocity Function1. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | operator= (const fvPatchField< vector > &pvf) |
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 | |
origin | origin of rotation in Cartesian co-ordinates | yes | |
axis | axis of rotation | yes | |
omega | angular velocity of the frame [rad/s] | no | |
rpm | angular velocity of the frame [rpm] | no |
Example of the boundary condition specification:
<patchName> { type rotatingPressureInletOutletVelocity; phi phi; tangentialVelocity uniform (0 0 0); origin (0 0 0); axis (0 0 1); rpm 100; }
The omega
or rpm
entries are Function1 of time, see Foam::Function1s.
Note: Sign conventions:
Definition at line 124 of file rotatingPressureInletOutletVelocityFvPatchVectorField.H.
rotatingPressureInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 52 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.
rotatingPressureInletOutletVelocityFvPatchVectorField | ( | const rotatingPressureInletOutletVelocityFvPatchVectorField & | pvf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
rotatingPressureInletOutletVelocityFvPatchVectorField onto a new patch
Definition at line 69 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.
|
delete |
Disallow copy without setting internal field reference.
rotatingPressureInletOutletVelocityFvPatchVectorField | ( | const rotatingPressureInletOutletVelocityFvPatchVectorField & | pvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 87 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.
TypeName | ( | "rotatingPressureInletOutletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented from pressureInletOutletVelocityFvPatchVectorField.
Definition at line 187 of file rotatingPressureInletOutletVelocityFvPatchVectorField.H.
|
virtual |
Write.
Reimplemented from pressureInletOutletVelocityFvPatchVectorField.
Definition at line 105 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.
References fvPatchField< Type >::write(), and Foam::writeEntry().