engineValve Class Reference

Foam::engineValve. More...

Public Member Functions

 engineValve (const word &name, const polyMesh &mesh, const autoPtr< coordinateSystem > &valveCS, const word &bottomPatchName, const word &poppetPatchName, const word &stemPatchName, const word &curtainInPortPatchName, const word &curtainInCylinderPatchName, const word &detachInCylinderPatchName, const word &detachInPortPatchName, const labelList &detachFaces, const graph &liftProfile, const scalar minLift, const scalar minTopLayer, const scalar maxTopLayer, const scalar minBottomLayer, const scalar maxBottomLayer, const scalar diameter)
 Construct from components. More...
 
 engineValve (const word &name, const polyMesh &mesh, const dictionary &dict)
 Construct from dictionary. More...
 
 ~engineValve ()=default
 Destructor. More...
 
const wordname () const
 Return name. More...
 
const coordinateSystemcs () const
 Return coordinate system. More...
 
const graphliftProfile () const
 Return lift profile. More...
 
scalar diameter () const
 Return valve diameter. More...
 
const polyPatchIDbottomPatchID () const
 Return ID of bottom patch. More...
 
const polyPatchIDpoppetPatchID () const
 Return ID of poppet patch. More...
 
const polyPatchIDstemPatchID () const
 Return ID of stem patch. More...
 
const polyPatchIDcurtainInCylinderPatchID () const
 Return ID of curtain in cylinder patch. More...
 
const polyPatchIDcurtainInPortPatchID () const
 Return ID of curtain in port patch. More...
 
const polyPatchIDdetachInCylinderPatchID () const
 Return ID of detach in cylinder patch. More...
 
const polyPatchIDdetachInPortPatchID () const
 Return ID of detach in port patch. More...
 
const labelListdetachFaces () const
 Return face labels of detach curtain. More...
 
scalar minTopLayer () const
 
scalar maxTopLayer () const
 
scalar minBottomLayer () const
 
scalar maxBottomLayer () const
 
scalar lift (const scalar theta) const
 Return valve lift given crank angle in degrees. More...
 
bool isOpen () const
 Is the valve open? More...
 
scalar curLift () const
 Return current lift. More...
 
scalar curVelocity () const
 Return valve velocity for current time-step. More...
 
labelList movingPatchIDs () const
 Return list of active patch labels for the valve head. More...
 
void writeDict (Ostream &os) const
 Write dictionary. More...
 

Detailed Description

Foam::engineValve.

Source files

Definition at line 57 of file engineValve.H.

Constructor & Destructor Documentation

◆ engineValve() [1/2]

engineValve ( const word name,
const polyMesh mesh,
const autoPtr< coordinateSystem > &  valveCS,
const word bottomPatchName,
const word poppetPatchName,
const word stemPatchName,
const word curtainInPortPatchName,
const word curtainInCylinderPatchName,
const word detachInCylinderPatchName,
const word detachInPortPatchName,
const labelList detachFaces,
const graph liftProfile,
const scalar  minLift,
const scalar  minTopLayer,
const scalar  maxTopLayer,
const scalar  minBottomLayer,
const scalar  maxBottomLayer,
const scalar  diameter 
)

Construct from components.

Definition at line 69 of file engineValve.C.

◆ engineValve() [2/2]

engineValve ( const word name,
const polyMesh mesh,
const dictionary dict 
)

Construct from dictionary.

Definition at line 115 of file engineValve.C.

◆ ~engineValve()

~engineValve ( )
default

Destructor.

Member Function Documentation

◆ name()

const word & name ( ) const
inline

Return name.

Definition at line 190 of file engineValve.H.

◆ cs()

const coordinateSystem & cs ( ) const
inline

Return coordinate system.

Definition at line 196 of file engineValve.H.

◆ liftProfile()

const graph & liftProfile ( ) const
inline

Return lift profile.

Definition at line 202 of file engineValve.H.

◆ diameter()

scalar diameter ( ) const
inline

Return valve diameter.

Definition at line 208 of file engineValve.H.

◆ bottomPatchID()

const polyPatchID & bottomPatchID ( ) const
inline

Return ID of bottom patch.

Definition at line 217 of file engineValve.H.

◆ poppetPatchID()

const polyPatchID & poppetPatchID ( ) const
inline

Return ID of poppet patch.

Definition at line 223 of file engineValve.H.

◆ stemPatchID()

const polyPatchID & stemPatchID ( ) const
inline

Return ID of stem patch.

Definition at line 229 of file engineValve.H.

◆ curtainInCylinderPatchID()

const polyPatchID & curtainInCylinderPatchID ( ) const
inline

Return ID of curtain in cylinder patch.

Definition at line 235 of file engineValve.H.

◆ curtainInPortPatchID()

const polyPatchID & curtainInPortPatchID ( ) const
inline

Return ID of curtain in port patch.

Definition at line 241 of file engineValve.H.

◆ detachInCylinderPatchID()

const polyPatchID & detachInCylinderPatchID ( ) const
inline

Return ID of detach in cylinder patch.

Definition at line 248 of file engineValve.H.

◆ detachInPortPatchID()

const polyPatchID & detachInPortPatchID ( ) const
inline

Return ID of detach in port patch.

Definition at line 254 of file engineValve.H.

◆ detachFaces()

const labelList & detachFaces ( ) const
inline

Return face labels of detach curtain.

Definition at line 260 of file engineValve.H.

◆ minTopLayer()

scalar minTopLayer ( ) const
inline

Definition at line 268 of file engineValve.H.

◆ maxTopLayer()

scalar maxTopLayer ( ) const
inline

Definition at line 273 of file engineValve.H.

◆ minBottomLayer()

scalar minBottomLayer ( ) const
inline

Definition at line 278 of file engineValve.H.

◆ maxBottomLayer()

scalar maxBottomLayer ( ) const
inline

Definition at line 283 of file engineValve.H.

◆ lift()

Foam::scalar lift ( const scalar  theta) const

Return valve lift given crank angle in degrees.

Definition at line 179 of file engineValve.C.

References Foam::interpolateXY().

Here is the call graph for this function:

◆ isOpen()

bool isOpen ( ) const

Is the valve open?

Definition at line 190 of file engineValve.C.

◆ curLift()

Foam::scalar curLift ( ) const

Return current lift.

Definition at line 196 of file engineValve.C.

References Foam::max().

Here is the call graph for this function:

◆ curVelocity()

Foam::scalar curVelocity ( ) const

Return valve velocity for current time-step.

Definition at line 206 of file engineValve.C.

References Foam::max().

Here is the call graph for this function:

◆ movingPatchIDs()

Foam::labelList movingPatchIDs ( ) const

Return list of active patch labels for the valve head.

(stem is excluded)

Definition at line 220 of file engineValve.C.

References List< T >::setSize().

Here is the call graph for this function:

◆ writeDict()

void writeDict ( Ostream os) const

Write dictionary.

Definition at line 243 of file engineValve.C.

References token::BEGIN_BLOCK, token::END_BLOCK, token::END_STATEMENT, Foam::endl(), OFstream::name(), Foam::name(), Foam::nl, and os().

Here is the call graph for this function:

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