Loading...
Searching...
No Matches
SRFVelocityFvPatchVectorField Class Reference

Velocity condition to be used in conjunction with the single rotating frame (SRF) model (see: SRFModel class). More...

#include <SRFVelocityFvPatchVectorField.H>

Inheritance diagram for SRFVelocityFvPatchVectorField:
Collaboration diagram for SRFVelocityFvPatchVectorField:

Public Member Functions

 TypeName ("SRFVelocity")
 Runtime type information.
 SRFVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 Construct from patch and internal field.
 SRFVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 SRFVelocityFvPatchVectorField (const SRFVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given SRFVelocityFvPatchVectorField.
 SRFVelocityFvPatchVectorField (const SRFVelocityFvPatchVectorField &)
 Construct as copy.
 SRFVelocityFvPatchVectorField (const SRFVelocityFvPatchVectorField &, 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.
bool relative () const
 Is supplied inlet value relative to the SRF?
virtual void autoMap (const fvPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object.
virtual void rmap (const fvPatchVectorField &, const labelList &)
 Reverse map the given fvPatchField onto this fvPatchField.
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void write (Ostream &) const
 Write.

Detailed Description

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:

  • relative = yes: inlet velocity applied 'as is':

\‍[        U_p = U_{in}
\‍]

  • relative = no : SRF velocity is subtracted from the inlet velocity:

\‍[        U_p = U_{in} - U_{p,srf}
\‍]

where

$        U_p     $=patch velocity [m/s]
$        U_{in}  $=user-specified inlet velocity
$        U_{p,srf} $=SRF velocity
Usage
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
    }
See also
Foam::fixedValueFvPatchField
Source files

Definition at line 127 of file SRFVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ SRFVelocityFvPatchVectorField() [1/5]

SRFVelocityFvPatchVectorField ( const fvPatch & p,
const DimensionedField< vector, volMesh > & iF )

Construct from patch and internal field.

Definition at line 29 of file SRFVelocityFvPatchVectorField.C.

References p, and Foam::Zero.

Referenced by rmap(), SRFVelocityFvPatchVectorField(), SRFVelocityFvPatchVectorField(), SRFVelocityFvPatchVectorField(), and TypeName().

Here is the caller graph for this function:

◆ SRFVelocityFvPatchVectorField() [2/5]

SRFVelocityFvPatchVectorField ( const fvPatch & p,
const DimensionedField< vector, volMesh > & iF,
const dictionary & dict )

Construct from patch, internal field and dictionary.

Definition at line 55 of file SRFVelocityFvPatchVectorField.C.

References dict, and p.

◆ SRFVelocityFvPatchVectorField() [3/5]

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 41 of file SRFVelocityFvPatchVectorField.C.

References p, and SRFVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ SRFVelocityFvPatchVectorField() [4/5]

SRFVelocityFvPatchVectorField ( const SRFVelocityFvPatchVectorField & srfvpvf)

Construct as copy.

Definition at line 68 of file SRFVelocityFvPatchVectorField.C.

References SRFVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ SRFVelocityFvPatchVectorField() [5/5]

SRFVelocityFvPatchVectorField ( const SRFVelocityFvPatchVectorField & srfvpvf,
const DimensionedField< vector, volMesh > & iF )

Construct as copy setting internal field reference.

Definition at line 79 of file SRFVelocityFvPatchVectorField.C.

References SRFVelocityFvPatchVectorField().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "SRFVelocity" )

Runtime type information.

References SRFVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ clone() [1/2]

virtual tmp< fvPatchField< vector > > clone ( ) const
inlinevirtual

Return a clone.

Definition at line 206 of file SRFVelocityFvPatchVectorField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ clone() [2/2]

virtual tmp< fvPatchField< vector > > clone ( const DimensionedField< vector, volMesh > & iF) const
inlinevirtual

Clone with an internal field reference.

Definition at line 214 of file SRFVelocityFvPatchVectorField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ relative()

bool relative ( ) const
inline

Is supplied inlet value relative to the SRF?

Definition at line 230 of file SRFVelocityFvPatchVectorField.H.

Referenced by SRFModel::Uabs().

Here is the caller graph for this function:

◆ autoMap()

void autoMap ( const fvPatchFieldMapper & m)
virtual

Map (and resize as needed) from self given a mapping object.

Definition at line 93 of file SRFVelocityFvPatchVectorField.C.

References Field< vector >::autoMap().

Here is the call graph for this function:

◆ rmap()

void rmap ( const fvPatchVectorField & ptf,
const labelList & addr )
virtual

Reverse map the given fvPatchField onto this fvPatchField.

Definition at line 103 of file SRFVelocityFvPatchVectorField.C.

References Foam::refCast(), and SRFVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 118 of file SRFVelocityFvPatchVectorField.C.

References Foam::operator==(), and SRFModel::velocity().

Here is the call graph for this function:

◆ write()

void write ( Ostream & os) const
virtual

Write.

Definition at line 148 of file SRFVelocityFvPatchVectorField.C.

References os(), fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().

Here is the call graph for this function:

The documentation for this class was generated from the following files: