FreeFOAM The Cross-Platform CFD Toolkit
engineValve Class Reference

Foam::engineValve. More...

#include <engine/engineValve.H>


Detailed Description

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 wordname () const
 Return name.
const coordinateSystemcs () const
 Return coordinate system.
const graphliftProfile () const
 Return lift profile.
scalar diameter () const
 Return valve diameter.
const polyPatchIDbottomPatchID () const
 Return ID of bottom patch.
const polyPatchIDpoppetPatchID () const
 Return ID of poppet patch.
const polyPatchIDstemPatchID () const
 Return ID of stem patch.
const polyPatchIDcurtainInCylinderPatchID () const
 Return ID of curtain in cylinder patch.
const polyPatchIDcurtainInPortPatchID () const
 Return ID of curtain in port patch.
const polyPatchIDdetachInCylinderPatchID () const
 Return ID of detach in cylinder patch.
const polyPatchIDdetachInPortPatchID () const
 Return ID of detach in port patch.
const labelListdetachFaces () 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.

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

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

Construct from dictionary.

Definition at line 115 of file engineValve.C.


Member Function Documentation

const word& name ( ) const
inline

Return name.

Definition at line 192 of file engineValve.H.

const coordinateSystem& cs ( ) const
inline

Return coordinate system.

Definition at line 198 of file engineValve.H.

const graph& liftProfile ( ) const
inline

Return lift profile.

Definition at line 204 of file engineValve.H.

scalar diameter ( ) const
inline

Return valve diameter.

Definition at line 210 of file engineValve.H.

const polyPatchID& bottomPatchID ( ) const
inline

Return ID of bottom patch.

Definition at line 219 of file engineValve.H.

const polyPatchID& poppetPatchID ( ) const
inline

Return ID of poppet patch.

Definition at line 225 of file engineValve.H.

const polyPatchID& stemPatchID ( ) const
inline

Return ID of stem patch.

Definition at line 231 of file engineValve.H.

const polyPatchID& curtainInCylinderPatchID ( ) const
inline

Return ID of curtain in cylinder patch.

Definition at line 237 of file engineValve.H.

const polyPatchID& curtainInPortPatchID ( ) const
inline

Return ID of curtain in port patch.

Definition at line 243 of file engineValve.H.

const polyPatchID& detachInCylinderPatchID ( ) const
inline

Return ID of detach in cylinder patch.

Definition at line 250 of file engineValve.H.

const polyPatchID& detachInPortPatchID ( ) const
inline

Return ID of detach in port patch.

Definition at line 256 of file engineValve.H.

const labelList& detachFaces ( ) const
inline

Return face labels of detach curtain.

Definition at line 262 of file engineValve.H.

scalar minTopLayer ( ) const
inline

Definition at line 270 of file engineValve.H.

scalar maxTopLayer ( ) const
inline

Definition at line 275 of file engineValve.H.

scalar minBottomLayer ( ) const
inline

Definition at line 280 of file engineValve.H.

scalar maxBottomLayer ( ) const
inline

Definition at line 285 of file engineValve.H.

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().

bool isOpen ( ) const

Is the valve open?

Definition at line 184 of file engineValve.C.

Foam::scalar curLift ( ) const

Return current lift.

Definition at line 190 of file engineValve.C.

References Foam::max().

Foam::scalar curVelocity ( ) const

Return valve velocity for current time-step.

Definition at line 200 of file engineValve.C.

References Foam::max().

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< T >::setSize().

void writeDict ( Ostream os) const

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