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... | |
SRFVelocityFvPatchVectorField (const SRFVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchField< vector > > | clone () const |
Return a clone. More... | |
virtual tmp< fvPatchField< vector > > | clone (const DimensionedField< vector, volMesh > &iF) const |
Clone with an internal field reference. More... | |
bool | relative () const |
Is supplied inlet value relative to the SRF? 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... | |
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.
The optional relative
flag switches the behaviour of the patch such that:
where
= | patch velocity [m/s] | |
= | user-specified inlet velocity | |
= | SRF velocity |
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 127 of file SRFVelocityFvPatchVectorField.H.
SRFVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 30 of file SRFVelocityFvPatchVectorField.C.
SRFVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 56 of file SRFVelocityFvPatchVectorField.C.
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 42 of file SRFVelocityFvPatchVectorField.C.
SRFVelocityFvPatchVectorField | ( | const SRFVelocityFvPatchVectorField & | srfvpvf | ) |
Construct as copy.
Definition at line 69 of file SRFVelocityFvPatchVectorField.C.
SRFVelocityFvPatchVectorField | ( | const SRFVelocityFvPatchVectorField & | srfvpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 80 of file SRFVelocityFvPatchVectorField.C.
TypeName | ( | "SRFVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Return a clone.
Definition at line 206 of file SRFVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().
|
inlinevirtual |
Clone with an internal field reference.
Definition at line 215 of file SRFVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().
|
inline |
Is supplied inlet value relative to the SRF?
Definition at line 230 of file SRFVelocityFvPatchVectorField.H.
Referenced by SRFModel::Uabs().
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 94 of file SRFVelocityFvPatchVectorField.C.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 104 of file SRFVelocityFvPatchVectorField.C.
References SRFVelocityFvPatchVectorField::rmap().
Referenced by SRFVelocityFvPatchVectorField::rmap().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 118 of file SRFVelocityFvPatchVectorField.C.
References Foam::operator==(), Foam::foamVersion::patch, and SRFModel::velocity().
|
virtual |
Write.
Definition at line 148 of file SRFVelocityFvPatchVectorField.C.
References os(), fvPatchField< Type >::write(), Ostream::writeEntry(), and fvPatchField< Type >::writeValueEntry().