MRFFreestreamVelocityFvPatchVectorField Class Reference

Freestream velocity condition to be used for a wall rotating with the moving frame in an MRF (multi-reference frame) or SRF (single reference frame) case. More...

Inheritance diagram for MRFFreestreamVelocityFvPatchVectorField:
Collaboration diagram for MRFFreestreamVelocityFvPatchVectorField:

Public Member Functions

 TypeName ("MRFFreestreamVelocity")
 Runtime type information. More...
 
 MRFFreestreamVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 MRFFreestreamVelocityFvPatchVectorField (const MRFFreestreamVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given MRFFreestreamVelocityFvPatchVectorField. More...
 
 MRFFreestreamVelocityFvPatchVectorField (const MRFFreestreamVelocityFvPatchVectorField &)=delete
 Disallow copy without setting internal field reference. More...
 
 MRFFreestreamVelocityFvPatchVectorField (const MRFFreestreamVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 
- Public Member Functions inherited from freestreamVelocityFvPatchVectorField
 TypeName ("freestreamVelocity")
 Runtime type information. More...
 
 freestreamVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 freestreamVelocityFvPatchVectorField (const freestreamVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given freestreamVelocityFvPatchVectorField onto. More...
 
 freestreamVelocityFvPatchVectorField (const freestreamVelocityFvPatchVectorField &)=delete
 Disallow copy without setting internal field reference. More...
 
 freestreamVelocityFvPatchVectorField (const freestreamVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Copy constructor setting internal field reference. More...
 
const vectorFieldfreestreamValue () const
 
vectorFieldfreestreamValue ()
 
- Public Member Functions inherited from MRFPatchField
 MRFPatchField ()
 Construct null. More...
 
 MRFPatchField (const dictionary &)
 Construct from dictionary. More...
 
const MRFZoneMRFzone (const objectRegistry &obr) const
 
void makeAbsolute (fvPatchField< vector > &Up) const
 
void makeRelative (fvPatchField< vector > &Up) const
 
void write (Ostream &) const
 

Detailed Description

Freestream velocity condition to be used for a wall rotating with the moving frame in an MRF (multi-reference frame) or SRF (single reference frame) case.

Given the free stream velocity in the absolute frame at time 0, the condition applies the appropriate rotation transformation in time and space to determine the current freestream velocity.

Usage
Property Description Required Default value
freestreamValue0 freestream velocity at t=0 yes
freestreamValue freestream velocity at t yes

Example of the boundary condition specification:

    <patchName>
    {
        type                MRFFreestreamVelocity;
        freestreamValue0    (1 0 0);
        freestreamValue     uniform (1 0 0);
    }
See also
Foam::freestreamFvPatchField Foam::MRFVelocityFvPatchVectorField
Source files

Definition at line 91 of file MRFFreestreamVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ MRFFreestreamVelocityFvPatchVectorField() [1/4]

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

Construct from patch, internal field and dictionary.

Definition at line 32 of file MRFFreestreamVelocityFvPatchVectorField.C.

Referenced by MRFFreestreamVelocityFvPatchVectorField::clone().

Here is the caller graph for this function:

◆ MRFFreestreamVelocityFvPatchVectorField() [2/4]

Construct by mapping given MRFFreestreamVelocityFvPatchVectorField.

onto a new patch

Definition at line 46 of file MRFFreestreamVelocityFvPatchVectorField.C.

◆ MRFFreestreamVelocityFvPatchVectorField() [3/4]

Disallow copy without setting internal field reference.

◆ MRFFreestreamVelocityFvPatchVectorField() [4/4]

Copy constructor setting internal field reference.

Definition at line 61 of file MRFFreestreamVelocityFvPatchVectorField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "MRFFreestreamVelocity"  )

Runtime type information.

◆ clone()

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

Construct and return a clone setting internal field reference.

Reimplemented from freestreamVelocityFvPatchVectorField.

Definition at line 142 of file MRFFreestreamVelocityFvPatchVectorField.H.

References MRFFreestreamVelocityFvPatchVectorField::MRFFreestreamVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Reimplemented from freestreamVelocityFvPatchVectorField.

Definition at line 76 of file MRFFreestreamVelocityFvPatchVectorField.C.

References Foam::cos(), Foam::mag(), omega, Foam::sin(), and freestreamVelocityFvPatchVectorField::updateCoeffs().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Reimplemented from freestreamVelocityFvPatchVectorField.

Definition at line 97 of file MRFFreestreamVelocityFvPatchVectorField.C.

References fvPatchField< Type >::write(), and Foam::writeEntry().

Here is the call graph for this function:

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