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