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 (const engineValve &)=delete
 Disallow default bitwise copy construction. 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...
 
void operator= (const engineValve &)=delete
 Disallow default bitwise assignment. More...
 

Detailed Description

Foam::engineValve.

Source files

Definition at line 55 of file engineValve.H.

Constructor & Destructor Documentation

◆ engineValve() [1/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() [2/3]

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

Construct from dictionary.

Definition at line 115 of file engineValve.C.

◆ engineValve() [3/3]

engineValve ( const engineValve )
delete

Disallow default bitwise copy construction.

Member Function Documentation

◆ name()

const word& name ( ) const
inline

Return name.

Definition at line 182 of file engineValve.H.

Referenced by engineValve::writeDict().

Here is the caller graph for this function:

◆ cs()

const coordinateSystem& cs ( ) const
inline

Return coordinate system.

Definition at line 188 of file engineValve.H.

Referenced by engineValve::writeDict().

Here is the caller graph for this function:

◆ liftProfile()

const graph& liftProfile ( ) const
inline

Return lift profile.

Definition at line 194 of file engineValve.H.

◆ diameter()

scalar diameter ( ) const
inline

Return valve diameter.

Definition at line 200 of file engineValve.H.

◆ bottomPatchID()

const polyPatchID& bottomPatchID ( ) const
inline

Return ID of bottom patch.

Definition at line 209 of file engineValve.H.

◆ poppetPatchID()

const polyPatchID& poppetPatchID ( ) const
inline

Return ID of poppet patch.

Definition at line 215 of file engineValve.H.

◆ stemPatchID()

const polyPatchID& stemPatchID ( ) const
inline

Return ID of stem patch.

Definition at line 221 of file engineValve.H.

◆ curtainInCylinderPatchID()

const polyPatchID& curtainInCylinderPatchID ( ) const
inline

Return ID of curtain in cylinder patch.

Definition at line 227 of file engineValve.H.

◆ curtainInPortPatchID()

const polyPatchID& curtainInPortPatchID ( ) const
inline

Return ID of curtain in port patch.

Definition at line 233 of file engineValve.H.

◆ detachInCylinderPatchID()

const polyPatchID& detachInCylinderPatchID ( ) const
inline

Return ID of detach in cylinder patch.

Definition at line 240 of file engineValve.H.

◆ detachInPortPatchID()

const polyPatchID& detachInPortPatchID ( ) const
inline

Return ID of detach in port patch.

Definition at line 246 of file engineValve.H.

◆ detachFaces()

const labelList& detachFaces ( ) const
inline

Return face labels of detach curtain.

Definition at line 252 of file engineValve.H.

◆ minTopLayer()

scalar minTopLayer ( ) const
inline

Definition at line 260 of file engineValve.H.

◆ maxTopLayer()

scalar maxTopLayer ( ) const
inline

Definition at line 265 of file engineValve.H.

◆ minBottomLayer()

scalar minBottomLayer ( ) const
inline

Definition at line 270 of file engineValve.H.

◆ maxBottomLayer()

scalar maxBottomLayer ( ) const
inline

◆ 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(), graph::x(), and graph::y().

Referenced by engineValve::curLift(), engineValve::curVelocity(), engineValve::isOpen(), and engineValve::maxBottomLayer().

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

◆ isOpen()

bool isOpen ( ) const

Is the valve open?

Definition at line 184 of file engineValve.C.

References engineValve::lift(), and engineTime::theta().

Referenced by engineValve::maxBottomLayer().

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

◆ curLift()

Foam::scalar curLift ( ) const

Return current lift.

Definition at line 190 of file engineValve.C.

References engineValve::lift(), Foam::max(), and engineTime::theta().

Referenced by engineValve::curVelocity(), and engineValve::maxBottomLayer().

Here is the call graph for this function:
Here is the caller 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 engineValve::curLift(), engineTime::deltaTheta(), TimeState::deltaTValue(), engineValve::lift(), Foam::max(), and engineTime::theta().

Referenced by engineValve::maxBottomLayer().

Here is the call graph for this function:
Here is the caller 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 DynamicID< ObjectType >::active(), DynamicID< ObjectType >::index(), and List< T >::setSize().

Referenced by engineValve::maxBottomLayer().

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

◆ writeDict()

void writeDict ( Ostream os) const

Write dictionary.

Definition at line 237 of file engineValve.C.

References token::BEGIN_BLOCK, engineValve::cs(), token::END_BLOCK, token::END_STATEMENT, Foam::endl(), DynamicID< ObjectType >::name(), engineValve::name(), Foam::nl, and coordinateSystem::writeDict().

Referenced by engineValve::maxBottomLayer().

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

◆ operator=()

void operator= ( const engineValve )
delete

Disallow default bitwise assignment.

Referenced by engineValve::maxBottomLayer().

Here is the caller graph for this function:

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