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 ()=default | |
Destructor. 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 &os) const |
Write dictionary. More... | |
Definition at line 57 of file engineValve.H.
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 70 of file engineValve.C.
engineValve | ( | const word & | name, |
const polyMesh & | mesh, | ||
const dictionary & | dict | ||
) |
Construct from dictionary.
Definition at line 116 of file engineValve.C.
|
default |
Destructor.
|
inline |
Return name.
Definition at line 190 of file engineValve.H.
|
inline |
Return coordinate system.
Definition at line 196 of file engineValve.H.
|
inline |
Return lift profile.
Definition at line 202 of file engineValve.H.
|
inline |
Return valve diameter.
Definition at line 208 of file engineValve.H.
|
inline |
Return ID of bottom patch.
Definition at line 217 of file engineValve.H.
|
inline |
Return ID of poppet patch.
Definition at line 223 of file engineValve.H.
|
inline |
Return ID of stem patch.
Definition at line 229 of file engineValve.H.
|
inline |
Return ID of curtain in cylinder patch.
Definition at line 235 of file engineValve.H.
|
inline |
Return ID of curtain in port patch.
Definition at line 241 of file engineValve.H.
|
inline |
Return ID of detach in cylinder patch.
Definition at line 248 of file engineValve.H.
|
inline |
Return ID of detach in port patch.
Definition at line 254 of file engineValve.H.
|
inline |
Return face labels of detach curtain.
Definition at line 260 of file engineValve.H.
|
inline |
Definition at line 268 of file engineValve.H.
|
inline |
Definition at line 273 of file engineValve.H.
|
inline |
Definition at line 278 of file engineValve.H.
|
inline |
Definition at line 283 of file engineValve.H.
Foam::scalar lift | ( | const scalar | theta | ) | const |
Return valve lift given crank angle in degrees.
Definition at line 179 of file engineValve.C.
References Foam::interpolateXY().
bool isOpen | ( | ) | const |
Is the valve open?
Definition at line 190 of file engineValve.C.
Foam::scalar curLift | ( | ) | const |
Return current lift.
Definition at line 196 of file engineValve.C.
References Foam::max().
Foam::scalar curVelocity | ( | ) | const |
Return valve velocity for current time-step.
Definition at line 206 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 220 of file engineValve.C.
References List< T >::setSize().
void writeDict | ( | Ostream & | os | ) | const |
Write dictionary.
Definition at line 243 of file engineValve.C.
References token::BEGIN_BLOCK, token::END_BLOCK, token::END_STATEMENT, Foam::endl(), OFstream::name(), Foam::name(), Foam::nl, and os().