Public Member Functions | Private Member Functions | Private Attributes
engineValve Class Reference

Foam::engineValve. More...

Collaboration diagram for engineValve:
Collaboration graph
[legend]

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...
 
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 &) const
 Write dictionary. More...
 

Private Member Functions

 engineValve (const engineValve &)
 Disallow default bitwise copy construct. More...
 
void operator= (const engineValve &)
 Disallow default bitwise assignment. More...
 
scalar adjustCrankAngle (const scalar theta) const
 Adjust crank angle to drop within the limits of the lift profile. More...
 

Private Attributes

word name_
 Name of valve. More...
 
const polyMeshmesh_
 Reference to engine mesh. More...
 
const engineTimeengineDB_
 Reference to engine database. More...
 
autoPtr< coordinateSystemcsPtr_
 Coordinate system. More...
 
polyPatchID bottomPatch_
 Valve bottom patch. More...
 
polyPatchID poppetPatch_
 Valve poppet patch. More...
 
polyPatchID stemPatch_
 Valve stem patch. More...
 
polyPatchID curtainInPortPatch_
 Valve curtain manifold patch. More...
 
polyPatchID curtainInCylinderPatch_
 Valve curtain cylinder patch. More...
 
polyPatchID detachInCylinderPatch_
 Valve detach in cylinder patch. More...
 
polyPatchID detachInPortPatch_
 Valve detach in port patch. More...
 
labelList detachFaces_
 Faces to detach. More...
 
graph liftProfile_
 Valve lift profile. More...
 
scalar liftProfileStart_
 Lift curve start angle. More...
 
scalar liftProfileEnd_
 Lift curve end angle. More...
 
const scalar minLift_
 Minimum valve lift. On this lift the valve is considered closed. More...
 
const scalar minTopLayer_
 Min top layer thickness. More...
 
const scalar maxTopLayer_
 Max top layer thickness. More...
 
const scalar minBottomLayer_
 Min bottom layer thickness. More...
 
const scalar maxBottomLayer_
 Max bottom layer thickness. More...
 
const scalar diameter_
 Valve diameter. More...
 

Detailed Description

Foam::engineValve.

Source files

Definition at line 55 of file engineValve.H.

Constructor & Destructor Documentation

◆ engineValve() [1/3]

engineValve ( const engineValve )
private

Disallow default bitwise copy construct.

◆ engineValve() [2/3]

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 68 of file engineValve.C.

◆ engineValve() [3/3]

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

Construct from dictionary.

Definition at line 115 of file engineValve.C.

Member Function Documentation

◆ operator=()

void operator= ( const engineValve )
private

Disallow default bitwise assignment.

◆ adjustCrankAngle()

Foam::scalar adjustCrankAngle ( const scalar  theta) const
private

Adjust crank angle to drop within the limits of the lift profile.

Definition at line 33 of file engineValve.C.

References engineValve::liftProfileEnd_, and engineValve::liftProfileStart_.

◆ name()

const word& name ( ) const
inline

Return name.

Definition at line 191 of file engineValve.H.

References engineValve::name_.

◆ cs()

const coordinateSystem& cs ( ) const
inline

Return coordinate system.

Definition at line 197 of file engineValve.H.

References engineValve::csPtr_.

◆ liftProfile()

const graph& liftProfile ( ) const
inline

Return lift profile.

Definition at line 203 of file engineValve.H.

References engineValve::liftProfile_.

◆ diameter()

scalar diameter ( ) const
inline

Return valve diameter.

Definition at line 209 of file engineValve.H.

References engineValve::diameter_.

◆ bottomPatchID()

const polyPatchID& bottomPatchID ( ) const
inline

Return ID of bottom patch.

Definition at line 218 of file engineValve.H.

References engineValve::bottomPatch_.

◆ poppetPatchID()

const polyPatchID& poppetPatchID ( ) const
inline

Return ID of poppet patch.

Definition at line 224 of file engineValve.H.

References engineValve::poppetPatch_.

◆ stemPatchID()

const polyPatchID& stemPatchID ( ) const
inline

Return ID of stem patch.

Definition at line 230 of file engineValve.H.

References engineValve::stemPatch_.

◆ curtainInCylinderPatchID()

const polyPatchID& curtainInCylinderPatchID ( ) const
inline

Return ID of curtain in cylinder patch.

Definition at line 236 of file engineValve.H.

References engineValve::curtainInCylinderPatch_.

◆ curtainInPortPatchID()

const polyPatchID& curtainInPortPatchID ( ) const
inline

Return ID of curtain in port patch.

Definition at line 242 of file engineValve.H.

References engineValve::curtainInPortPatch_.

◆ detachInCylinderPatchID()

const polyPatchID& detachInCylinderPatchID ( ) const
inline

Return ID of detach in cylinder patch.

Definition at line 249 of file engineValve.H.

References engineValve::detachInCylinderPatch_.

◆ detachInPortPatchID()

const polyPatchID& detachInPortPatchID ( ) const
inline

Return ID of detach in port patch.

Definition at line 255 of file engineValve.H.

References engineValve::detachInPortPatch_.

◆ detachFaces()

const labelList& detachFaces ( ) const
inline

Return face labels of detach curtain.

Definition at line 261 of file engineValve.H.

References engineValve::detachFaces_.

◆ minTopLayer()

scalar minTopLayer ( ) const
inline

Definition at line 269 of file engineValve.H.

References engineValve::minTopLayer_.

◆ maxTopLayer()

scalar maxTopLayer ( ) const
inline

Definition at line 274 of file engineValve.H.

References engineValve::maxTopLayer_.

◆ minBottomLayer()

scalar minBottomLayer ( ) const
inline

Definition at line 279 of file engineValve.H.

References engineValve::minBottomLayer_.

◆ maxBottomLayer()

scalar maxBottomLayer ( ) const
inline

Definition at line 284 of file engineValve.H.

References engineValve::maxBottomLayer_.

◆ lift()

Foam::scalar lift ( const scalar  theta) const

Return valve lift given crank angle in degrees.

Definition at line 173 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 184 of file engineValve.C.

◆ curLift()

Foam::scalar curLift ( ) const

Return current lift.

Definition at line 190 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 200 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 214 of file engineValve.C.

References List::setSize().

Here is the call graph for this function:

◆ writeDict()

void writeDict ( Ostream os) const

Write dictionary.

Definition at line 237 of file engineValve.C.

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

Here is the call graph for this function:

Field Documentation

◆ name_

word name_
private

Name of valve.

Definition at line 60 of file engineValve.H.

Referenced by engineValve::name().

◆ mesh_

const polyMesh& mesh_
private

Reference to engine mesh.

Definition at line 63 of file engineValve.H.

◆ engineDB_

const engineTime& engineDB_
private

Reference to engine database.

Definition at line 66 of file engineValve.H.

◆ csPtr_

autoPtr<coordinateSystem> csPtr_
private

Coordinate system.

Definition at line 69 of file engineValve.H.

Referenced by engineValve::cs().

◆ bottomPatch_

polyPatchID bottomPatch_
private

Valve bottom patch.

Definition at line 75 of file engineValve.H.

Referenced by engineValve::bottomPatchID().

◆ poppetPatch_

polyPatchID poppetPatch_
private

Valve poppet patch.

Definition at line 78 of file engineValve.H.

Referenced by engineValve::poppetPatchID().

◆ stemPatch_

polyPatchID stemPatch_
private

Valve stem patch.

Definition at line 81 of file engineValve.H.

Referenced by engineValve::stemPatchID().

◆ curtainInPortPatch_

polyPatchID curtainInPortPatch_
private

Valve curtain manifold patch.

Definition at line 84 of file engineValve.H.

Referenced by engineValve::curtainInPortPatchID().

◆ curtainInCylinderPatch_

polyPatchID curtainInCylinderPatch_
private

Valve curtain cylinder patch.

Definition at line 87 of file engineValve.H.

Referenced by engineValve::curtainInCylinderPatchID().

◆ detachInCylinderPatch_

polyPatchID detachInCylinderPatch_
private

Valve detach in cylinder patch.

Definition at line 90 of file engineValve.H.

Referenced by engineValve::detachInCylinderPatchID().

◆ detachInPortPatch_

polyPatchID detachInPortPatch_
private

Valve detach in port patch.

Definition at line 93 of file engineValve.H.

Referenced by engineValve::detachInPortPatchID().

◆ detachFaces_

labelList detachFaces_
private

Faces to detach.

Definition at line 96 of file engineValve.H.

Referenced by engineValve::detachFaces().

◆ liftProfile_

graph liftProfile_
private

Valve lift profile.

Definition at line 102 of file engineValve.H.

Referenced by engineValve::liftProfile().

◆ liftProfileStart_

scalar liftProfileStart_
private

Lift curve start angle.

Definition at line 105 of file engineValve.H.

Referenced by engineValve::adjustCrankAngle().

◆ liftProfileEnd_

scalar liftProfileEnd_
private

Lift curve end angle.

Definition at line 108 of file engineValve.H.

Referenced by engineValve::adjustCrankAngle().

◆ minLift_

const scalar minLift_
private

Minimum valve lift. On this lift the valve is considered closed.

Definition at line 111 of file engineValve.H.

◆ minTopLayer_

const scalar minTopLayer_
private

Min top layer thickness.

Definition at line 117 of file engineValve.H.

Referenced by engineValve::minTopLayer().

◆ maxTopLayer_

const scalar maxTopLayer_
private

Max top layer thickness.

Definition at line 120 of file engineValve.H.

Referenced by engineValve::maxTopLayer().

◆ minBottomLayer_

const scalar minBottomLayer_
private

Min bottom layer thickness.

Definition at line 123 of file engineValve.H.

Referenced by engineValve::minBottomLayer().

◆ maxBottomLayer_

const scalar maxBottomLayer_
private

Max bottom layer thickness.

Definition at line 126 of file engineValve.H.

Referenced by engineValve::maxBottomLayer().

◆ diameter_

const scalar diameter_
private

Valve diameter.

Definition at line 130 of file engineValve.H.

Referenced by engineValve::diameter().


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