#include <engineValve.H>
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. | |
| ~engineValve ()=default | |
| Destructor. | |
| 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 &os) const |
| Write dictionary. | |
Definition at line 53 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 62 of file engineValve.C.
References detachFaces(), diameter(), liftProfile(), Foam::max(), maxBottomLayer(), maxTopLayer(), mesh, Foam::min(), minBottomLayer(), minTopLayer(), name(), Foam::refCast(), and x.

| engineValve | ( | const word & | name, |
| const polyMesh & | mesh, | ||
| const dictionary & | dict ) |
Construct from dictionary.
Definition at line 108 of file engineValve.C.
References dict, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, Foam::max(), mesh, Foam::min(), name(), Foam::New(), Foam::refCast(), and x.

|
default |
Destructor.
|
inline |
Return name.
Definition at line 242 of file engineValve.H.
Referenced by engineValve(), and engineValve().

|
inline |
Return coordinate system.
Definition at line 250 of file engineValve.H.
|
inline |
Return lift profile.
Definition at line 258 of file engineValve.H.
Referenced by engineValve().

|
inline |
Return valve diameter.
Definition at line 266 of file engineValve.H.
Referenced by engineValve().

|
inline |
Return ID of bottom patch.
Definition at line 277 of file engineValve.H.
|
inline |
Return ID of poppet patch.
Definition at line 285 of file engineValve.H.
|
inline |
Return ID of stem patch.
Definition at line 293 of file engineValve.H.
|
inline |
Return ID of curtain in cylinder patch.
Definition at line 301 of file engineValve.H.
|
inline |
Return ID of curtain in port patch.
Definition at line 309 of file engineValve.H.
|
inline |
Return ID of detach in cylinder patch.
Definition at line 318 of file engineValve.H.
|
inline |
Return ID of detach in port patch.
Definition at line 326 of file engineValve.H.
|
inline |
Return face labels of detach curtain.
Definition at line 334 of file engineValve.H.
Referenced by engineValve().

|
inline |
Definition at line 342 of file engineValve.H.
Referenced by engineValve().

|
inline |
Definition at line 347 of file engineValve.H.
Referenced by engineValve().

|
inline |
Definition at line 352 of file engineValve.H.
Referenced by engineValve().

|
inline |
Definition at line 357 of file engineValve.H.
Referenced by engineValve().

| Foam::scalar lift | ( | const scalar | theta | ) | const |
Return valve lift given crank angle in degrees.
Definition at line 172 of file engineValve.C.
References Foam::interpolateXY().
Referenced by curLift(), curVelocity(), and isOpen().


| bool isOpen | ( | ) | const |
Is the valve open?
Definition at line 183 of file engineValve.C.
References lift().

| Foam::scalar curLift | ( | ) | const |
Return current lift.
Definition at line 189 of file engineValve.C.
References lift(), and Foam::max().
Referenced by curVelocity().


| Foam::scalar curVelocity | ( | ) | const |
Return valve velocity for current time-step.
Definition at line 199 of file engineValve.C.
References curLift(), lift(), and Foam::max().

| Foam::labelList movingPatchIDs | ( | ) | const |
Return list of active patch labels for the valve head.
(stem is excluded)
Definition at line 213 of file engineValve.C.
References List< T >::setSize().

| void writeDict | ( | Ostream & | os | ) | const |
Write dictionary.
Definition at line 236 of file engineValve.C.
References token::BEGIN_LIST, token::END_LIST, name, Foam::nl, and os().
