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