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 word & | name () const |
Return name. More... | |
const coordinateSystem & | cs () const |
Return coordinate system. More... | |
const graph & | liftProfile () const |
Return lift profile. More... | |
scalar | diameter () const |
Return valve diameter. More... | |
const polyPatchID & | bottomPatchID () const |
Return ID of bottom patch. More... | |
const polyPatchID & | poppetPatchID () const |
Return ID of poppet patch. More... | |
const polyPatchID & | stemPatchID () const |
Return ID of stem patch. More... | |
const polyPatchID & | curtainInCylinderPatchID () const |
Return ID of curtain in cylinder patch. More... | |
const polyPatchID & | curtainInPortPatchID () const |
Return ID of curtain in port patch. More... | |
const polyPatchID & | detachInCylinderPatchID () const |
Return ID of detach in cylinder patch. More... | |
const polyPatchID & | detachInPortPatchID () const |
Return ID of detach in port patch. More... | |
const labelList & | detachFaces () 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 polyMesh & | mesh_ |
Reference to engine mesh. More... | |
const engineTime & | engineDB_ |
Reference to engine database. More... | |
autoPtr< coordinateSystem > | csPtr_ |
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... | |
Definition at line 55 of file engineValve.H.
|
private |
Disallow default bitwise copy construct.
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.
|
private |
Disallow default bitwise assignment.
|
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_.
|
inline |
|
inline |
Return coordinate system.
Definition at line 197 of file engineValve.H.
References engineValve::csPtr_.
|
inline |
Return lift profile.
Definition at line 203 of file engineValve.H.
References engineValve::liftProfile_.
|
inline |
Return valve diameter.
Definition at line 209 of file engineValve.H.
References engineValve::diameter_.
|
inline |
Return ID of bottom patch.
Definition at line 218 of file engineValve.H.
References engineValve::bottomPatch_.
|
inline |
Return ID of poppet patch.
Definition at line 224 of file engineValve.H.
References engineValve::poppetPatch_.
|
inline |
Return ID of stem patch.
Definition at line 230 of file engineValve.H.
References engineValve::stemPatch_.
|
inline |
Return ID of curtain in cylinder patch.
Definition at line 236 of file engineValve.H.
References engineValve::curtainInCylinderPatch_.
|
inline |
Return ID of curtain in port patch.
Definition at line 242 of file engineValve.H.
References engineValve::curtainInPortPatch_.
|
inline |
Return ID of detach in cylinder patch.
Definition at line 249 of file engineValve.H.
References engineValve::detachInCylinderPatch_.
|
inline |
Return ID of detach in port patch.
Definition at line 255 of file engineValve.H.
References engineValve::detachInPortPatch_.
|
inline |
Return face labels of detach curtain.
Definition at line 261 of file engineValve.H.
References engineValve::detachFaces_.
|
inline |
Definition at line 269 of file engineValve.H.
References engineValve::minTopLayer_.
|
inline |
Definition at line 274 of file engineValve.H.
References engineValve::maxTopLayer_.
|
inline |
Definition at line 279 of file engineValve.H.
References engineValve::minBottomLayer_.
|
inline |
Definition at line 284 of file engineValve.H.
References engineValve::maxBottomLayer_.
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::setSize().
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.
|
private |
|
private |
Reference to engine mesh.
Definition at line 63 of file engineValve.H.
|
private |
Reference to engine database.
Definition at line 66 of file engineValve.H.
|
private |
|
private |
Valve bottom patch.
Definition at line 75 of file engineValve.H.
Referenced by engineValve::bottomPatchID().
|
private |
Valve poppet patch.
Definition at line 78 of file engineValve.H.
Referenced by engineValve::poppetPatchID().
|
private |
Valve stem patch.
Definition at line 81 of file engineValve.H.
Referenced by engineValve::stemPatchID().
|
private |
Valve curtain manifold patch.
Definition at line 84 of file engineValve.H.
Referenced by engineValve::curtainInPortPatchID().
|
private |
Valve curtain cylinder patch.
Definition at line 87 of file engineValve.H.
Referenced by engineValve::curtainInCylinderPatchID().
|
private |
Valve detach in cylinder patch.
Definition at line 90 of file engineValve.H.
Referenced by engineValve::detachInCylinderPatchID().
|
private |
Valve detach in port patch.
Definition at line 93 of file engineValve.H.
Referenced by engineValve::detachInPortPatchID().
|
private |
Faces to detach.
Definition at line 96 of file engineValve.H.
Referenced by engineValve::detachFaces().
|
private |
Valve lift profile.
Definition at line 102 of file engineValve.H.
Referenced by engineValve::liftProfile().
|
private |
Lift curve start angle.
Definition at line 105 of file engineValve.H.
Referenced by engineValve::adjustCrankAngle().
|
private |
Lift curve end angle.
Definition at line 108 of file engineValve.H.
Referenced by engineValve::adjustCrankAngle().
|
private |
Minimum valve lift. On this lift the valve is considered closed.
Definition at line 111 of file engineValve.H.
|
private |
Min top layer thickness.
Definition at line 117 of file engineValve.H.
Referenced by engineValve::minTopLayer().
|
private |
Max top layer thickness.
Definition at line 120 of file engineValve.H.
Referenced by engineValve::maxTopLayer().
|
private |
Min bottom layer thickness.
Definition at line 123 of file engineValve.H.
Referenced by engineValve::minBottomLayer().
|
private |
Max bottom layer thickness.
Definition at line 126 of file engineValve.H.
Referenced by engineValve::maxBottomLayer().
|
private |
Valve diameter.
Definition at line 130 of file engineValve.H.
Referenced by engineValve::diameter().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.