This example shows a 2.0-liter, four-cylinder, naturally aspirated spark-ignition engine that computes crank-angle-resolved torque. A starter motor starts the engine, which is also connected to a dynamometer, before combustion takes over the engine operation. The engine torque can be controlled by varying throttle, air-fuel ratio, and spark timing.
The plot below shows the engine speed. First the starter motor starts rotating the engine crank, and then combustion starts at 2 seconds. During simulation, air-fuel ratio, throttle and brake torque are varied.