31
MODELLING OF A VEHICLE SUSPENSION SYSTEM ÉPREUVE SYNTHÈSE DE PROGRAMME (ESP) Differential Equations 201-HTL-VA Probability and Statistics 201-HTH-05 by TADEUS TALMACI KAMILA YAHIAOUI Vanier College May 30, 2020 Abstract Dynamic systems involving springs, masses and dampers are commonly used in the automotive industry. The suspension sys- tem is an example of dynamic system that is essential to the proper functioning of any road vehicle. This article explains the physics and the numerical solvers necessary to model a re- alistic vehicle suspension system. A system of second order dif- ferential equations is derived from Newton’s Second Law, which is then converted into a system of four coupled ordinary dif- ferential equations in order to be solved using the Runge-Kutta 45 numerical approach. Poisson process randomises the intervals of time between jolts affecting the suspension and helps to re- alistically model the system rather than simply illustrating its ideal behavior. Finally, graphs of the Erlang distributed jolts and suspension system’s animations are computed using Python coding in Jupyter Notebook.

MODELLING OF A VEHICLE SUSPENSION SYSTEM

  • Upload
    others

  • View
    4

  • Download
    2

Embed Size (px)

Citation preview

Page 1: MODELLING OF A VEHICLE SUSPENSION SYSTEM

MODELLING OF A

VEHICLE SUSPENSION SYSTEM

ÉPREUVE SYNTHÈSE DE PROGRAMME (ESP)

Differential Equations 201-HTL-VAProbability and Statistics 201-HTH-05

by

TADEUS TALMACIKAMILA YAHIAOUI

Vanier CollegeMay 30, 2020

AbstractDynamic systems involving springs, masses and dampers are

commonly used in the automotive industry. The suspension sys-tem is an example of dynamic system that is essential to theproper functioning of any road vehicle. This article explainsthe physics and the numerical solvers necessary to model a re-alistic vehicle suspension system. A system of second order dif-ferential equations is derived from Newton’s Second Law, whichis then converted into a system of four coupled ordinary dif-ferential equations in order to be solved using the Runge-Kutta45 numerical approach. Poisson process randomises the intervalsof time between jolts affecting the suspension and helps to re-alistically model the system rather than simply illustrating itsideal behavior. Finally, graphs of the Erlang distributed joltsand suspension system’s animations are computed using Pythoncoding in Jupyter Notebook.

Page 2: MODELLING OF A VEHICLE SUSPENSION SYSTEM

1 IntroductionA suspension system is a very complex mechanism with multiple forces actingon it, such as: vibrations coming from the vehicle itself, vibrations comingfrom the roughness of the road, the down-force of the wind, the braking andthe acceleration process of the vehicle. However, in this article, only the es-sentials of such a system will be discussed, focusing mainly on modelling thebehavior of the suspension system in randomly potholed road conditions.

The suspension system is the only mechanism that separates the chas-sis of the vehicle from the wheels directly in contact with the road. Thisdynamic system plays an important role in the handling, the stability andthe comfort of the ride. Without an appropriate suspension system, drivingwould become a tiring and unpleasant experience.

The shock absorbers, the linkages and the springs work together to isolatethe body of the vehicle along with the passengers from shocks arising fromthe road, and to enables braking, driving and steering systems to operatecorrectly. Briefly, linkages link the suspension components to the wheels ofthe car and to the chassis, springs soften the vehicle by oscillating and damp-ening the shock absorbed from a bump or a pothole, and shock absorbers,in addition to absorbing the shock using the motion of a hydraulic pistonmoving in a cylinder filled with viscous oil, they also dampen the oscillationsof the springs after the impact.

There are three ways the suspension system operates: passively (thecheapest way; the most commonly used in the automotive world), semi-actively (more expensive; contains an integrated regulator to control thestiffness of the shock absorber by using a magnetorheological fluid ratherthan regular oil), and actively (the most expensive; contains an actuator, asensors and a central processing unit (CPU) that allows the suspension, bythe use of additional force, to adapt in advance to the bumpiness of the roadin front of the vehicle).

To realistically model this system, we begin by deriving and explainingthe differential equations representative of a quarter car suspension system.Then, the numerical solver used to solve the system of equations is discussed.Runge-Kutta 45 is the numerical solver used to approximate the solution tothis system because it is a more accurate solver than other similar methodsthat will be described in this article. Moreover, a random number genera-tor along with a Poisson process will randomise the time between each jolton the suspension system. The distance between Poisson events is expo-

1

Page 3: MODELLING OF A VEHICLE SUSPENSION SYSTEM

nentially distributed with parameter lambda for Poisson rate. The shocksthemselves will have Gamma shapes and will be plotted using Python lan-guage in Jupyter Notebook. Graphs of the displacement of the car’s chassiswill also be presented in addition to an animation of the suspension system ofa quarter car (wheel with tire and suspension components holding a quarterof the vehicle’s weight). Three different runs of the code, which is releasedat GitHub, will be included and analysed in the article with variation ofconstants.

2 Physics of the suspension system

2.1 Types of Suspension Systems

To begin with, there are two main types of suspension systems that can beinstalled on a vehicle: a dependent system or an independent system. Themain difference between these two types is that in the dependent system,a solid rod connects the wheels from opposite sides together, which makesthe forces acting on the wheels of one side of the vehicle depend on theforces acting on the wheels on the opposite side. If the right wheel hits abump, the left wheel will also be affected by the shock taken by the rightwheel. However, in an independent system, the shock on the right wheel willonly affect that same wheel and not the one on the opposite side as the twowheels are not rigidly linked together. They are said to be independent asthey both can move vertically with no effect on the parallel wheel. In sucha system, one might wonder how is the power transmitted through the driveshaft to wheels on opposite sides if no linkage is made between them. Thisis why engineers have designed drive shafts that are synchronised with thesuspension components and that are able to move vertically along with thesuspension while transmitting torque from the transmission to the wheelssimultaneously. Figure 1 illustrates well the difference between these twotypes of suspension.

For the purpose of this paper, we will use an independent system modelas all computations and explanations will be based on a quarter car suspen-sion model and will focus on the forces acting on a single wheel at a time.Obviously, we will assume that the weight of the car is equally distributedand that one wheel supports a quarter of the total car’s weight.

2

Page 4: MODELLING OF A VEHICLE SUSPENSION SYSTEM

Figure 1: Dependent and Independent Suspension Systems

Vehicle manufacturers use multiple suspension designs in their productsas one specific design fits better a certain model of vehicle for optimal drivingexperience. Within those suspension designs, one finds:

• The Macpherson Strut Suspension, the simplest one and the most com-monly used in urban vehicles in which the wheel and the chassis areconnected through a spring;

• The Leafspring Suspension, commonly used in heavier vehicles such astrucks and pick-ups, consists of long metal flexible bars that absorb theshocks;

• The Double Wishbone Suspension, made of two A-shaped arms thatlook like a bird’s wishbone, is mostly used on high performance sportscars;

• The Pushrod Suspension has a single spring in between the two wheelsand it is called a monoshock suspension (often used on motorcycles).

2.2 Quarter Car Diagram

From Figure 2, m2 represents the quarter of the total car’s mass (sprungmass) which lays on the suspension spring, with spring constant Ks, and onthe shock absorber which acts as a damper of the oscillations with damping

3

Page 5: MODELLING OF A VEHICLE SUSPENSION SYSTEM

constant b. The unsprung mass m1 consists of the weight of the wheel and ofthe suspension components themselves. Finally, the tire also acts as a springin this context, with spring constant K1, but the damping factor of the tireis not considered in this illustration. The tire is the object that separatesthe unsprung mass from the ground falsely illustrated as being straight andlinear, but it will not be considered as so in our computations. The verticalpositions of m1, m2 and the tire on the ground are x, y and u respectively.As the road is not perfectly linear, any fluctuations will result in changes inthe masses’ positions and velocities which will be denoted as x(t) and x′(t)for the unsprung mass, and as y(t) and y′(t) for the sprung mass.

Figure 2: Quarter Car Suspension Diagram

Whenever the wheel hits a hole, the spring elongates by (y − x) andthe tire does the same, by a length of (x − u), because the positive verticaldisplacement is assumed upwards in the illustration. As the spring elongates,the size of its deformation is directly proportional to the force applied on it.This concept is stated in Hooke’s Law with the following formula:

F = −kx

4

Page 6: MODELLING OF A VEHICLE SUSPENSION SYSTEM

In this formula, F represents the force, x stands for displacement, and k isthe spring constant. In this situation, the spring constant is negative becausethe force acts in the opposite direction of the displacement. The spring triesto resist the changes produced by the applied force as it always goes backto its equilibrium position. Moreover, just like k is related to x, the viscousdamping coefficient b is related to velocity x′. Why viscous? Because thedamper in this system is the shock absorber and this component is made ofa piston that moves up and down in a cylinder filled with a viscous fluid (oil)to create resistance. Therefore, the dampening effect is created by bringingto zero the velocity of the piston’s motion as fast as possible.

Hitting a hole on the road generates the spring’s deformation. As it doesso, it also brings down the sprung mass (the body of the vehicle) and due toits spring constant (Ks) and dampening coefficient (b), it tries to bring backup the unsprung mass m1 simultaneously. A very similar scenario occursbetween the tire and the unsprung mass m1. The free body diagram helpsto analyse the forces acting on each mass and component. Briefly, as we hitthe hole, Ks and b act as negative forces on m2 and as positive forces on m1.In addition, as K1 pulls m1 downwards, K1 acts as a negative force on m1.Consequently, m1 opposes to the force and acts as a positive force on thetire, trying to bring it back up (in the opposite direction). The forces actingin this system are purely applications of Newton’s Second Law from whichwe derive the system of two second-order differential equations.

2.3 Free Body Diagram

From the free body diagram (Figure 3), the forces acting on the two massesconsidered in this article are resumed as follows:

• a superposition of two downward forces act on the chassis of the vehicle(m2), which are −Ks(y − x) and −b(y′ − x′) (as explained previously,b is related to the velocity of the shock absorber motion);

• a superposition of two upward forces act on the unsprung mass (m1) (tooppose the other two downward forces on m2), along with a downwardforce −K1(x− u) caused by the tire forcing m1 down.

5

Page 7: MODELLING OF A VEHICLE SUSPENSION SYSTEM

Figure 3: Free Body Diagram

Obviously, an upward force of K1(x− u) is also applied on the tire andopposes the downward force on m1, but it is not illustrated on the diagram.

2.4 Derivation of DE’s

As stated by Newton’s Second Law,

Fnet = ma (1)

where m is the mass of an object and a is its acceleration. Fnet stands forthe sum of the forces acting on the system.Following Newton’s law, we get to this first equation of forces acting on m2:

m2y′′ = −Ks(y − x)− b(y′ − x′) (2)

which simplifies to:

m2y′′ +Ksy + by′ = Ksx+ bx′ (3)

Similarly, when combining the forces acting on m1:

m1x′′ = Ks(y − x) + b(y′ − x′)−K1(x− u) (4)

6

Page 8: MODELLING OF A VEHICLE SUSPENSION SYSTEM

which further simplifies to:

m1x′′ + (Ks +K1)x+ bx′ = Ksy + by′ +K1u (5)

we get that equations (3) and (5) are the two second-order differential equa-tions representative of the quarter car suspension system studied in this ar-ticle. Now lets turn this system of second-order ODEs into a system of fourcoupled first-order equations.Assume that:

y′ = v (6)

and that:x′ = w (7)

Then, by replacing the new variables in the equations (3) and (5), we have:

y′′ = v′ =Ksx

m2

+bx′

m2

− Ksy

m2

− by′

m2

(8)

v′ =Ks

m2

x+b

m2

w − Ks

m2

y − b

m2

v (9)

And,

x′′ = w′ =Ksy

m1

+by′

m1

+K1u

m1

− (Ks +K1)x

m1

− bx′

m1

(10)

w′ =Ks

m1

y +b

m1

v +K1

m1

u− (Ks +K1)

m1

x− b

m1

w (11)

In sum, our new system of ODEs is composed of the following four first-orderdifferential equations: eq.(6), eq.(7), eq.(9), eq.(11). This system of equationsis representative of the quarter car model suspension system explained above.

3 Numerical SolverIn the context of mathematically modelling a complex mechanical systemsuch as an automotive suspension system, the numerical approach is preferredover the analytical one, as it turns out to be very demanding and complex. Anumerical approach does not necessarily allow to find the exact solution of asystem of differential equations. It will rather give us an accurate and efficientapproximation of the solution and this, way faster than analytically. Multiplenumerical methods are available to solve more or less complex differential

7

Page 9: MODELLING OF A VEHICLE SUSPENSION SYSTEM

equations. Within those methods we find Euler’s Method, Improved Euler’sMethod, Midpoint Method, Runge-Kutta Method and a few others. Someare more accurate than others in estimating the real solution, but briefly, thelogic behind all these methods is to approximate the area under the curve ofa given function.

When one approximates an actual solution numerically, the initial step isto ease the computations executed by the computer. One way to do so is tosimplify complex derivatives into easily calculated differences. Consequently,Taylor’s series technique has a disadvantage over the Runge-Kutta methodsin approximating the solution. Taylor’s series require a derivative compu-tation at every step whereas the Runge-Kutta methods require no actualdifferentiation of equations of higher orders. While dealing with mechanicalsystems, to compute the solution using Taylor’s formula (12) becomes messyand complex after a few calculations. Here is the formula showing that themore accurate the approximation is, the more work needs to be done tocompute the higher order derivatives:

Taylor’s series formula: yt+h = yt + hy′t +h2

2y′′t +

h3

3!y′′′t + ...+

hn

n!y

(n)t (12)

3.1 Runge-Kutta Methods

The Runge-Kutta is a family of methods of different orders of accuracy thatare designed to approximate Taylor’s series by using linear combinations ofvalues of f(t, yt), equal to dy

dt, to approximate the function y(t) itself. With

the horizontal (t) and vertical (y) coordinates of a certain point (tn, yn), onecalculates f(t, yt) at different positions without having to derive the functionitself but through discrete steps in time. Therefore, Runge-Kutta are said tobe one-step methods and self-starting methods. Within these methods, onefinds the well-known Euler’s Method, the Improved Euler’s Method and theRunge-Kutta 4 Method. Euler’s Method and Improved Euler’s Method arevery simple and efficient to be used both numerically or analytically, mostlyfor less complex first order systems. Yet, these methods are first and secondorder methods respectively, meaning that their local truncation error (en) issimilar to h2 and h3 respectively from the Taylor’s series. In other words,Euler’s Method agrees with Taylor’s solution only on first degree term andfails to correctly approximate the area under the curve at the second degreeterm whereas its Improved Method agrees with Taylor’s computations up tosecond degree terms and fails afterwards. Similarly, the Runge-Kutta 4’s first

8

Page 10: MODELLING OF A VEHICLE SUSPENSION SYSTEM

error occurs in Taylor’s fifth degree term, which makes this technique fourthorder with a local truncation error similar to h5. Consequently, RK4 is twoorders of magnitude more accurate than the Improved Euler’s Method. Insummary:

Euler’s Method: en ∼ h2

Improved Euler’s Method: en ∼ h3

Runge-Kutta 4 Method: en ∼ h5

The derivation of the Runge-Kutta fourth order method is a very complexand laborious process, hardly found in any literature. Hence, putting itsderivation aside (which starts with a Taylor’s series expansion), the followingis a brief explanation on how the Runge-Kutta methods work. In Euler’sMethod (the simplest one), the approximations of the actual function’s slopeare made through explicit time steps denoted ∆t.

∆t = tn+1 − tn

The y value is incremented with respect to time, and to get the value of yn+1,we simply need to know the previous yn and use the formula:

yn+1 = yn + ∆tdy

dt

