96 void timeAdjustment();
108 const fileName& systemName =
"system",
109 const fileName& constantName =
"constant",
150 return conRodLength_;
173 scalar
theta()
const;
A class for handling file names.
const dimensionedScalar & stroke() const
Return the engines stroke.
virtual bool read()
Read the controlDict and set all the parameters.
virtual void readDict()
Read the control dictionary and set the write controls etc.
const dimensionedScalar & bore() const
Return the engines bore.
dimensionedScalar pistonPosition() const
Return current piston position.
virtual scalar userTimeToTime(const scalar theta) const
Convert the user-time (CA deg) to real-time (s).
Manage time in terms of engine RPM and crank-angle.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const IOdictionary & engineDict() const
Return the engine geometry dictionary.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
scalar theta() const
Return current crank-angle.
virtual ~engineTime()
Destructor.
A class for handling words, derived from string.
const fileName & caseName() const
Return case name.
const word dictName("particleTrackDict")
const dimensionedScalar & conRodLength() const
Return the engines connecting-rod length.
scalar degToTime(const scalar theta) const
Convert degrees to seconds (for given engine speed in RPM)
const dimensionedScalar & rpm() const
Return the engines current operating RPM.
const word & name() const
Return const reference to name.
scalar thetaRevolution() const
Return current crank-angle translated to a single revolution.
const dimensionedScalar & clearance() const
Return the engines clearance-gap.
dimensionedScalar pistonSpeed() const
Return piston speed for current time step.
scalar deltaTheta() const
Return crank-angle increment.
virtual scalar timeToUserTime(const scalar t) const
Convert the real-time (s) into user-time (CA deg)
scalar timeToDeg(const scalar t) const
Convert seconds to degrees (for given engine speed in RPM)
const fileName & rootPath() const
Return root path.
dimensionedScalar pistonDisplacement() const
Return piston displacement for current time step.