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

(1.12)#\[\begin{equation} m \frac{d \nu}{dt} = F -F_d \label{ex:combustion} \end{equation}\]

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

(1.13)#\[\begin{equation} T(\omega) = T_m \left (1- \beta \left ( \frac{\omega}{\omega_n} -1 \right )^2 \right ), \nonumber \end{equation}\]

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

(1.14)#\[\begin{equation} \omega = \frac{n}{r} \nu = \alpha_n \nu, \nonumber \end{equation}\]

and the driving force can be written as

(1.15)#\[\begin{equation} F = \frac{n u}{r} T(\omega) = \alpha_n u T(\alpha_n,\nu) \label{ex:comb_force} \end{equation}\]

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.

../../../_images/Cruise-gearcurves.png

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:

(1.16)#\[\begin{equation} F_d=F_g+F_r+F_a. \label{ex:comb_disurbance_force} \end{equation}\]

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

(1.17)#\[\begin{equation} F_r = m g C_r sgn(\nu) \nonumber \end{equation}\]

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:

(1.18)#\[\begin{equation} F_a = \frac{1}{2} \rho C_d A \nu^2 , \end{equation}\]

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

(1.19)#\[\begin{equation} m \frac{d \nu}{dt} = \frac{n u}{r} T_m \left (1- \beta \left ( \frac{\omega}{\omega_n} -1 \right )^2 \right ) - mg\sin\theta - m g C_r sgn(\nu) -\frac{1}{2} \rho C_d A \nu^2 \end{equation}\]

Python based simulation methods: