1.7. Combustion engine cruise control#
1.7.1. Question:#
Simulate the time response of the combustion engine cruise control model equations descibed below.
1.7.2. Mathematical model:#
To develop a mathematical model we start with a force balance for the car body. Let \(\nu\) be the speed of the car, m the total mass (including passengers), F the force generated by the contact of the wheels with the road, and \(F_d\) the disturbance force due to gravity, friction and aerodynamic drag.
The equation of motion of the car is simply
The force F is generated by the engine, whose torque is proportional to the rate of fuel injection, which is itself proportional to a control signal \(0\leq u\leq 1\) that controls the throttle position. The torque also depends on engine speed \(\omega\).
A simple representation of the torque at full throttle is given by the torque curve
where the maximum torque \(T_m\) is obtained at engine speed \(\omega_m\).
Let n be the gear ratio and r the wheel radius. The engine speed is related to the velocity through the expression
and the driving force can be written as
Typical values of \(\alpha_n\) for gears 1 through 5 are \(\alpha_1\) = 40, \(\alpha_2\) = 25, \(\alpha_3\) = 16, \(\alpha_4\) = 12 and \(\alpha_5\) = 10. The inverse of \(\alpha_n\) has a physical interpretation as the effective wheel radius. The figure below shows the torque as a function of vehicle speed.
The disturbance force \(F_d\) has three major components: \(F_g\), the forces due to gravity; \(F_r\), the forces due to rolling friction; and \(F_a\), the aerodynamic drag:
Letting the slope of the road be \(\theta\), gravity gives the force \(F_g = mg\sin\theta\), where g = 9.8 \(\frac{m}{s^2}\) is the gravitational constant. A simple model of rolling friction is
where \(C_r\) is the coefficient of rolling friction and \(sgn(\nu)\) is the sign of \(\nu\) or zero if \(\nu\) = 0.
Finally, the aerodynamic drag is proportional to the square of the speed:
where \(\rho\) is the density of air, \(C_d\) is the shape-dependent aerodynamic drag coefficient and A is the frontal area of the car.
The overall differential equation model then becomes
Python based simulation methods: