Basic mesh motion specifically for engines. More...
Public Member Functions | |
TypeName ("engine") | |
Runtime type information. More... | |
engine (fvMesh &mesh) | |
Construct from fvMesh. More... | |
engine (const engine &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~engine () |
Destructor. More... | |
const dimensionedScalar & | rpm () const |
Return the engines current operating RPM. More... | |
const dimensionedScalar & | conRodLength () const |
Return the engines connecting-rod length. More... | |
const dimensionedScalar & | bore () const |
Return the engines bore. More... | |
const dimensionedScalar & | stroke () const |
Return the engines stroke. More... | |
const dimensionedScalar & | clearance () const |
Return the engines clearance-gap. More... | |
virtual scalar | theta () const |
Return current crank-angle. More... | |
virtual scalar | deltaTheta () const |
Return crank-angle increment. More... | |
scalar | pistonPosition (const scalar theta) const |
Calculate the piston position from the engine geometry. More... | |
dimensionedScalar | pistonPosition () const |
Return current piston position. More... | |
dimensionedScalar | pistonDisplacement () const |
Return piston displacement for current time step. More... | |
dimensionedScalar | pistonSpeed () const |
Return piston speed for current time step. More... | |
void | operator= (const engine &)=delete |
Disallow default bitwise assignment. More... | |
![]() | |
TypeName ("fvMeshMover") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, fvMeshMover, fvMesh,(fvMesh &mesh),(mesh)) | |
fvMeshMover (fvMesh &) | |
Construct from fvMesh. More... | |
fvMeshMover (const fvMeshMover &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~fvMeshMover () |
Destructor. More... | |
fvMesh & | mesh () |
Return the fvMesh. More... | |
const fvMesh & | mesh () const |
Return the fvMesh. More... | |
const dictionary & | dict () const |
Return the dynamicMeshDict/mover dict. More... | |
virtual bool | dynamic () const |
Is mesh dynamic, i.e. might it change? More... | |
virtual bool | update ()=0 |
Update the mesh for both mesh motion and topology change. More... | |
virtual void | topoChange (const polyTopoChangeMap &)=0 |
Update local data for topology changes. More... | |
virtual void | mapMesh (const polyMeshMap &)=0 |
Update from another mesh using the given map. More... | |
virtual void | distribute (const polyDistributionMap &)=0 |
Update corresponding to the given distribution map. More... | |
virtual bool | write (const bool write=true) const |
Write the mover state. More... | |
void | operator= (const fvMeshMover &)=delete |
Disallow default bitwise assignment. More... | |
Protected Attributes | |
dictionary | meshCoeffs_ |
dimensionedScalar | rpm_ |
RPM. More... | |
dimensionedScalar | conRodLength_ |
Optional engine geometry parameters. More... | |
dimensionedScalar | bore_ |
dimensionedScalar | stroke_ |
dimensionedScalar | clearance_ |
label | pistonIndex_ |
label | linerIndex_ |
label | cylinderHeadIndex_ |
dimensionedScalar | deckHeight_ |
dimensionedScalar | pistonPosition_ |
Additional Inherited Members | |
![]() | |
static autoPtr< fvMeshMover > | New (fvMesh &) |
Select, construct and return the fvMeshMover. More... | |
Basic mesh motion specifically for engines.
Definition at line 50 of file fvMeshMoversEngine.H.
Construct from fvMesh.
Definition at line 43 of file fvMeshMoversEngine.C.
References fvMesh::boundary(), engine::cylinderHeadIndex_, engine::deckHeight_, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, engine::linerIndex_, Foam::max(), Foam::min(), Foam::nl, engine::pistonIndex_, engine::pistonPosition_, Foam::reduce(), UPtrList< T >::size(), and dimensioned< Type >::value().
|
virtual |
Destructor.
Definition at line 146 of file fvMeshMoversEngine.C.
TypeName | ( | "engine" | ) |
Runtime type information.
|
inline |
Return the engines current operating RPM.
Definition at line 99 of file fvMeshMoversEngine.H.
References engine::rpm_.
|
inline |
Return the engines connecting-rod length.
Definition at line 105 of file fvMeshMoversEngine.H.
References engine::conRodLength_.
|
inline |
Return the engines bore.
Definition at line 111 of file fvMeshMoversEngine.H.
References engine::bore_.
|
inline |
Return the engines stroke.
Definition at line 117 of file fvMeshMoversEngine.H.
References engine::stroke_.
|
inline |
Return the engines clearance-gap.
Definition at line 123 of file fvMeshMoversEngine.H.
References engine::clearance_, engine::deltaTheta(), engine::operator=(), engine::pistonDisplacement(), engine::pistonPosition(), engine::pistonSpeed(), and engine::theta().
|
virtual |
Return current crank-angle.
Definition at line 152 of file fvMeshMoversEngine.C.
References fvMeshMover::mesh(), fvMesh::time(), and Time::userTimeValue().
Referenced by engine::clearance(), engine::pistonDisplacement(), and engine::pistonPosition().
|
virtual |
Return crank-angle increment.
Definition at line 158 of file fvMeshMoversEngine.C.
References fvMeshMover::mesh(), engine::pistonPosition(), fvMesh::time(), and Time::timeToUserTime().
Referenced by engine::clearance(), and engine::pistonDisplacement().
Foam::scalar pistonPosition | ( | const scalar | theta | ) | const |
Calculate the piston position from the engine geometry.
and given crank angle.
Definition at line 165 of file fvMeshMoversEngine.C.
References engine::clearance_, engine::conRodLength_, Foam::cos(), Foam::degToRad(), Foam::sin(), Foam::sqr(), Foam::sqrt(), engine::stroke_, and dimensioned< Type >::value().
Foam::dimensionedScalar pistonPosition | ( | ) | const |
Return current piston position.
Definition at line 186 of file fvMeshMoversEngine.C.
References Foam::dimLength, and engine::theta().
Referenced by engine::clearance(), engine::deltaTheta(), and engine::pistonDisplacement().
Foam::dimensionedScalar pistonDisplacement | ( | ) | const |
Return piston displacement for current time step.
Definition at line 197 of file fvMeshMoversEngine.C.
References engine::deltaTheta(), Foam::dimLength, engine::pistonPosition(), and engine::theta().
Referenced by engine::clearance(), engine::pistonSpeed(), and layeredEngine::update().
Foam::dimensionedScalar pistonSpeed | ( | ) | const |
Return piston speed for current time step.
Definition at line 208 of file fvMeshMoversEngine.C.
References Foam::dimVelocity, fvMeshMover::mesh(), and engine::pistonDisplacement().
Referenced by engine::clearance(), and layeredEngine::update().
|
delete |
Disallow default bitwise assignment.
Referenced by engine::clearance().
|
protected |
Definition at line 58 of file fvMeshMoversEngine.H.
|
protected |
|
protected |
Optional engine geometry parameters.
Definition at line 64 of file fvMeshMoversEngine.H.
Referenced by engine::conRodLength(), and engine::pistonPosition().
|
protected |
Definition at line 65 of file fvMeshMoversEngine.H.
Referenced by engine::bore().
|
protected |
Definition at line 66 of file fvMeshMoversEngine.H.
Referenced by engine::pistonPosition(), and engine::stroke().
|
protected |
Definition at line 67 of file fvMeshMoversEngine.H.
Referenced by engine::clearance(), and engine::pistonPosition().
|
protected |
Definition at line 69 of file fvMeshMoversEngine.H.
Referenced by engine::engine().
|
protected |
Definition at line 70 of file fvMeshMoversEngine.H.
Referenced by engine::engine().
|
protected |
Definition at line 71 of file fvMeshMoversEngine.H.
Referenced by engine::engine().
|
protected |
Definition at line 73 of file fvMeshMoversEngine.H.
Referenced by engine::engine(), and layeredEngine::update().
|
protected |
Definition at line 74 of file fvMeshMoversEngine.H.
Referenced by engine::engine(), and layeredEngine::update().