Freestream velocity condition to be used in conjunction with the single rotating frame (SRF) model (see: SRFModel class). More...
#include <SRFFreestreamVelocityFvPatchVectorField.H>


Public Member Functions | |
| TypeName ("SRFFreestreamVelocity") | |
| Runtime type information. | |
| SRFFreestreamVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
| Construct from patch and internal field. | |
| SRFFreestreamVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| SRFFreestreamVelocityFvPatchVectorField (const SRFFreestreamVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given SRFFreestreamVelocityFvPatchVectorField. | |
| SRFFreestreamVelocityFvPatchVectorField (const SRFFreestreamVelocityFvPatchVectorField &) | |
| Construct as copy. | |
| SRFFreestreamVelocityFvPatchVectorField (const SRFFreestreamVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
| Construct as copy setting internal field reference. | |
| virtual tmp< fvPatchField< vector > > | clone () const |
| Return a clone. | |
| virtual tmp< fvPatchField< vector > > | clone (const DimensionedField< vector, volMesh > &iF) const |
| Clone with an internal field reference. | |
| const vector & | UInf () const |
| Return the velocity at infinity. | |
| vector & | UInf () |
| Return reference to the velocity at infinity to allow adjustment. | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. | |
| virtual void | write (Ostream &) const |
| Write. | |
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:
![\[ U_p = cos(\theta) U_{Inf} + sin(\theta) (n \times U_{Inf}) - U_{p,srf}
\]](form_95.png)
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 ) |
Construct from patch and internal field.
Definition at line 32 of file SRFFreestreamVelocityFvPatchVectorField.C.
References p, and Foam::Zero.
Referenced by SRFFreestreamVelocityFvPatchVectorField(), SRFFreestreamVelocityFvPatchVectorField(), SRFFreestreamVelocityFvPatchVectorField(), and TypeName().

| SRFFreestreamVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 60 of file SRFFreestreamVelocityFvPatchVectorField.C.
References dict, IOobjectOption::MUST_READ, and p.
| 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 45 of file SRFFreestreamVelocityFvPatchVectorField.C.
References p, and SRFFreestreamVelocityFvPatchVectorField().

| SRFFreestreamVelocityFvPatchVectorField | ( | const SRFFreestreamVelocityFvPatchVectorField & | srfvpvf | ) |
Construct as copy.
Definition at line 77 of file SRFFreestreamVelocityFvPatchVectorField.C.
References SRFFreestreamVelocityFvPatchVectorField().

| SRFFreestreamVelocityFvPatchVectorField | ( | const SRFFreestreamVelocityFvPatchVectorField & | srfvpvf, |
| const DimensionedField< vector, volMesh > & | iF ) |
Construct as copy setting internal field reference.
Definition at line 89 of file SRFFreestreamVelocityFvPatchVectorField.C.
References SRFFreestreamVelocityFvPatchVectorField().

| TypeName | ( | "SRFFreestreamVelocity" | ) |
Runtime type information.
References SRFFreestreamVelocityFvPatchVectorField().

|
inlinevirtual |
Return a clone.
Definition at line 203 of file SRFFreestreamVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().

|
inlinevirtual |
Clone with an internal field reference.
Definition at line 211 of file SRFFreestreamVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().

|
inline |
Return the velocity at infinity.
Definition at line 227 of file SRFFreestreamVelocityFvPatchVectorField.H.
|
inline |
Return reference to the velocity at infinity to allow adjustment.
Definition at line 235 of file SRFFreestreamVelocityFvPatchVectorField.H.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 104 of file SRFFreestreamVelocityFvPatchVectorField.C.
References SRFModel::axis(), Foam::cos(), Foam::mag(), mesh, name, Foam::neg(), SRFModel::omega(), Foam::sin(), fvPatchField< Type >::updateCoeffs(), dimensioned< Type >::value(), and SRFModel::velocity().

|
virtual |
Write.
Definition at line 153 of file SRFFreestreamVelocityFvPatchVectorField.C.
References os(), fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().
