omega Class Reference

User convenience class to handle the input of time-varying rotational speed in rad/s if omega is specified or rpm if rpm is specified. More...

Public Member Functions

 omega ()
 Construct null. More...
 
 omega (const dictionary &dict)
 Construct from dictionary. More...
 
 omega (const omega &)
 Copy constructor. More...
 
bool read (const dictionary &dict)
 Update omega function from given dictionary. More...
 
scalar value (const scalar t) const
 Return value for time t. More...
 
scalar integral (const scalar t1, const scalar t2) const
 Return the integral between times t1 and t2. More...
 
void write (Ostream &os) const
 Write data to dictionary stream. More...
 
void operator= (const omega &)=delete
 Disallow default bitwise assignment. More...
 

Detailed Description

User convenience class to handle the input of time-varying rotational speed in rad/s if omega is specified or rpm if rpm is specified.

Usage
For specifying the rotational speed in rpm of an MRF zone:
    MRF
    {
        cellZone    rotor;

        origin     (0 0 0);
        axis       (0 0 1);

        rpm        60;
    }
or the equivalent specified in rad/s:
    MRF
    {
        cellZone    rotor;

        origin     (0 0 0);
        axis       (0 0 1);

        omega      6.28319;
    }
or for a tabulated ramped rotational speed of a solid body:
    mover
    {
        type            motionSolver;

        libs            ("libfvMeshMovers.so" "libfvMotionSolvers.so");

        motionSolver    solidBody;

        cellZone        innerCylinder;

        solidBodyMotionFunction  rotatingMotion;

        origin      (0 0 0);
        axis        (0 1 0);

        rpm         table
        (
            (0    0)
            (0.01  6000)
            (0.022  6000)
            (0.03  4000)
            (100   4000)
        );
    }
See also
Foam::Function1s
Source files

Definition at line 107 of file omega.H.

Constructor & Destructor Documentation

◆ omega() [1/3]

omega ( )

Construct null.

Definition at line 31 of file omega.C.

◆ omega() [2/3]

omega ( const dictionary dict)

Construct from dictionary.

Definition at line 38 of file omega.C.

◆ omega() [3/3]

omega ( const omega o)

Copy constructor.

Definition at line 51 of file omega.C.

Member Function Documentation

◆ read()

bool read ( const dictionary dict)

Update omega function from given dictionary.

Definition at line 61 of file omega.C.

References dict, and Foam::constant::mathematical::pi().

Here is the call graph for this function:

◆ value()

Foam::scalar value ( const scalar  t) const
inline

Return value for time t.

Definition at line 28 of file omegaI.H.

◆ integral()

Foam::scalar integral ( const scalar  t1,
const scalar  t2 
) const
inline

Return the integral between times t1 and t2.

Definition at line 34 of file omegaI.H.

◆ write()

void write ( Ostream os) const

Write data to dictionary stream.

Definition at line 77 of file omega.C.

References Foam::Function1s::writeEntry().

Referenced by Foam::Function1s::writeEntry().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

void operator= ( const omega )
delete

Disallow default bitwise assignment.


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