66 return theta/
radToDeg(omega_.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....
Unit conversion structure. Contains the associated dimensions and the multiplier with which to conver...
A userTime based on engine crank-angle degrees.
virtual scalar timeToUserTime(const scalar t) const
Return the time t in crank-angle.
virtual word unitName() const
Return engine-time unit name (CAD)
virtual scalar userTimeToTime(const scalar theta) const
Return the theta crank-angle is s.
virtual ~engine()
Destructor.
virtual const unitConversion & units() const
Return the engine-time unit conversion.
virtual bool read(const dictionary &controlDict)
Read the controlDict and set all the parameters.
engine(const dictionary &controlDict)
Construct from controlDict.
A class for handling words, derived from string.
addToRunTimeSelectionTable(userTime, engine, dictionary)
defineTypeNameAndDebug(engine, 0)
scalar radToDeg(const scalar rad)
Convert radians to degrees.
const HashTable< unitConversion > & units()
Get the table of unit conversions.
const dimensionSet dimTime
void addUnits(const word &name, const unitConversion &units)
Add a unit conversion.
runTime controlDict().lookup("adjustTimeStep") >> adjustTimeStep