After computing the value of yn+1, the same process is re-used at the new timestep ∆t until the final time is reached. This easily programmable methodis simple but also less efficient as it requires very small time steps to followthe slope. Nevertheless, it assumes that the slope remains constant as we gofrom step n to step n+1, which is clearly not the case in complex differentialequations. The following two sources of error end up occurring in Euler’salgorithm:

1. The approximations at each n steps are straight lines rather than curvesfollowing the actual trajectory;

2. After very few steps, the y position is no longer on the actual curvebut completely inaccurate;

To correct those errors, we need to evaluate the slope between tn and tn+1

with more time points than previously. Here come in play the Runge-Kuttamethods of higher orders. The value of yn+1 is now calculated as follows:

yn+1 = yn + ∆yfinal

9

Page 11: MODELLING OF A VEHICLE SUSPENSION SYSTEM

and ∆yfinal is the weighted average of four different increments as explainedsubsequently.

3.1.1 Runge-Kutta 45

For a better understanding on the functioning of the numerical differentialequations solver, here are the basic steps of the algorithm that performs theRunge-Kutta 4 Method:

Step 1: Define f(t, y) (provide the function)

Step 2: Input the initial values for t and y (to and yo)

Step 3: Input the step size (h) and the number of steps (n)

Step 4: Output the to and yo values

Step 5: Create a for loop to execute Step 6 for i from 1 to n

Step 6: k1 = f(t, y)

k2 = f(t+h

2, y +

h

2k1)

k3 = f(t+h

2, y +

h

2k2)

k4 = f(t+ h, y + hk3)

y = y +h

6(k1 + 2k2 + 2k3 + k4)

t = t+ h

Step 7: Output t and y values

Whenever f(t, yt) does not depend on y, we have:

kn1 = f(tn)

kn2 = kn3 = f(tn +h

2)

kn4 = f(tn + h)

and the Runge-Kutta formula simplifies to:

yn+1 = yn +h

6(f(tn) + 4f(tn +

h

2) + f(tn + h)) (13)

10

Page 12: MODELLING OF A VEHICLE SUSPENSION SYSTEM

From equation (13), one can see that the RK4 formula implies a weightedaverage of values of f(t, y) at four different points, and these points are foundin the interval of:

tn ≤ t < tn+1

Figure 4: Representation of the Runge-Kutta 4 final slope approximationusing four points of increment

Moreover, the middle increments (kn2 and kn3), which represent the innerslopes (∆y2 and ∆y3 in Figure 4), are twice as important as the outer incre-ments (kn1 and kn4), which represent the outer slopes of the estimate (∆y1

and ∆y4 in Figure 4). The step-size (h) equals to the time step (∆t):

h = ∆t = tn+1 − tn

Finally, adaptive Runge-Kutta methods are used numerically in order toget an approximation as close as possible to the actual result. One of thesemethods is called the Runge-Kutta 45: the method we use to solve the foursuspension system modelling equations through Python’s numerical solverin Jupyter Notebook. This method modifies the step-size h automaticallyas it computes the values at each step. It is also known as the "AutomaticError Control" and it works as follows: the step-size is modified in orderto maintain the local truncation error (en) as close as possible (usually lessthan or equal) to the specified tolerance level in a certain context. Otherwise,by always keeping the step-size very small, it often happens that it is small

11

Page 13: MODELLING OF A VEHICLE SUSPENSION SYSTEM

enough for good accuracy in some parts of the function but it might be waysmaller than necessary in other sections of the interval.

With this improved method, the computer needs to estimate the en atevery step of the computation. In order to estimate a new en, the solverruns computations using fifth order Runge-Kutta (en ∼ h6) and fourth orderRunge-Kutta (en ∼ h5) simultaneously. The difference between the resultsfrom the fourth and the fifth orders becomes the new en. The combination ofthe fourth and fifth order Runge-Kutta results in the RK45 method used byour numerical solver. Its accuracy and precision to approximate the actualsolution outdo the simple RK4 or RK5 methods, without mentioning Euleror Improved Euler’s methods. The disadvantage of RK45 is that at each step,the described method requires extra evaluations of f(t, y) to reach the fifthorder of accuracy. Even though the computations made for the fourth ordercan be reused in the fifth order process, extra calculations are added to themultiple computations already made by the solver. However, let’s keep inmind that a more accurate algorithm is more efficient and consists in betterresults at the end of the process.

It is imperative to mention that Runge-Kutta family of methods canbe applied to multiple differential equations simultaneously and also to anyorder of differential equations. Yet, the higher order equations have to befirst converted into a system of coupled first-order ordinary differential equa-tions to be solved using Runge-Kutta. This is mainly due to the fact that,as explained previously, RK methods use linear combinations of values off(t, yt) in order to approximate Taylor’s series y(t). Higher order equationswould require second and higher complex derivatives computations whichare also linear, but very unstable compared to first-order equations. Thereasonable solution is then to convert these higher order equations into agreater sequence of first-order derivatives and to solve them using iterativecomputations. Thus, the differential equations modelling a suspension sys-tem, being second-order equations, will first be converted into a system offour coupled first-order differential equations and then be solved using thenumerical RK45 solver in Python.

4 Modelling of Shocks on The RoadIn order to realistically model the behaviour of the suspension system whenit is submitted to disturbances on the road, the Poisson and the Erlang dis-

12

Page 14: MODELLING OF A VEHICLE SUSPENSION SYSTEM

tributions are used. In this context, the Poisson distribution models thenumber of shocks such as potholes or cracks a suspension system could en-counter on the road. Indeed, we assume that shocks occur independently andnot simultaneously, thus meeting the conditions to qualify as Poisson events.In fact, a specific length of road has a constant expected number of shocksper distance or unit of time which will be designated as the rate parameterλ, but the shocks will occur at random. The Python code is set to generate20 different intervals of time, therefore 20 random Poisson events, which rep-resent jolts on the road. Each event is dispersed from one another with anaverage time of 10 seconds. The average time between events is representedby β, the reciprocal of λ (i.e., β = 1

λ) . The intervals of time between the

Poisson events, are, in themselves, exponentially distributed. However, sincewe are interested in the nth shock on the suspension system rather than thefirst one when sampling, the generalization of the Exponential distribution,the Erlang distribution, will be used to model the time between the distur-bances. When Erlang’s shape parameter equals to 1, the Erlang distributionsimplifies to the Exponential distribution, which is also a special case of theGamma distribution. The rate parameter λ of the Erlang distribution willbe set to 1

10.

4.1 Poisson Process

A Poisson Process is used to model a sequence of discrete events where theexpected number of events per unit of time is known, but the eaxct times atwhich the events occur are random. Furthermore, the occurrence of an eventdoes not depend of the event before as the waiting time between events isexponentially distributed and is thus memoryless (Koehrsen, 2019).

The probability mass function of a Poisson distributed discrete randomvariable, X, is given by

P (X = x) =e−λt(λt)x

x!, for x=0,1,2,... (14)

where λ is the rate parameter which represents the average number of eventsper unit of time.

13

Page 15: MODELLING OF A VEHICLE SUSPENSION SYSTEM

4.2 Poisson Process modeled as a Bernoulli Process

A Bernoulli process is used to model a sequence of random experiments,each of which has solely two outcomes: success or failure. The success isdesignated as 1 and is associated with a probability p, whereas the failure isdesignated as 0 and will have a probability of 1-p (Alto, 2019). Now, let’sapply the Bernoulli process in order to demonstrate the Poisson process.

Suppose that we want to model random events occurring at a rate λ perunit of time. First, we fractionate the half-line [0,∞) into multiple intervalsof length δ as exhibited in Figure 5.

Figure 5: The half-line [0,∞) fractionated into intervals of length δ

From the figure, we get that, essentially, the kth interval is given by[(k-1)δ, kδ]. We suppose that, in each interval of time, we toss a coin forwhich the probability of getting a head is P(H)=p= λδ. If the coin showshead when it lands, we say that an arrival (success) occurred, and vice-versa.This process is depicted in Figure 6.

Figure 6: Coin Tossing as a Bernoulli Process

We define the number of successes, or arrivals, in a given interval [0, t ] asN(t). At t=0, no event occurred yet, thus N(0) = 0. The number of intervalsof time in [0,t ], n, is given by t

δ. This means that, in this case, N(t) is the

14

Page 16: MODELLING OF A VEHICLE SUSPENSION SYSTEM

number of heads that we get in n coin flips, or trials. Thus, we conclude thatN(t) ∼ Binomial(n,p). Since P(H)= p= λδ, we get

np = nλδ

np =tδ· λδ

np = tλ

As δ→ 0, n→∞ and p→ 0. As know, a binomial distributed random variablewith n > 50 and p < 0.1 can be approximated with a Poisson distribution asfollows:

X ∼ Binomial (n,p) ⇒ X ∼ Poisson (n·p)

We conclude that as δ → 0, the PMF of N(t) converges to a Poissondistribution with expected number of events λt.

From the above demonstration, we can deduce that the distribution ofthe number of occurrences in a Poisson process depends solely on the lengthof the interval, thus, it is composed of stationary increments (Pishro-Nik,2016).

4.3 Definition of the Poisson Process

Let λ > 0 be a constant. The counting process {N(t), t ∈ [0,∞]} is said tobe a Poisson process with rate λ if the following conditions are met:

1. N(0) = 0;2. The number of occurrences N(t) in an interval of time t > 0 is Poisson

distributed with rate λ;3. All the events in N(t) are independent and stationary increments.

4.4 Expected Value and Variance of a Poisson DistributedDiscrete Random Variable

For a discrete random variable, the expected value is the sum of the productbetween the value of the discrete random variable and its analogous proba-bility.

To find the expected value of a Poisson (λ) distributed random variableX, we calculate:

15

Page 17: MODELLING OF A VEHICLE SUSPENSION SYSTEM

E(x) =∞∑x=0

xe−λt(λt)x

x!(15)

Since the x = 0 term of the sum is equal to 0, we find:

∞∑x=1

xe−λt(λt)x

x!(16)

We divide both numerator and denominator by x:

∞∑x=1

e−λt(λt)x

(x− 1)!(17)

We factor out e−λt and λt :

λt · e−λt∞∑x=1

(λt)x−1

(x− 1)!(18)

Which is equivalent to:

λt · e−λt((λt)0

0!+

(λt)1

1!+

(λt)2

2!+ ...) (19)

In its turn, equivalent to:

λt · e−λt∞∑x=0

(λt)x

x!(20)

Which simplifies to:

λt · e−λteλt (21)

Which equals to:

λt (22)

Thus, we find that E(X)= λt. As for the variance of a discrete randomvariable, it is designated as follows:

V(X) = E(X2)− [E(X)]2

V(X)= E[(X)(X − 1) +X]− [E(X)]2

16

Page 18: MODELLING OF A VEHICLE SUSPENSION SYSTEM

V(X)= E[(X)(X − 1)] + E(X)− [E(X)]2

So, we need to calculate:

E[(X)(X − 1)] +E(X)− [E(X)]2 =∞∑x=0

x(x− 1)e−λt(λt)x

x!+λt− (λt)2 (23)

Since the x = 0 and x = 1 terms of the sum are equal to 0:∞∑x=2

x(x− 1)e−λt(λt)x

x!+ λt− (λt)2 (24)

We divide both numerator and denominator by x and (x− 1):∞∑x=2

e−λt(λt)x

(x− 2)!+ λt− (λt)2 (25)

We factor out (λt)2 and e−λt:

(λt)2e−λt∞∑x=2

(λt)x−2

(x− 2)!+ λt− (λt)2 (26)

Which is equivalent to:

(λt)2e−λt((λt)0

0!+

(λt)1

1!+

(λt)2

2!+ ...) + λt− (λt)2 (27)

In its turn, equivalent to:

(λt)2e−λt∞∑x=0

(λt)x

x!+ λt− (λt)2 (28)

Which simplifies to:(λt)2e−λteλt + λt− (λt)2 (29)

(λt)2 + λt− (λt)2 (30)

λt (31)In essence, we found that V(X) = λt.

Therefore, a Poisson distributed discrete random variable, X, has thefollowing properties:

1. E(X) = λt2. V(X) = λt

17

Page 19: MODELLING OF A VEHICLE SUSPENSION SYSTEM

4.5 Gamma Function

The Gamma function, Γ(x), broadens the factorial function to complex andreal numbers, rather than only natural numbers. It states that, for any r >0,

Γ(r) =

∫ ∞0

xr−1e−xdx

The Gamma function has the following properties:

1. Γ(r) = (r − 1)!

2. Γ(r) = (r − 1)Γ(r − 1)

3. Γ(1

2) =√π

4.6 Gamma Distribution

The Gamma distribution is a distribution in which the waiting time betweenevents is pertinent. It models the waiting time for the rth Poisson eventrather than the waiting time for the first event. For this reason, it can bedesignated as the generalization of the Exponential distribution.

The probability density function of a Gamma distributed continuous ran-dom variable, X, with parameters α > 0 and λ > 0, is given by:

f(x) =

{1

Γ(α)· λα · xα−1 · e−λx, if x > 0

0, otherwise(32)

where λ is the rate parameter which represents the average number of eventsper unit of time.

4.7 Expected Value and Variance of a Gamma DistributedContinuous Random Variable

From the definition of the expected value of a continuous random variable,we get that the expected value of X is:

E(X) =

∫ ∞−∞

x · f(x)dx

18

Page 20: MODELLING OF A VEHICLE SUSPENSION SYSTEM

So, we solve:λα

Γ(α)

∫ ∞0

xαe−λxdx (33)

We substitute λx by t:λα

Γ(α)

∫ ∞0

(t

λ)αe−t

dt

λ(34)

We factor out λ−α and λ−1:

λα

λα+1Γ(α)

∫ ∞0

tαe−tdt (35)

Using the definition of a Gamma function which stipulates that, for any r>0,then:

Γ(r) =

∫ ∞0

xr−1e−xdx

We solve the integral in eq. 35:

λαΓ(α + 1)

λα+1Γ(α)(36)

Which simplifies to:αΓ(α)

λΓ(α)(37)

And equals to:α

λ(38)

From the definition of the expected value of a continuous random variable,we get that the variance of X is:∫ ∞

−∞x2f(x)dx− [E(X)]2 (39)

λα

Γ(α)

∫ ∞0

xα+1e−λxdx− (α

λ)2 (40)

We substitute λx by t :

λα

Γ(α)

∫ ∞0

(t

λ)α+1e−t

dt

λ− (

α

λ)2 (41)

19

Page 21: MODELLING OF A VEHICLE SUSPENSION SYSTEM

We factor out λ−(α+1) and λ−1:λα

λα+2Γ(α)

∫ ∞0

tα+1e−tdt− α2

λ2(42)

Using the definition of a Gamma function which stipulates that, for any r>0,then:

Γ(r) =

∫ ∞0

xr−1e−xdx

We solve the integral:λαΓ(α + 2)

λα+2Γ(α)− α2

λ2(43)

Using the second property of the Gamma function which stipulates that, forany r>0, then:

Γ(r) = (r − 1)Γ(r − 1)

We get:(α + 1)αΓ(α)

λ2Γ(α)− α2

λ2(44)

After putting everything on the common denominator: λ2Γ(α):α(α + 1)Γ(α)− α2Γ(α)

λ2Γ(α)(45)

We factor out Γ(α) from the numerator:Γ(α) · (α(α + 1)− α2)

λ2Γ(α)(46)

Which simplifies to:α

λ2(47)

Therefore, a Gamma distributed discrete random variable, X, has the follow-ing properties:

1. E(X) =α

λ

2. V(X) =α

λ2

Above, the Gamma family was presented and derived. Because theGamma distribution has very convenient PDFs which can model both veryinstantaneous and smooth shocks, the Gamma PDF shapes will be used toplot the graphs of the random jolts. However, Erlang is used as our proba-bility distribution instead of the Gamma distribution.

20

Page 22: MODELLING OF A VEHICLE SUSPENSION SYSTEM

5 Graphs and Analysis of ResultsBelow are the plotted graphs of displacement vs. time and the Gammashaped jolts. It is important to mention that the displacement graphs coveronly the displacement of the car’s chassis (m2) as it is the one that interestsus the most. Obviously, the wheel moves simultaneously as a shock occursbut its displacement has less of an impact on the passengers of the vehicle.

Figure 7: Displacement 1 Figure 8: Gamma 1

Figure 9: Initial Conditions 1

In this first run, initial conditions for the parameters are shown in Figure9. The spring displacement graph (Figure 7) looks like an average behav-ior with a greater shock at around 100 seconds and another one at around120 seconds, just after the system started to stabilize back to its normaloscillations. The intensity of the shock is also illustrated in Figure 8 by

21

Page 23: MODELLING OF A VEHICLE SUSPENSION SYSTEM

the sharpness of the Gamma PDF shape which elevates to over 1.5 New-tons (Force applied). Considering these initial parameters, it represents thebehavior of a more or less proportional vehicle as we know that the lengthof the suspension spring is similar to the diameter of the tire which acts asa spring; the mass of the quarter body car is greater than the mass of thewheel, the brakes and the suspension components by around 10 times; the’spring constant’ of the tire is also much greater than the spring constant ofthe shock absorber itself.

All these values are far from being actual numbers used in the auto-motive industry, but for the purpose of animating the behavior of such asystem, it is preferable to use convenient values for the numerical solver’scomputations. In this particular scenario, we can associate the system witha critically damped case because the spring returns back to its initial equi-librium position in a small amount of time before a new shock is absorbed.The frequency of jolts is high enough to make the suspension oscillate almostcontinuously. However, around 70 seconds, we can see that the system had ashock and then oscillated once before considerably decreasing its oscillations(almost back to normal), then took a new shock.

Figure 10: Displacement 2Figure 11: Gamma 2

22

Page 24: MODELLING OF A VEHICLE SUSPENSION SYSTEM

Figure 12: Initial Conditions 2

For our second run, we significantly increased both spring constants, thedamping coefficient and the mass of the quarter car, which again, representsthe sprung mass (m2), so a quarter of the car’s weight resting on the springs.This mass does not take into consideration the mass of the wheels and all theother components that are part of the unsprung mass in our example. Now,m2 is four times m1 as it should approximately be in a realistic example. Inthis scenario, we can compare the behavior to an over-damped case wherethe mass returns to equilibrium without oscillating almost at all as it canbe seen in Figure 10. Between 20 and 40 seconds, the displacement graph isalmost a flat line, meaning that the mass barely moves. The Gamma shapesare also very small (Figure 11), going slightly above 0.25 Newtons in the firstjolt only.

Figure 13: Displacement 3Figure 14: Gamma 3

23

Page 25: MODELLING OF A VEHICLE SUSPENSION SYSTEM

Figure 15: Initial Conditions 3

In our final run, the system is similar to an under-damped system inwhich the oscillations continue until enough energy is dissipated to completelystop the movement of the mass and bring it back to zero. As it is depictedby Figure 13, the mass oscillates much more than in the previous two runsand this, due to a decrease in the weight parameters, the damping coefficient,and both spring constants. Lowering the values of all these parameters makethe system much more likely to oscillate for a longer period of time. A goodillustration of this occurs following the big jolt at around 170 seconds (Figure14) when the mass has a large displacement and then continues to oscillatefor a while with slowly decreasing displacement. Moreover, take a look at theGamma PDF’s behavior. At around 80 seconds in (Figure 14), a very smoothjolt occurs, and the Gamma shape also looks very smooth and curvy. Yet, ataround 170 seconds, a very sharp shape appears, meaning that the intensityof the jolt was much greater than previously. This is why the Gamma PDFswere chosen to precisely illustrate the intensity of the jolts.

Figure 16: Random Times 1

24

Page 26: MODELLING OF A VEHICLE SUSPENSION SYSTEM

Figure 17: Random Times 2

Figure 18: Random Times 3

Figures 16, 17, 18 are simply snapshots from Jupyter Notebook to showhow the intervals of time are programmed to be randomised at every singlenew code run. These random intervals are the times between each Poissonevent (between each jolt) and the parameter is set to 20 different intervals,and therefore around 20 jolts, but it can obviously be changed, just like thevalue of λ, which is the reciprocal of the average time between events in thecode.

25

Page 27: MODELLING OF A VEHICLE SUSPENSION SYSTEM

Figure 19: Quarter Car Suspension System Animation

Lastly, Figure 19 is a snapshot of the numerical animation made usingmatplotlib tools in Python. Due to a lack of coding skills, the animationis more or less representative of a real suspension system. Yet, it is closelyrelated to the quarter car suspension diagram analysed previously.

• The grey square represents the sprung mass (m2), or the chassis of aquarter car;

• The red spring is the suspension spring (Ks and b) linking the chassisto the components of the wheel;

• The green square illustrates the unsprung mass (m1), so the weight ofall the components related to the system except for the chassis’ weight;

26

Page 28: MODELLING OF A VEHICLE SUSPENSION SYSTEM

• The green spring located right on top of the blue circle (wheel/tire)simply represents the spring coefficient of the tire (K1) and illustrateshow the tire deforms during the shocks;

• The blue circle is an illustration of the wheel/tire of the car;

• The black curvy line shows the road on which the wheel rolls. It isnot assumed to be a flat road as explained previously in this article.Moreover, the wheel goes under the road line on purpose, only whenthere are big enough jolt, to illustrates the ’potholes’ on the road.

Click here to view the animated version of the suspension system

6 ConclusionTo model a vehicle suspension system realistically, two second-order differ-ential equations from Newton’s Second Law were successfully derived. Theseequations were based on a quarter car sample as we assumed that the sus-pension system was independent, which allowed us to model the wheel andits suspension components separately from the rest of the vehicle. Then, inorder to solve the system of equations numerically, we had to convert it intoa system of four coupled first-order ordinary differential equations. Runge-Kutta 45 numerical solver was used for greater accuracy and approximationof the actual solution. The differential equations were needed to plot thedisplacement vs. time graphs, and knowledge related to Poisson and Erlangdistributions was needed to plot the Gamma Probability Density Functiongraphs. Solving the derived equations also allowed us to animate the quartercar model in Python.

After multiple runs and modifications, we can conclude that depend-ing on the spring constants and on the damping coefficient, the system willbehave as an under-damped, over-damped or critically damped system. Inthe case where the damping coefficient is high enough, the mass might goto its equilibrium position as fast as possible, without oscillating a singletime (over-damped). If the coefficient is less exaggerated, the mass mighttake longer to get back to normal but still will, without further oscillations.And, if damping is not present at all or is very low, the mass could oscillateinfinitely without stopping or stopping once all the energy of the system isdissipated. Depending on the type of vehicle (weight, size, shape), its use,

27

Page 29: MODELLING OF A VEHICLE SUSPENSION SYSTEM

the road condition, and multiple other factors, automotive manufacturerswill choose the convenient type and design of suspension system. However,most vehicles use a system composed of a shock absorber (piston movingthrough viscous oil) and a coil (spring-shaped flexible metal) around it toabsorb shocks and damp oscillations.

Taking into consideration that this model is not the most representativeof a realistic system, it can always be improved and shaped closer to a morerealistic one. Such a system involves many more mechanical componentsand absorbs shocks from more than just the road. Let’s not forget thatall operating systems in a vehicle are somehow related and have an impacton each other, but this is subject to more advanced research. In furtherresearches, plots of velocity vs. time in addition to displacement vs. timecould be interesting in order to analyze in more depth the behavior of thesystem. Also, in this article, the tire was considered as a second springwith its own spring coefficient, but its damping effect was neglected. Hence,taking a second damping coefficient into consideration would complicate thedifferential equations even more. Finally, another interesting approach toexamine such a dynamic system is to test the impact on the suspension froma bump at a certain speed and compare it to the impact from a pothole atthat same speed.

28

Page 30: MODELLING OF A VEHICLE SUSPENSION SYSTEM

References[1] V. Alto, “Understanding bernoulli and binomial distributions”, Towards

Data Science, 2019.

[2] W. E. Boyce, R. C. DiPrima, and D. B. Meade, “Elementary differentialequations”, in. John Wiley & Sons, 2017, ch. 8.3.

[3] J. M. Cimbala, “Runge-kutta method for solving ordinary differentialequations”, 2016.

[4] D. Collins. (2018). Complete guide to car suspension, [Online]. Avail-able: https://www.carbibles.com/guide-to-car-suspension/.(accessed: 22.05.2020).

[5] J.-W. Hu and H.-M. Tang, “Numerical methods for differential equa-tions”, City University, Hong Kong, 1999.

[6] T. Iyenger, K. B. Gandhi, S. Ranganatham, and M. Prasad, “Engi-neering mathematics volume - ii (numerical methods and complex vari-ables)”, in. S. Chand Publishing, 2017, pp. 211–264.

[7] B. Kanber. (2012). Physics in javascript: Car suspension - part 1 (spring,mass, damper), [Online]. Available: https://burakkanber.com/blog/physics-in-javascript-car-suspension-part-1-spring-mass-damper/. (accessed: 22.05.2020).

[8] W. Koehrsen, “The poisson distribution and poisson process explained”,Towards Data Science, 2019.

[9] A. Materdey, “Higher-order numerical solutions of the quarter car sus-pension model”, 2018. doi: 10.11159/icmie18.135.

[10] A. Nicholson and Y.-D. Wong, “Are accidents poisson distributed? astatistical test”, Accident Analysis & Prevention, vol. 25, no. 1, pp. 91–97, 1993.

[11] J. Orloff and J. Bloom, “Expectation, variance and standard devia-tion for continuous random variables class 6, 18.05, jeremy orloff andjonathan bloom”, 2014.

[12] H. Pishro-Nik, “Introduction to probability, statistics, and random pro-cesses”, in. 2016, ch. 4.2.4 and 11.1.2.

29

Page 31: MODELLING OF A VEHICLE SUSPENSION SYSTEM

[13] T. O. Terefe and H. G. Lemu, “Solution approaches to differential equa-tions of mechanical system dynamics: A case study of car suspensionsystem”, Advances in Science and Technology Research Journal, vol. 12,2018.

[14] W.Wu. (2018). Modelling car suspension with ode’s: Damped free oscil-lations part 1, [Online]. Available: https://steemit.com/steemstem/@masterwu/modelling-car-suspension-with-second-order-ode-s-damped-free-oscillations. (accessed: 22.05.2020).

30