engine Class Reference

Basic mesh motion specifically for engines. More...

Inheritance diagram for engine:
Collaboration diagram for engine:

Public Member Functions

 TypeName ("engine")
 Runtime type information. More...
 
 engine (fvMesh &mesh)
 Construct from fvMesh. More...
 
 engine (const engine &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~engine ()
 Destructor. More...
 
const dimensionedScalarrpm () const
 Return the engines current operating RPM. More...
 
const dimensionedScalarconRodLength () const
 Return the engines connecting-rod length. More...
 
const dimensionedScalarbore () const
 Return the engines bore. More...
 
const dimensionedScalarstroke () const
 Return the engines stroke. More...
 
const dimensionedScalarclearance () const
 Return the engines clearance-gap. More...
 
virtual scalar theta () const
 Return current crank-angle. More...
 
virtual scalar deltaTheta () const
 Return crank-angle increment. More...
 
scalar pistonPosition (const scalar theta) const
 Calculate the piston position from the engine geometry. More...
 
dimensionedScalar pistonPosition () const
 Return current piston position. More...
 
dimensionedScalar pistonDisplacement () const
 Return piston displacement for current time step. More...
 
dimensionedScalar pistonSpeed () const
 Return piston speed for current time step. More...
 
void operator= (const engine &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from fvMeshMover
 TypeName ("fvMeshMover")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, fvMeshMover, fvMesh,(fvMesh &mesh),(mesh))
 
 fvMeshMover (fvMesh &)
 Construct from fvMesh. More...
 
 fvMeshMover (const fvMeshMover &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~fvMeshMover ()
 Destructor. More...
 
fvMeshmesh ()
 Return the fvMesh. More...
 
const fvMeshmesh () const
 Return the fvMesh. More...
 
const dictionarydict () const
 Return the dynamicMeshDict/mover dict. More...
 
virtual bool dynamic () const
 Is mesh dynamic, i.e. might it change? More...
 
virtual bool solidBody () const
 Is the motion solid body? I.e., are the volumes and area magnitudes. More...
 
virtual bool update ()=0
 Update the mesh for both mesh motion and topology change. More...
 
virtual void topoChange (const polyTopoChangeMap &)=0
 Update local data for topology changes. More...
 
virtual void mapMesh (const polyMeshMap &)=0
 Update from another mesh using the given map. More...
 
virtual void distribute (const polyDistributionMap &)=0
 Update corresponding to the given distribution map. More...
 
virtual bool write (const bool write=true) const
 Write the mover state. More...
 
void operator= (const fvMeshMover &)=delete
 Disallow default bitwise assignment. More...
 

Protected Attributes

dictionary meshCoeffs_
 
dimensionedScalar rpm_
 RPM. More...
 
dimensionedScalar conRodLength_
 Optional engine geometry parameters. More...
 
dimensionedScalar bore_
 
dimensionedScalar stroke_
 
dimensionedScalar clearance_
 
label pistonIndex_
 
label linerIndex_
 
label cylinderHeadIndex_
 
dimensionedScalar deckHeight_
 
dimensionedScalar pistonPosition_
 

Additional Inherited Members

- Static Public Member Functions inherited from fvMeshMover
static autoPtr< fvMeshMoverNew (fvMesh &)
 Select, construct and return the fvMeshMover. More...
 

Detailed Description

Basic mesh motion specifically for engines.

Source files

Definition at line 50 of file fvMeshMoversEngine.H.

Constructor & Destructor Documentation

◆ engine() [1/2]

◆ engine() [2/2]

engine ( const engine )
delete

Disallow default bitwise copy construction.

◆ ~engine()

~engine ( )
virtual

Destructor.

Definition at line 146 of file fvMeshMoversEngine.C.

Member Function Documentation

◆ TypeName()

TypeName ( "engine"  )

Runtime type information.

◆ rpm()

const dimensionedScalar& rpm ( ) const
inline

Return the engines current operating RPM.

Definition at line 99 of file fvMeshMoversEngine.H.

References engine::rpm_.

◆ conRodLength()

const dimensionedScalar& conRodLength ( ) const
inline

Return the engines connecting-rod length.

Definition at line 105 of file fvMeshMoversEngine.H.

References engine::conRodLength_.

◆ bore()

const dimensionedScalar& bore ( ) const
inline

Return the engines bore.

Definition at line 111 of file fvMeshMoversEngine.H.

References engine::bore_.

◆ stroke()

const dimensionedScalar& stroke ( ) const
inline

Return the engines stroke.

Definition at line 117 of file fvMeshMoversEngine.H.

References engine::stroke_.

◆ clearance()

const dimensionedScalar& clearance ( ) const
inline

Return the engines clearance-gap.

Definition at line 123 of file fvMeshMoversEngine.H.

References engine::clearance_.

◆ theta()

Foam::scalar theta ( ) const
virtual

Return current crank-angle.

Definition at line 152 of file fvMeshMoversEngine.C.

◆ deltaTheta()

Foam::scalar deltaTheta ( ) const
virtual

Return crank-angle increment.

Definition at line 158 of file fvMeshMoversEngine.C.

◆ pistonPosition() [1/2]

Foam::scalar pistonPosition ( const scalar  theta) const

Calculate the piston position from the engine geometry.

and given crank angle.

Definition at line 164 of file fvMeshMoversEngine.C.

References Foam::cos(), Foam::degToRad(), Foam::sin(), Foam::sqr(), and Foam::sqrt().

Here is the call graph for this function:

◆ pistonPosition() [2/2]

Foam::dimensionedScalar pistonPosition ( ) const

Return current piston position.

Definition at line 186 of file fvMeshMoversEngine.C.

References Foam::dimLength.

◆ pistonDisplacement()

Foam::dimensionedScalar pistonDisplacement ( ) const

Return piston displacement for current time step.

Definition at line 197 of file fvMeshMoversEngine.C.

References Foam::dimLength.

◆ pistonSpeed()

Foam::dimensionedScalar pistonSpeed ( ) const

Return piston speed for current time step.

Definition at line 208 of file fvMeshMoversEngine.C.

References Foam::dimVelocity.

◆ operator=()

void operator= ( const engine )
delete

Disallow default bitwise assignment.

Member Data Documentation

◆ meshCoeffs_

dictionary meshCoeffs_
protected

Definition at line 58 of file fvMeshMoversEngine.H.

◆ rpm_

dimensionedScalar rpm_
protected

RPM.

Definition at line 61 of file fvMeshMoversEngine.H.

Referenced by engine::rpm().

◆ conRodLength_

dimensionedScalar conRodLength_
protected

Optional engine geometry parameters.

Definition at line 64 of file fvMeshMoversEngine.H.

Referenced by engine::conRodLength().

◆ bore_

dimensionedScalar bore_
protected

Definition at line 65 of file fvMeshMoversEngine.H.

Referenced by engine::bore().

◆ stroke_

dimensionedScalar stroke_
protected

Definition at line 66 of file fvMeshMoversEngine.H.

Referenced by engine::stroke().

◆ clearance_

dimensionedScalar clearance_
protected

Definition at line 67 of file fvMeshMoversEngine.H.

Referenced by engine::clearance().

◆ pistonIndex_

label pistonIndex_
protected

Definition at line 69 of file fvMeshMoversEngine.H.

Referenced by engine::engine().

◆ linerIndex_

label linerIndex_
protected

Definition at line 70 of file fvMeshMoversEngine.H.

Referenced by engine::engine().

◆ cylinderHeadIndex_

label cylinderHeadIndex_
protected

Definition at line 71 of file fvMeshMoversEngine.H.

Referenced by engine::engine().

◆ deckHeight_

dimensionedScalar deckHeight_
protected

Definition at line 73 of file fvMeshMoversEngine.H.

Referenced by engine::engine().

◆ pistonPosition_

dimensionedScalar pistonPosition_
protected

Definition at line 74 of file fvMeshMoversEngine.H.

Referenced by engine::engine().


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