engine Class Reference

A userTime based on engine crank-angle degrees. More...

Inheritance diagram for engine:
Collaboration diagram for engine:

Public Member Functions

 TypeName ("engine")
 Runtime type information. More...
 
 engine (const dictionary &controlDict)
 Construct from controlDict. More...
 
virtual ~engine ()
 Destructor. More...
 
virtual scalar userTimeToTime (const scalar theta) const
 Return the theta crank-angle is s. More...
 
virtual scalar timeToUserTime (const scalar t) const
 Return the time t in crank-angle. More...
 
virtual word unitName () const
 Return engine-time unit name (CAD) More...
 
virtual const unitConversionunits () const
 Return the engine-time unit conversion. More...
 
virtual bool read (const dictionary &controlDict)
 Read the controlDict and set all the parameters. More...
 
- Public Member Functions inherited from userTime
 TypeName ("userTime")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, userTime, dictionary,(const dictionary &controlDict),(controlDict))
 Declare runtime constructor selection table. More...
 
 userTime (const dictionary &controlDict)
 Construct from controlDict. More...
 
virtual ~userTime ()
 Destructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from userTime
static autoPtr< userTimeNew (const dictionary &controlDict)
 
static const dictionarydict (const dictionary &controlDict)
 Return the userTime sub-dictionary. More...
 

Detailed Description

A userTime based on engine crank-angle degrees.

Source files

Definition at line 51 of file engineTime.H.

Constructor & Destructor Documentation

◆ engine()

engine ( const dictionary controlDict)

Construct from controlDict.

Definition at line 44 of file engineTime.C.

References Foam::addUnits(), Foam::dimTime, engine::unitName(), and engine::userTimeToTime().

Here is the call graph for this function:

◆ ~engine()

~engine ( )
virtual

Destructor.

Definition at line 55 of file engineTime.C.

Member Function Documentation

◆ TypeName()

TypeName ( "engine"  )

Runtime type information.

◆ userTimeToTime()

Foam::scalar userTimeToTime ( const scalar  theta) const
virtual

Return the theta crank-angle is s.

Implements userTime.

Definition at line 61 of file engineTime.C.

References Foam::radToDeg().

Referenced by engine::engine().

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

◆ timeToUserTime()

Foam::scalar timeToUserTime ( const scalar  t) const
virtual

Return the time t in crank-angle.

Implements userTime.

Definition at line 70 of file engineTime.C.

References Foam::radToDeg().

Here is the call graph for this function:

◆ unitName()

Foam::word unitName ( ) const
virtual

Return engine-time unit name (CAD)

Implements userTime.

Definition at line 76 of file engineTime.C.

Referenced by engine::engine().

Here is the caller graph for this function:

◆ units()

const Foam::unitConversion & units ( ) const
virtual

Return the engine-time unit conversion.

Implements userTime.

Definition at line 82 of file engineTime.C.

References Foam::units().

Here is the call graph for this function:

◆ read()

bool read ( const dictionary controlDict)
virtual

Read the controlDict and set all the parameters.

Implements userTime.

Definition at line 88 of file engineTime.C.

References Foam::addUnits(), controlDict(), dict, Foam::dimTime, and omega.

Here is the call graph for this function:

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