71 return theta/(6*rpm_.value());
77 return t*(6*rpm_.value());
Macros for easy insertion into run-time selection tables.
A list of keyword definitions, which are a keyword followed by any number of values (e....
A userTime based on engine crank-angle degrees.
virtual scalar timeToUserTime(const scalar t) const
Return the time t in crank-angle.
virtual scalar userTimeToTime(const scalar theta) const
Return the theta crank-angle is s.
virtual ~engine()
Destructor.
virtual bool read(const dictionary &controlDict)
Read the controlDict and set all the parameters.
const dimensionedScalar & rpm() const
Return the RPM.
engine(const dictionary &controlDict)
Construct from controlDict.
virtual word unit() const
Return real-time unit (s)
A class for handling words, derived from string.
addToRunTimeSelectionTable(userTime, engine, dictionary)
defineTypeNameAndDebug(engine, 0)
const dimensionSet dimless
const dimensionSet dimTime
runTime controlDict().lookup("adjustTimeStep") >> adjustTimeStep