coneDiskVelocityLagrangianVectorFieldSource Class Reference

This source condition provides a conical velocity profile over a disk, characterised by a velocity magnitude and inner and outer cone angles. The velocity magnitude is a Function1 and can vary with time. This condition must be used in conjunction with a disk injection model. More...

Inheritance diagram for coneDiskVelocityLagrangianVectorFieldSource:
Collaboration diagram for coneDiskVelocityLagrangianVectorFieldSource:

Public Member Functions

 TypeName ("coneDiskVelocity")
 Runtime type information. More...
 
 coneDiskVelocityLagrangianVectorFieldSource (const regIOobject &, const dictionary &dict)
 Construct from internal field and dictionary. More...
 
 coneDiskVelocityLagrangianVectorFieldSource (const coneDiskVelocityLagrangianVectorFieldSource &, const regIOobject &)
 Copy constructor setting the internal field reference. More...
 
virtual autoPtr< LagrangianVectorFieldSource > clone (const regIOobject &iIo) const
 Construct and return a clone setting the internal field reference. More...
 
virtual ~coneDiskVelocityLagrangianVectorFieldSource ()
 Destructor. More...
 
virtual tmp< LagrangianSubVectorFieldvalue (const LagrangianInjection &, const LagrangianSubMesh &) const
 Return the value for an instantaneous injection. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Detailed Description

This source condition provides a conical velocity profile over a disk, characterised by a velocity magnitude and inner and outer cone angles. The velocity magnitude is a Function1 and can vary with time. This condition must be used in conjunction with a disk injection model.

Usage
Property Description Required? Default
Umag The velocity magnitude yes
thetaInner The inner cone angle yes
thetaOuter The outer cone angle yes

Example specification:

    <LagrangianModelName>
    {
        type            coneDiskVelocity;
        Umag            0.4 [m/s];
        thetaInner      5 [deg];
        thetaOuter      30 [deg];
    }
Source files

Definition at line 92 of file coneDiskVelocityLagrangianVectorFieldSource.H.

Constructor & Destructor Documentation

◆ coneDiskVelocityLagrangianVectorFieldSource() [1/2]

Construct from internal field and dictionary.

Definition at line 32 of file coneDiskVelocityLagrangianVectorFieldSource.C.

Referenced by coneDiskVelocityLagrangianVectorFieldSource::clone().

Here is the caller graph for this function:

◆ coneDiskVelocityLagrangianVectorFieldSource() [2/2]

Copy constructor setting the internal field reference.

Definition at line 74 of file coneDiskVelocityLagrangianVectorFieldSource.C.

◆ ~coneDiskVelocityLagrangianVectorFieldSource()

Member Function Documentation

◆ TypeName()

TypeName ( "coneDiskVelocity"  )

Runtime type information.

◆ clone()

virtual autoPtr<LagrangianVectorFieldSource> clone ( const regIOobject iIo) const
inlinevirtual

Construct and return a clone setting the internal field reference.

Definition at line 140 of file coneDiskVelocityLagrangianVectorFieldSource.H.

References coneDiskVelocityLagrangianVectorFieldSource::coneDiskVelocityLagrangianVectorFieldSource().

Here is the call graph for this function:

◆ value()

Foam::tmp< Foam::LagrangianSubVectorField > value ( const LagrangianInjection injection,
const LagrangianSubMesh subMesh 
) const
virtual

Return the value for an instantaneous injection.

Definition at line 99 of file coneDiskVelocityLagrangianVectorFieldSource.C.

References Foam::cos(), Foam::dimless, Foam::dimVelocity, DimensionedField< Type, GeoMesh, PrimitiveField >::New(), and Foam::sin().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 161 of file coneDiskVelocityLagrangianVectorFieldSource.C.

References Foam::dimVelocity, Foam::unitDegrees, Foam::vtkWriteOps::write(), and Foam::writeEntry().

Here is the call graph for this function:

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