OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

engineValve Class Reference

Foam::engineValve. More...

Collaboration diagram for engineValve:

List of all members.


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.
 engineValve (const word &name, const polyMesh &mesh, const dictionary &dict)
 Construct from dictionary.
const word & name () const
 Return name.
const coordinateSystem & cs () const
 Return coordinate system.
const graph & liftProfile () const
 Return lift profile.
scalar diameter () const
 Return valve diameter.
const polyPatchID & bottomPatchID () const
 Return ID of bottom patch.
const polyPatchID & poppetPatchID () const
 Return ID of poppet patch.
const polyPatchID & stemPatchID () const
 Return ID of stem patch.
const polyPatchID & curtainInCylinderPatchID () const
 Return ID of curtain in cylinder patch.
const polyPatchID & curtainInPortPatchID () const
 Return ID of curtain in port patch.
const polyPatchID & detachInCylinderPatchID () const
 Return ID of detach in cylinder patch.
const polyPatchID & detachInPortPatchID () const
 Return ID of detach in port patch.
const labelList & detachFaces () const
 Return face labels of detach curtain.
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.
bool isOpen () const
 Is the valve open?
scalar curLift () const
 Return current lift.
scalar curVelocity () const
 Return valve velocity for current time-step.
labelList movingPatchIDs () const
 Return list of active patch labels for the valve head.
void writeDict (Ostream &) const
 Write dictionary.

Detailed Description

Foam::engineValve.

Source files

Definition at line 51 of file engineValve.H.


Constructor & Destructor Documentation

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

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

Construct from dictionary.

Definition at line 107 of file engineValve.C.


Member Function Documentation

const word& name (  )  const [inline]

Return name.

Definition at line 187 of file engineValve.H.

const coordinateSystem& cs (  )  const [inline]

Return coordinate system.

Definition at line 193 of file engineValve.H.

const graph& liftProfile (  )  const [inline]

Return lift profile.

Definition at line 199 of file engineValve.H.

scalar diameter (  )  const [inline]

Return valve diameter.

Definition at line 205 of file engineValve.H.

const polyPatchID& bottomPatchID (  )  const [inline]

Return ID of bottom patch.

Definition at line 214 of file engineValve.H.

const polyPatchID& poppetPatchID (  )  const [inline]

Return ID of poppet patch.

Definition at line 220 of file engineValve.H.

const polyPatchID& stemPatchID (  )  const [inline]

Return ID of stem patch.

Definition at line 226 of file engineValve.H.

const polyPatchID& curtainInCylinderPatchID (  )  const [inline]

Return ID of curtain in cylinder patch.

Definition at line 232 of file engineValve.H.

const polyPatchID& curtainInPortPatchID (  )  const [inline]

Return ID of curtain in port patch.

Definition at line 238 of file engineValve.H.

const polyPatchID& detachInCylinderPatchID (  )  const [inline]

Return ID of detach in cylinder patch.

Definition at line 245 of file engineValve.H.

const polyPatchID& detachInPortPatchID (  )  const [inline]

Return ID of detach in port patch.

Definition at line 251 of file engineValve.H.

const labelList& detachFaces (  )  const [inline]

Return face labels of detach curtain.

Definition at line 257 of file engineValve.H.

scalar minTopLayer (  )  const [inline]

Definition at line 265 of file engineValve.H.

scalar maxTopLayer (  )  const [inline]

Definition at line 270 of file engineValve.H.

scalar minBottomLayer (  )  const [inline]

Definition at line 275 of file engineValve.H.

scalar maxBottomLayer (  )  const [inline]

Definition at line 280 of file engineValve.H.

Foam::scalar lift ( const scalar  theta  )  const

Return valve lift given crank angle in degrees.

Definition at line 165 of file engineValve.C.

Referenced by engineValve::curVelocity().

Here is the caller graph for this function:

bool isOpen (  )  const

Is the valve open?

Definition at line 176 of file engineValve.C.

Foam::scalar curLift (  )  const

Return current lift.

Definition at line 182 of file engineValve.C.

Foam::scalar curVelocity (  )  const

Return valve velocity for current time-step.

Definition at line 192 of file engineValve.C.

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

Here is the call graph for this function:

Foam::labelList movingPatchIDs (  )  const

Return list of active patch labels for the valve head.

(stem is excluded)

Definition at line 206 of file engineValve.C.

void writeDict ( Ostream &  os  )  const

Write dictionary.

Definition at line 229 of file engineValve.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd