You are on page 1of 3

Project #1 Passive Suspension System

Date Due: Monday April 1, 2013


Upload to Angel by 10 am Hard copy to Mrs. Ford at the beginning of class.

CMPSC 200 & 201 SP13

Objective: Write a program that will calculate the maximum velocity and displacement for the wheel and the car for different vehicles in the data file. You will be given specific values and then you need to solve a series of equations to determine those maximum values. Problem: The passive suspension system of an automobile is illustrated in Figure 1.

Figure 1. The passive suspension system [Franklin, 2004, Fig 2-3].

A quarter of the suspension system of the automobile can be modeled by mass, spring and dash-pot as described below.

Figure 2. The quarter-car model [Franklin, 2004, Fig 2-4]. Page 1 of 3

Where r is the displacement of road surface relative to the sea level; m1 is the mass of the wheel, m2 is the mass of the quarter car, kw is the spring constant of the tire, ks is the spring constant of the spring, b is the damping constant of the dash-pot. Assume the model is for a car with a mass of 1580 kg including the four wheels, which have a mass of 20 kg each. Ks=130,000N/m, Kw=1,000,000 N/m. The damping coefficient is b = 9800 N/(m/s). Figure 3 shows the free body diagram of each mass.

Figure 3. Free Body Diagram of the quarter-car. [Franklin, 2004, Fig 2.5]

The equations to describe the masses in this system are listed below:

This system can further be described by four first differential equations listed below: 1 x2 x
2 x (k w k s ) k k b b x1 x2 s x3 x4 w r m1 m1 m1 m1 m1

3 x4 x 4 x ks k b b x1 x2 s x3 x4 m2 m2 m2 m2

Where x1 is the displacement of the wheel, x2 is the velocity of the wheel, x3 is the displacement of the car, and x4 is the velocity of the car. Taking the integration of the four equations we get: x1 n 1 x1 n x2 n t k k s k k x2 n 1 x2 n b b w x1 n x2 n s x3 n x4 n w r n t m1 m1 m1 m1 m1 x3 n 1 x3 n x4 n t k x4 n 1 x4 n k s b b x1 n x2 n s x3 n x4 n t m2 m2 m2 m2
Page 2 of 3

Suppose now this automobile is ridding on a rugged road, and the function to describe the shape of the surface with the given car speed is: (meters) r (t ) 0.2 * sin(2t ) Calculate the acceleration, the velocity, and displacement of the car over the time. It is known that the smaller the acceleration of the car, the more comfortable the passenger feels. Input: The data file will be giving you the following values and in this order: (File format: EOF) Specifications: Each formula will be its own function. All decimal values will be formatted to either 4 or 5 decimal places. CMSPC 201: The only global variable you are allowed is PI. CMPSC 201: Your input file MUST BE located and named: P:\Private\ProjData.txt. If not in that location or named that file, your program will be graded as incomplete. CMPSC 200: Your input file MUST BE named ProjData.txt. If not named this then your program will be graded as incomplete. Turn in a hard copy and upload your source code (with the proper name) to Angel. If you neglect to either upload or turn in your hard copy you will receive a zero on this assignment. Name of the car Spring constant of the tire Spring constant of the spring Damping constant of the dash-pot Mass of the wheel Mass of the whole car Start and end value of time Increment value for time

Output: Be sure all output is clearly labeled. I am not as concerned with units but you can include them if you wish. Echo the output of all input variables as well as the maximum displacement and velocity of the car and the wheel for each vehicle in the data file. Decimal places should be formatted. Hints: Solve for the first set of x values. We assume the all of the cars starts from a stopped position so the first round of x (1-4) [x(n)] values will all be 0.000. Use the previous x values to solve for the (1-4) [x(n+1)] values. next set of x Remember that you are trying to find the maximum displacement of the car and wheel as well as the maximum velocity of the car and wheel.
Page 3 of 3

You might also like