multiValveEngine::pistonObject Class Reference
Inheritance diagram for multiValveEngine::pistonObject:
Collaboration diagram for multiValveEngine::pistonObject:

Public Member Functions

 pistonObject (const word &name, const multiValveEngine &engine, const dictionary &dict)
 Construct from dictionary. More...
 
scalar position (const scalar theta) const
 Return the piston position for the given CA theta. More...
 
scalar position () const
 Return the current piston position. More...
 
scalar displacement () const
 Return piston displacement for current time-step. More...
 
scalar speed () const
 Return piston position for current time-step. More...
 
scalar clearance () const
 Return clearance estimate. More...
 
void updatePoints (pointField &)
 update points due to piston motion More...
 
virtual void mapMesh (const polyMeshMap &)
 Update from another mesh using the given map. More...
 
- Public Member Functions inherited from multiValveEngine::movingObject
 movingObject (const word &name, const multiValveEngine &engine, const dictionary &dict)
 Construct from dictionary. More...
 
virtual ~movingObject ()
 Destructor. More...
 

Static Public Attributes

static word pistonBowlName
 Name of the piston bowl pointZone. More...
 

Additional Inherited Members

- Public Attributes inherited from multiValveEngine::movingObject
const word name
 Name of the object. More...
 
const vector axis
 Axis. More...
 
const labelHashSetpatchSet
 Object patchSet. More...
 
- Protected Member Functions inherited from multiValveEngine::movingObject
void calcScale (const pointMesh &pMesh, const scalarField &pDistMoving, const scalarField &pDistStatic, scalar dMoving, scalar dMax, scalar dStatic)
 Scale the mesh point deformation with distance functions. More...
 
void transformPoints (pointField &newPoints, const vector &translationVector)
 
void createStaticPatchSet ()
 Generate staticPatchSet_ based on patch entries. More...
 
void initPatchSets ()
 Patch-set construction. More...
 
labelHashSet movingPointZones () const
 
labelHashSet staticPointZones () const
 
- Protected Attributes inherited from multiValveEngine::movingObject
dictionary dict_
 Coefficients dictionary. More...
 
const multiValveEnginemeshMover_
 Reference to engine mesh mover. More...
 
autoPtr< Function1< scalar > > motion_
 Piston motion function. More...
 
labelHashSet patchSet_
 Object patchSet. More...
 
labelHashSet staticPatchSet_
 Patches which must not deform during mesh motion. More...
 
scalar maxMotionDistance_
 Distance from object beyond which the mesh does not deform. More...
 
scalar movingFrozenLayerThickness_
 Distance from object within mesh nodes move. More...
 
scalar staticFrozenLayerThickness_
 Distance from static wall patch at domain perimeter. More...
 
wordReList movingPointZones_
 
wordReList frozenPointZones_
 
labelList pointIDs_
 Points to move when cell zone is supplied. More...
 
pointScalarField scale_
 Interpolation scale (1 at moving patches, 0 at far-field) More...
 
Switch cosine_
 Switch to use cosine-based scaling. More...
 
const scalar travelInterval_
 Update the scale_ field when the travel exceeds travelInterval. More...
 
label executionCount_
 Count of the scale_ field updates. More...
 
scalar position0_
 Position at last scale update. More...
 

Detailed Description

Definition at line 381 of file multiValveEngine.H.

Constructor & Destructor Documentation

◆ pistonObject()

pistonObject ( const word name,
const multiValveEngine engine,
const dictionary dict 
)

Construct from dictionary.

Definition at line 94 of file piston.C.

Member Function Documentation

◆ position() [1/2]

Foam::scalar position ( const scalar  theta) const

Return the piston position for the given CA theta.

Definition at line 109 of file piston.C.

Referenced by multiValveEngineState::write().

Here is the caller graph for this function:

◆ position() [2/2]

Foam::scalar position ( ) const

Return the current piston position.

Definition at line 119 of file piston.C.

◆ displacement()

Foam::scalar displacement ( ) const

Return piston displacement for current time-step.

Definition at line 126 of file piston.C.

Referenced by multiValveEngineState::write().

Here is the caller graph for this function:

◆ speed()

Foam::scalar speed ( ) const

Return piston position for current time-step.

Definition at line 134 of file piston.C.

Referenced by multiValveEngineState::write().

Here is the caller graph for this function:

◆ clearance()

Foam::scalar clearance ( ) const

Return clearance estimate.

Definition at line 141 of file piston.C.

References Foam::mag().

Referenced by multiValveEngineState::write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updatePoints()

void updatePoints ( pointField newPoints)

update points due to piston motion

Definition at line 157 of file piston.C.

References Foam::endl(), Foam::Info, Foam::mag(), DemandDrivenMeshObject< polyMesh, RepatchableMeshObject, pointMesh >::New(), points, and Foam::transformPoints().

Here is the call graph for this function:

◆ mapMesh()

void mapMesh ( const polyMeshMap map)
virtual

Update from another mesh using the given map.

Reimplemented from multiValveEngine::movingObject.

Definition at line 215 of file piston.C.

References multiValveEngine::movingObject::mapMesh().

Here is the call graph for this function:

Member Data Documentation

◆ pistonBowlName

Foam::word pistonBowlName
static

Name of the piston bowl pointZone.

Definition at line 408 of file multiValveEngine.H.


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