Freestream velocity condition to be used in conjunction with the single rotating frame (SRF) model (see: SRFModel class) More...
Public Member Functions | |
TypeName ("SRFFreestreamVelocity") | |
SRFFreestreamVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
SRFFreestreamVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
SRFFreestreamVelocityFvPatchVectorField (const SRFFreestreamVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
SRFFreestreamVelocityFvPatchVectorField (const SRFFreestreamVelocityFvPatchVectorField &) | |
virtual tmp< fvPatchVectorField > | clone () const |
SRFFreestreamVelocityFvPatchVectorField (const SRFFreestreamVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
const vector & | UInf () const |
vector & | UInf () |
virtual void | updateCoeffs () |
virtual void | write (Ostream &) const |
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] |
Property | Description | Required | Default value |
---|---|---|---|
UInf | freestream velocity | yes | |
relative | UInf relative to the SRF? | no |
Example of the boundary condition specification:
<patchName> { type SRFFreestreamVelocity; UInf uniform (0 0 0); relative no; value uniform (0 0 0); // initial value }
Definition at line 124 of file SRFFreestreamVelocityFvPatchVectorField.H.
SRFFreestreamVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Definition at line 34 of file SRFFreestreamVelocityFvPatchVectorField.C.
Referenced by SRFFreestreamVelocityFvPatchVectorField::clone().
SRFFreestreamVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 62 of file SRFFreestreamVelocityFvPatchVectorField.C.
SRFFreestreamVelocityFvPatchVectorField | ( | const SRFFreestreamVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 47 of file SRFFreestreamVelocityFvPatchVectorField.C.
SRFFreestreamVelocityFvPatchVectorField | ( | const SRFFreestreamVelocityFvPatchVectorField & | srfvpvf | ) |
Definition at line 80 of file SRFFreestreamVelocityFvPatchVectorField.C.
SRFFreestreamVelocityFvPatchVectorField | ( | const SRFFreestreamVelocityFvPatchVectorField & | srfvpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Definition at line 92 of file SRFFreestreamVelocityFvPatchVectorField.C.
TypeName | ( | "SRFFreestreamVelocity" | ) |
|
inlinevirtual |
Definition at line 177 of file SRFFreestreamVelocityFvPatchVectorField.H.
References SRFFreestreamVelocityFvPatchVectorField::SRFFreestreamVelocityFvPatchVectorField().
|
inlinevirtual |
Definition at line 194 of file SRFFreestreamVelocityFvPatchVectorField.H.
References SRFFreestreamVelocityFvPatchVectorField::SRFFreestreamVelocityFvPatchVectorField().
|
inline |
Definition at line 210 of file SRFFreestreamVelocityFvPatchVectorField.H.
|
inline |
Definition at line 216 of file SRFFreestreamVelocityFvPatchVectorField.H.
|
virtual |
Definition at line 105 of file SRFFreestreamVelocityFvPatchVectorField.C.
References SRFModel::axis(), Foam::cos(), Foam::mag(), mesh, Foam::name(), SRFModel::omega(), Foam::foamVersion::patch, Foam::pos0(), Foam::sin(), fvPatchField< Type >::updateCoeffs(), dimensioned::value(), and SRFModel::velocity().
|
virtual |
Definition at line 154 of file SRFFreestreamVelocityFvPatchVectorField.C.
References os(), fvPatchField::write(), and Ostream::writeEntry().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.