Engine (throttle torque)

automotive.engine

Combustion engine as a torque source. The full-load torque is a parabola in speed that peaks at Tp at speed wp and falls to zero at standstill and at twice wp. The throttle input (0 to 1) scales it, and a friction term b w is taken off.

Ports

NameDomainDirection
throttlesignalin
shaftrotational

Parameters

NameUnitDefaultRangeDescription
TpN.m2000 to ∞Peak full-load torque
wprad/s4000.000001 to ∞Speed of peak torque
bN.m.s/rad0.020 to ∞Friction torque per unit speed

Variables

NameUnitDescription
wrad/sEngine speed
TfullN.mFull-load torque at the present speed

Equations

w = der(shaft.phi)
Tfull = max(Tp * (1 - ((w - wp) / wp) ^ 2), 0)
shaft.tau = -(throttle * Tfull - b * w)