Freestream velocity condition to be used in conjunction with the single rotating frame (SRF) model (see: SRFModel class) More...
Public Member Functions | |
TypeName ("SRFFreestreamVelocity") | |
Runtime type information. More... | |
SRFFreestreamVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
SRFFreestreamVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
SRFFreestreamVelocityFvPatchVectorField (const SRFFreestreamVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given SRFFreestreamVelocityFvPatchVectorField. More... | |
SRFFreestreamVelocityFvPatchVectorField (const SRFFreestreamVelocityFvPatchVectorField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
SRFFreestreamVelocityFvPatchVectorField (const SRFFreestreamVelocityFvPatchVectorField &, 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 & | UInf () const |
Return the velocity at infinity. More... | |
vector & | UInf () |
Return reference to the velocity at infinity to allow adjustment. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Private Attributes | |
Switch | relative_ |
Is the supplied inlet value relative to the SRF. More... | |
vector | UInf_ |
Velocity of the free stream in the absolute frame [m/s]. More... | |
Freestream velocity condition to be used in conjunction with the single rotating frame (SRF) model (see: SRFModel class)
Given the free stream velocity in the absolute frame, the condition applies the appropriate rotation transformation in time and space to determine the local velocity using:
where
![]() | = | patch velocity [m/s] |
![]() | = | free stream velocity in the absolute frame [m/s] |
![]() | = | swept angle [rad] |
![]() | = | axis direction of the SRF |
![]() | = | SRF velocity of the patch [m/s] |
Patch usage
Property | Description | Required | Default value |
---|---|---|---|
UInf | freestream velocity | yes | |
relative | UInf relative to the SRF? | no |
Example of the boundary condition specification:
myPatch { type SRFFreestreamVelocity; UInf uniform (0 0 0); relative no; value uniform (0 0 0); // initial value }
Definition at line 126 of file SRFFreestreamVelocityFvPatchVectorField.H.
SRFFreestreamVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 38 of file SRFFreestreamVelocityFvPatchVectorField.C.
Referenced by SRFFreestreamVelocityFvPatchVectorField::clone().
SRFFreestreamVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 66 of file SRFFreestreamVelocityFvPatchVectorField.C.
References dict, p, and vectorField().
SRFFreestreamVelocityFvPatchVectorField | ( | const SRFFreestreamVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given SRFFreestreamVelocityFvPatchVectorField.
onto a new patch
Definition at line 51 of file SRFFreestreamVelocityFvPatchVectorField.C.
SRFFreestreamVelocityFvPatchVectorField | ( | const SRFFreestreamVelocityFvPatchVectorField & | srfvpvf | ) |
Construct as copy.
Definition at line 84 of file SRFFreestreamVelocityFvPatchVectorField.C.
SRFFreestreamVelocityFvPatchVectorField | ( | const SRFFreestreamVelocityFvPatchVectorField & | srfvpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 96 of file SRFFreestreamVelocityFvPatchVectorField.C.
TypeName | ( | "SRFFreestreamVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 179 of file SRFFreestreamVelocityFvPatchVectorField.H.
References SRFFreestreamVelocityFvPatchVectorField::SRFFreestreamVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 196 of file SRFFreestreamVelocityFvPatchVectorField.H.
References SRFFreestreamVelocityFvPatchVectorField::SRFFreestreamVelocityFvPatchVectorField().
|
inline |
Return the velocity at infinity.
Definition at line 212 of file SRFFreestreamVelocityFvPatchVectorField.H.
References SRFFreestreamVelocityFvPatchVectorField::UInf_.
|
inline |
Return reference to the velocity at infinity to allow adjustment.
Definition at line 218 of file SRFFreestreamVelocityFvPatchVectorField.H.
References SRFFreestreamVelocityFvPatchVectorField::UInf_.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 109 of file SRFFreestreamVelocityFvPatchVectorField.C.
References SRFModel::axis(), Foam::cos(), dimensionedInternalField(), Foam::mag(), mesh, Foam::name(), SRFModel::omega(), Foam::pos(), SRFFreestreamVelocityFvPatchVectorField::relative_, Foam::sin(), SRFFreestreamVelocityFvPatchVectorField::UInf_, fvPatchField< Type >::updateCoeffs(), dimensioned::value(), and SRFModel::velocity().
|
virtual |
Write.
Definition at line 158 of file SRFFreestreamVelocityFvPatchVectorField.C.
References token::END_STATEMENT, Foam::nl, fvPatchField::write(), and Ostream::writeKeyword().
|
private |
Is the supplied inlet value relative to the SRF.
Definition at line 133 of file SRFFreestreamVelocityFvPatchVectorField.H.
Referenced by SRFFreestreamVelocityFvPatchVectorField::updateCoeffs().
|
private |
Velocity of the free stream in the absolute frame [m/s].
Definition at line 136 of file SRFFreestreamVelocityFvPatchVectorField.H.
Referenced by SRFFreestreamVelocityFvPatchVectorField::UInf(), and SRFFreestreamVelocityFvPatchVectorField::updateCoeffs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.