Freestream velocity condition to be used in conjunction with the single rotating frame (SRF) model (see: SRFModel class) More...
Public Member Functions | |
TypeName ("SRFVelocity") | |
Runtime type information. More... | |
SRFVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
SRFVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
SRFVelocityFvPatchVectorField (const SRFVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given SRFVelocityFvPatchVectorField. More... | |
SRFVelocityFvPatchVectorField (const SRFVelocityFvPatchVectorField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
SRFVelocityFvPatchVectorField (const SRFVelocityFvPatchVectorField &, 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 Switch & | relative () const |
Return const access to the relative flag. More... | |
virtual void | autoMap (const fvPatchFieldMapper &) |
Map (and resize as needed) from self given a mapping object. More... | |
virtual void | rmap (const fvPatchVectorField &, const labelList &) |
Reverse map the given fvPatchField onto this fvPatchField. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Freestream velocity condition to be used in conjunction with the single rotating frame (SRF) model (see: SRFModel class)
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
= | |
= | |
= | |
= | |
= |
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 }
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.
The optional relative
flag switches the behaviour of the patch such that:
where
= | |
= | |
= |
Property | Description | Required | Default value |
---|---|---|---|
inletValue | inlet velocity | yes | |
relative | inletValue relative motion to the SRF? | yes |
Example of the boundary condition specification:
<patchName> { type SRFVelocity; inletValue uniform (0 0 0); relative yes; value uniform (0 0 0); // initial value }
Definition at line 126 of file SRFVelocityFvPatchVectorField.H.
SRFVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 35 of file SRFVelocityFvPatchVectorField.C.
Referenced by SRFVelocityFvPatchVectorField::clone(), and SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField().
SRFVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 61 of file SRFVelocityFvPatchVectorField.C.
References SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField().
SRFVelocityFvPatchVectorField | ( | const SRFVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given SRFVelocityFvPatchVectorField.
onto a new patch
Definition at line 47 of file SRFVelocityFvPatchVectorField.C.
References SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField().
SRFVelocityFvPatchVectorField | ( | const SRFVelocityFvPatchVectorField & | srfvpvf | ) |
Construct as copy.
Definition at line 74 of file SRFVelocityFvPatchVectorField.C.
References SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField().
SRFVelocityFvPatchVectorField | ( | const SRFVelocityFvPatchVectorField & | srfvpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 85 of file SRFVelocityFvPatchVectorField.C.
References SRFVelocityFvPatchVectorField::autoMap().
TypeName | ( | "SRFVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 179 of file SRFVelocityFvPatchVectorField.H.
References SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 196 of file SRFVelocityFvPatchVectorField.H.
References SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField().
|
inline |
Return const access to the relative flag.
Definition at line 212 of file SRFVelocityFvPatchVectorField.H.
References SRFVelocityFvPatchVectorField::autoMap(), SRFVelocityFvPatchVectorField::rmap(), SRFVelocityFvPatchVectorField::updateCoeffs(), and SRFVelocityFvPatchVectorField::write().
Referenced by SRFModel::Uabs().
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 99 of file SRFVelocityFvPatchVectorField.C.
References SRFVelocityFvPatchVectorField::rmap().
Referenced by SRFVelocityFvPatchVectorField::relative(), and SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField().
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 109 of file SRFVelocityFvPatchVectorField.C.
References SRFVelocityFvPatchVectorField::rmap().
Referenced by SRFVelocityFvPatchVectorField::autoMap(), SRFVelocityFvPatchVectorField::relative(), and SRFVelocityFvPatchVectorField::rmap().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 123 of file SRFVelocityFvPatchVectorField.C.
References Foam::operator==(), and SRFModel::velocity().
Referenced by SRFVelocityFvPatchVectorField::relative().
|
virtual |
Write.
Definition at line 153 of file SRFVelocityFvPatchVectorField.C.
References token::END_STATEMENT, Foam::makePatchTypeField(), Foam::nl, fvPatchField< Type >::write(), Field< Type >::writeEntry(), and Ostream::writeKeyword().
Referenced by SRFVelocityFvPatchVectorField::relative().