This boundary condition provides a rotational velocity condition. More...
Public Member Functions | |
TypeName ("rotatingWallVelocity") | |
Runtime type information. More... | |
rotatingWallVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
rotatingWallVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
rotatingWallVelocityFvPatchVectorField (const rotatingWallVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given rotatingWallVelocityFvPatchVectorField. More... | |
rotatingWallVelocityFvPatchVectorField (const rotatingWallVelocityFvPatchVectorField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
rotatingWallVelocityFvPatchVectorField (const rotatingWallVelocityFvPatchVectorField &, 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... | |
const vector & | origin () const |
Return the origin of the rotation. More... | |
const vector & | axis () const |
Return the axis of the rotation. More... | |
vector & | origin () |
Return non-const access to the origin of the rotation. More... | |
vector & | axis () |
Return non-const access to the axis of the rotation. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
This boundary condition provides a rotational velocity condition.
Property | Description | Required | Default value |
---|---|---|---|
origin | origin of rotation in Cartesian coordinates | yes | |
axis | axis of rotation | yes | |
omega | angular velocty of the frame [rad/s] | yes |
Example of the boundary condition specification:
<patchName> { type rotatingWallVelocity; origin (0 0 0); axis (0 0 1); omega 100; }
The omega
entry is a Function1 of time, see Foam::Function1Types.
Definition at line 99 of file rotatingWallVelocityFvPatchVectorField.H.
rotatingWallVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 36 of file rotatingWallVelocityFvPatchVectorField.C.
rotatingWallVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 50 of file rotatingWallVelocityFvPatchVectorField.C.
References dict, dictionary::found(), p, UList< T >::size(), and rotatingWallVelocityFvPatchVectorField::updateCoeffs().
rotatingWallVelocityFvPatchVectorField | ( | const rotatingWallVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given rotatingWallVelocityFvPatchVectorField.
onto a new patch
Definition at line 78 of file rotatingWallVelocityFvPatchVectorField.C.
rotatingWallVelocityFvPatchVectorField | ( | const rotatingWallVelocityFvPatchVectorField & | rwvpvf | ) |
Construct as copy.
Definition at line 94 of file rotatingWallVelocityFvPatchVectorField.C.
rotatingWallVelocityFvPatchVectorField | ( | const rotatingWallVelocityFvPatchVectorField & | rwvpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 107 of file rotatingWallVelocityFvPatchVectorField.C.
TypeName | ( | "rotatingWallVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 155 of file rotatingWallVelocityFvPatchVectorField.H.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 171 of file rotatingWallVelocityFvPatchVectorField.H.
|
inline |
Return the origin of the rotation.
Definition at line 189 of file rotatingWallVelocityFvPatchVectorField.H.
|
inline |
Return the axis of the rotation.
Definition at line 195 of file rotatingWallVelocityFvPatchVectorField.H.
|
inline |
Return non-const access to the origin of the rotation.
Definition at line 201 of file rotatingWallVelocityFvPatchVectorField.H.
|
inline |
Return non-const access to the axis of the rotation.
Definition at line 207 of file rotatingWallVelocityFvPatchVectorField.H.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 123 of file rotatingWallVelocityFvPatchVectorField.C.
References Foam::mag(), n, om, and Field< vector >::operator=().
Referenced by rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField().
|
virtual |
Write.
Definition at line 148 of file rotatingWallVelocityFvPatchVectorField.C.
References os(), ObukhovLength::write(), and Ostream::writeEntry().