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
| Name | Domain | Direction |
|---|---|---|
throttle | signal | in |
shaft | rotational |
Parameters
| Name | Unit | Default | Range | Description |
|---|---|---|---|---|
Tp | N.m | 200 | 0 to ∞ | Peak full-load torque |
wp | rad/s | 400 | 0.000001 to ∞ | Speed of peak torque |
b | N.m.s/rad | 0.02 | 0 to ∞ | Friction torque per unit speed |
Variables
| Name | Unit | Description |
|---|---|---|
w | rad/s | Engine speed |
Tfull | N.m | Full-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)