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 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... | |
void | operator= (const engineValve &)=delete |
Disallow default bitwise assignment. More... | |
Definition at line 55 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 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.
|
delete |
Disallow default bitwise copy construction.
|
inline |
Return name.
Definition at line 182 of file engineValve.H.
Referenced by engineValve::writeDict().
|
inline |
Return coordinate system.
Definition at line 188 of file engineValve.H.
Referenced by engineValve::writeDict().
|
inline |
Return lift profile.
Definition at line 194 of file engineValve.H.
|
inline |
Return valve diameter.
Definition at line 200 of file engineValve.H.
|
inline |
Return ID of bottom patch.
Definition at line 209 of file engineValve.H.
|
inline |
Return ID of poppet patch.
Definition at line 215 of file engineValve.H.
|
inline |
Return ID of stem patch.
Definition at line 221 of file engineValve.H.
|
inline |
Return ID of curtain in cylinder patch.
Definition at line 227 of file engineValve.H.
|
inline |
Return ID of curtain in port patch.
Definition at line 233 of file engineValve.H.
|
inline |
Return ID of detach in cylinder patch.
Definition at line 240 of file engineValve.H.
|
inline |
Return ID of detach in port patch.
Definition at line 246 of file engineValve.H.
|
inline |
Return face labels of detach curtain.
Definition at line 252 of file engineValve.H.
|
inline |
Definition at line 260 of file engineValve.H.
|
inline |
Definition at line 265 of file engineValve.H.
|
inline |
Definition at line 270 of file engineValve.H.
|
inline |
Definition at line 275 of file engineValve.H.
References engineValve::curLift(), engineValve::curVelocity(), engineValve::isOpen(), engineValve::lift(), engineValve::movingPatchIDs(), engineValve::operator=(), and engineValve::writeDict().
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().
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().
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().
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().
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().
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().
|
delete |
Disallow default bitwise assignment.
Referenced by engineValve::maxBottomLayer().