Matlab suspension modeling

Here are our CFD links and discussions about aerodynamics, suspension, driver safety and tyres. Please stick to F1 on this forum.
DaveW
DaveW
239
Joined: 14 Apr 2009, 12:27

Re: Matlab suspension modeling

Post

MatLab - immensely powerful, hugely inefficient & astronomically expensive. Ideal prototyping tool. SciLab is equivalent, but FREE (hats off to the French Civil Service). Xcos is its equivalent to the Simulink graphical programming environment.

Caito: I think a spring in series with your suspension module would be a good idea. This to represent "installation" compliance. Values differ widely, from around 4 KN/mm for a good tin top to <1 KN/mm for some open wheelers. Having it there will allow you to explore its effect. I think you should have a damping element in parallel with the tyre spring (not series, as suggested by your description). Be aware that tyre damping is mostly "hysteretic", so use low(er) parameter values. I think it is easy to allow the tyre to leave the road in a time-domain model, but remove the element if you are interested in frequency domain analysis......

Having got as far as you have, I suggest that you migrate quickly to a bicycle model (connecting the two axles), before your ideas become too entrenched....

yzfr7
yzfr7
0
Joined: 15 Nov 2005, 12:20

Re: Matlab suspension modeling

Post

Caito wrote:Hi guys, big revival.. but related.

Today I modelled the quarter car, similar to this one:
Image
The basic difference is that I also modelled a damper between the tire and the road.
Usually people don't model tyre damping at this stage, because, as DaveW just said, it is quite small compared to the proper damper, meaning there is no significant difference in the response of the whole system. From the values I usually see, the damping coefficient from the tyre is between 1000 to 10000 times less than the damper, while the stiffness of the tyre is about 10 times larger than the suspension. But as you already put it, leave it there.
Caito wrote:I would like to know a little bit about the limitations of the models. Leaving the fact that is just a quarter of a car. What I find disturbing is that the spring labeled Kt is attached to the ground and to the unsprung mass. The problem with this is that you can never have your car leave the ground.

Moreover, If you get a disturbance with a BIG(and negative) dxr/dt the Kt spring tries to instanstly stretch a lot, as that would never happen it pulls the sprung mass violently. So the model should be subject to a road that does not change very abruptly.

What bothers me is that when the road "goes down" the spring pulls the car towards the road which, in reality, it's not that way. What really happens is that the sprung mass is pushing the wheel to the ground, the wheel is not being pulled by the road.

To sum up, with positive dxr/dt the system looks pretty real to me. It fails to represent the reality with a negative dxr/dt.

In reality I don't know if this represents a problem to the model or not. Anyway, do you think of any other similar problem? Does anybody know which could be the solution to the problem presented?


Bye bye!


Caito.-

You are quite right at your observations, and these problems are because you are considering an ideal spring, that can expand on and on, and that it is 'fixed' at the ground.

If you consider that your spring can expand up to a certain limit (a bit more realistic), than you need to check if the displacement of the tyre is greater than this value. If it is, your car will be airbone. Then it depends on what sort of simulations you want to perform. If you want to continue the simulation after the car is in the air, from this point you have to consider a free body flying due to its (at this point) initial vertical velocity and let gravity bring it back. For landing, you need to check when the distance between the tyre and ground equals the length of the spring.

You could do this for the compression as well. Imagine that you have a big disturbance up, the tyre (and suspension) as you modelled will compress up to unreallistic values. I first noticed this on one simulation when the amplitude of the oscillations of the tyre was larger than the height of the car... You need to again stipulate one limit, and check what happens when you reach this limit.

The problem of the spring pulling the car back (that bothered me a lot as well) is similar, although there is one thing. The spring as you modelled (and as we all do) is massless, so has nor inertia. So yes, if it is attached to the road, it will move intantly at any disturbance. You need to model it as a 'unidirectional' spring. If the road presses the tyre up, the tyre will react. But if the road pulls the tyre down, it doesn't do anything. It is not glued to the ground. It is the opposite problem of a cable: if you try to stretch it, it reacts, if you try to compress it, it doesn't. The problem is that the 'compressed' and 'extended' situations are related the unstretched length of the spring, not the equilibrium position as in your diagram. So intead of using, say, xt = 0 to define your transition, you need to use (xt - xr) and compare to the unstretched length. And if you couple this to the extension limit of the spring, if the road goes down too much, you are airbone for a few moments.

Although these modifications can be made, most simulations I see for simpler models like this don't take these issues into consideration. You will see that you can model quite a good range of parameters until you get to extreme cases of loosing contact with the road. For passenger cars at least.

I would suggest that you go now to half car models, where you can see pitch and roll (depending on which half of the car you get), before you go to bicyle model, which involves steering. You could also include some basic suspension geometry.
pax

User avatar
747heavy
24
Joined: 06 Jul 2010, 21:45

Re: Matlab suspension modeling

Post

Caito wrote:Hi guys, big revival.. but related.

Today I modelled the quarter car, similar to this one:
Image
The basic difference is that I also modelled a damper between the tire and the road.


I would like to know a little bit about the limitations of the models. Leaving the fact that is just a quarter of a car. What I find disturbing is that the spring labeled Kt is attached to the ground and to the unsprung mass. The problem with this is that you can never have your car leave the ground.

Moreover, If you get a disturbance with a BIG(and negative) dxr/dt the Kt spring tries to instanstly stretch a lot, as that would never happen it pulls the sprung mass violently. So the model should be subject to a road that does not change very abruptly.

What bothers me is that when the road "goes down" the spring pulls the car towards the road which, in reality, it's not that way. What really happens is that the sprung mass is pushing the wheel to the ground, the wheel is not being pulled by the road.

To sum up, with positive dxr/dt the system looks pretty real to me. It fails to represent the reality with a negative dxr/dt.

In reality I don't know if this represents a problem to the model or not. Anyway, do you think of any other similar problem? Does anybody know which could be the solution to the problem presented?


Bye bye!


Caito.-

Hi Caito,

I´m not sure that the spring in you shown model is really connected to the road, but if it is in your case, thats surely a serve limitation to "your" model.
Not just in the case, that the "road" falls away. In a real world situation, your tyre/wheel can also leave the road on the "upramp/upwards slope" if the accl. of the wheels gets to high. Your wheels goes not "copy" the road inputs 1:1.

You should ask yourself what is the purpose of your simulation, and then try to built a representive model of "reality". Depending from what you want to see/learn you can make some assumtions/simplifications.

In your case, I would start with a simple, well defined road imput, like a sine wave or half circle. I know it´s boring, but it well help you to understand and validate your model under different conditions.

If in your above model, the tyre spring (Kt) is really connected to the road, and
Xr is the geometrical displacement input, your model is indepented of the speed, with which your car/model travels over the road inputs. This would be a poo representation of reality.

As other have pointed out before, you need not only to define the parameters for for your model, but also the constrains/limits anf then decide to which variable you want to solve (Xt, Xb etc.) most likely/beneficial you solve for the contact force at the point Xr (contact patch load). If this becomes 0 you have no grip anymore, if it would become (theoretical only) negative your tyre leaves the ground.

So IMHO, a better model would be to use F (force) instead of M (mass) and use accel. of the mass as a input, and from the accel, you can derive the displacement (xt).
You may want to include a mass for your contact patch in your model. This mass x the vertical accel (which will depend from your car speed) will then result in a force acting on Kt in a upwards direction, providing your input.

Keep the road shape simple, and solve for Xt and compare with your Xr, so you can see, when the tyre (more correct the wheel centre/hub) is starting to not copy your Xr input 1:1 etc.
This will help you in the beginning to get a grip/understanding of your model and it´s limitations. As said by other posters before, you need to define your contrains correctly (wheel tarvel /spring length/ max force (you don´t want to rip your damper/spring topmount out of your body etc.)
If you are happy with the response of your model, you can add complexity, like another spring on top of your model to account for installation stiffness as suggested by Dave, etc.)
But I would start simple, and make sure I understand my model and it´s contrains, and then alter it one step at the time.

Have fun

Here are some links which I hope are useful at one point fo you.
Not all are 100% related to your question, but all will contain a nugget or two of wisdom - at least I hope so. :wink:

http://www.google.com/url?sa=t&source=w ... _w&cad=rja

http://www.esr.ruhr-uni-bochum.de/rt1/c ... ode38.html
http://www.aer.bris.ac.uk/contact/acade ... s/J141.pdf
http://www.brlsi.org/proceed05/postgrad0505.html
http://www.aer.bris.ac.uk/contact/acade ... s/J132.pdf
http://scholar.lib.vt.edu/theses/availa ... s_2007.pdf
http://www.mie.uth.gr/files/JVC_Natsiavas.pdf
http://www.waset.org/journals/waset/v53/v53-41.pdf
http://michael.friswell.com/PDF_Files/J155.pdf

http://books.google.com/books?id=Pvsv78 ... el&f=false


Matlab model specific:
http://thebookshq.com/download/matlab-s ... del-2.html
http://www.mathworks.com/matlabcentral/ ... 986#777277
http://www.mathworks.com/matlabcentral/ ... 616#776072
"Make the suspension adjustable and they will adjust it wrong ......
look what they can do to a carburetor in just a few moments of stupidity with a screwdriver."
- Colin Chapman

“Simplicity is the ultimate sophistication.” - Leonardo da Vinci

User avatar
747heavy
24
Joined: 06 Jul 2010, 21:45

Re: Matlab suspension modeling

Post

maybe you find something useful for you (including some matlab code) in this article.
sorry it´s not a quarter car but a half car model.

http://robotics.ee.uwa.edu.au/theses/20 ... -Corke.pdf
"Make the suspension adjustable and they will adjust it wrong ......
look what they can do to a carburetor in just a few moments of stupidity with a screwdriver."
- Colin Chapman

“Simplicity is the ultimate sophistication.” - Leonardo da Vinci

Caito
Caito
13
Joined: 16 Jun 2009, 05:30
Location: Switzerland

Re: Matlab suspension modeling

Post

Thank you very much 747! I was innactive in this topic due to exams, which I have now finished. I'm going to take a 2-week holiday so there will be no more updates until then.


Bye bye!
Come back 747, we miss you!!

User avatar
747heavy
24
Joined: 06 Jul 2010, 21:45

Re: Matlab suspension modeling

Post

Hi Caito,

hope your exams went well, and wish you a great holiday.
when you are back, relaxed and ready for the next step in your modeling attempt,
have a look here.

https://repository.unm.edu/bitstream/ha ... sequence=1

P.S. how you like the book?
"Make the suspension adjustable and they will adjust it wrong ......
look what they can do to a carburetor in just a few moments of stupidity with a screwdriver."
- Colin Chapman

“Simplicity is the ultimate sophistication.” - Leonardo da Vinci

User avatar
747heavy
24
Joined: 06 Jul 2010, 21:45

Re: Matlab suspension modeling

Post

Automobile Suspension Design (using matlab analysis)
http://claymore.engineer.gvsu.edu/~peir ... report.pdf

Analysis of an Automobile Suspension
word document half car model

http://www.google.de/url?url=http://cla ... Cg&cad=rja
"Make the suspension adjustable and they will adjust it wrong ......
look what they can do to a carburetor in just a few moments of stupidity with a screwdriver."
- Colin Chapman

“Simplicity is the ultimate sophistication.” - Leonardo da Vinci

xavier111
xavier111
0
Joined: 11 Aug 2009, 02:44
Location: Cuenca, Ecuador

Re: Matlab suspension modeling

Post

Hi!!

This forum its very interesting!..... I heard Matlab its a good software not only for electronics, a friend lend me the program to install in my computer..... But I am a newbie in the software, I want to know where can I find a tutorial for begginers???

Thanks!
"Racing is life, anything that happens before or after is just waiting" Steve McQueen

"Racing, competing, it's in my blood. It's part of me, it's part of my life; I have been doing it all my life and it stands out above everything else"
Ayrton Senna

User avatar
747heavy
24
Joined: 06 Jul 2010, 21:45

Re: Matlab suspension modeling

Post

xavier111 wrote:Hi!!

This forum its very interesting!..... I heard Matlab its a good software not only for electronics, a friend lend me the program to install in my computer..... But I am a newbie in the software, I want to know where can I find a tutorial for begginers???

Thanks!

maybe this gets you started.

http://www.cs.njit.edu/~liu/Courses/Fal ... tstart.pdf
http://people.stfx.ca/x2005/x2005gfz/mme-1%5B1%5D.pdf
http://www.math.ufl.edu/help/matlab-tutorial/
http://www.mathworks.com/academia/stude ... chpad.html

there are some book out there which can help
small selection here
http://www.ebookpdf.net/__matlab-for-du ... book_.html

and if you google, you will find more.

Also the matlab help and tutorials which come with the software are quite good.
"Make the suspension adjustable and they will adjust it wrong ......
look what they can do to a carburetor in just a few moments of stupidity with a screwdriver."
- Colin Chapman

“Simplicity is the ultimate sophistication.” - Leonardo da Vinci

Belatti
Belatti
33
Joined: 10 Jul 2007, 21:48
Location: Argentina

Re: Matlab suspension modeling

Post

this one is full of phrases like this that sound a little odd to me:

"Damper rebound can also increase performance by lowering the center of gravity, and thus decreasing weight transfer further"

or

"The inerter can also be optimized to minimize lateral load transfer of a vehicle to increase vehicle lateral acceleration"
"You need great passion, because everything you do with great pleasure, you do well." -Juan Manuel Fangio

"I have no idols. I admire work, dedication and competence." -Ayrton Senna

xavier111
xavier111
0
Joined: 11 Aug 2009, 02:44
Location: Cuenca, Ecuador

Re: Matlab suspension modeling

Post

Thanks a lot 747!!

Now I will read all your web pages that you recommend me!!!... and then start to design a car suspension for a FSAE!!....
"Racing is life, anything that happens before or after is just waiting" Steve McQueen

"Racing, competing, it's in my blood. It's part of me, it's part of my life; I have been doing it all my life and it stands out above everything else"
Ayrton Senna

User avatar
747heavy
24
Joined: 06 Jul 2010, 21:45

Re: Matlab suspension modeling

Post

a matlab model which includes bumpstos, nonlinear springs and damping.
comparsion between different modeling approaches, showing the limitations of simplified models.
compare a matlab model with more advanced/detailed models as used in OEM road car development.

interesting read
enjoy
http://dynamicslab.mpe.nus.edu.sg/dynam ... istics.pdf
"Make the suspension adjustable and they will adjust it wrong ......
look what they can do to a carburetor in just a few moments of stupidity with a screwdriver."
- Colin Chapman

“Simplicity is the ultimate sophistication.” - Leonardo da Vinci

User avatar
delacf
5
Joined: 23 Feb 2010, 01:32

Re: Matlab suspension modeling

Post

Caito wrote:I would like to know a little bit about the limitations of the models. Leaving the fact that is just a quarter of a car. What I find disturbing is that the spring labeled Kt is attached to the ground and to the unsprung mass. The problem with this is that you can never have your car leave the ground.
Sorry for my bad English

I have read your opinions and I think it depends on the function F (t) which represents the force generated by the road. If we use the sine function do have that problem but if you use, for example, this function type:

0 t<0,t>0,5

1 0=<t=<0,5

In this funtion the force acts for half a second and then the system evolves free.

Anyway you still have the "problem" that when the wheel leaves the road real tire only once stretched but simulated tire not.

I have to think. Regards, delacf

jihedley
jihedley
0
Joined: 22 Mar 2014, 19:20

Re: Matlab suspension modeling

Post

Hi all,

Sorry to resurrect an old thread but it is on topic for what I'm doing at the moment so thought I wouldn't create a new one.
For my dissertation I'm doing a standard front spring assembly analysis and a variable rate spring analysis with models that are similar to the ones in this link http://ctms.engin.umich.edu/CTMS/index. ... nkModeling but without the U input.
I'm trying to design a simulation that would model the roll of the car on the front wheels. So for example, analyze only the front 2 wheels and increase the mass on one, while proportionally reducing the mass on the other to simulate weight transfer and then look at how much the body squats on the outside wheel. Is this possible using a similar model to the one I've created for the suspension response?
Last question. For the variable rate spring model, is it possible to tell matlab that the softer part of the spring will be coil bound and therefore become solid at a certain value? I tried this with a saturation block but it didn't seem to do anything.

Thanks,
James

User avatar
Tim.Wright
330
Joined: 13 Feb 2009, 06:29

Re: Matlab suspension modeling

Post

jihedley wrote:I'm trying to design a simulation that would model the roll of the car on the front wheels. So for example, analyze only the front 2 wheels and increase the mass on one, while proportionally reducing the mass on the other to simulate weight transfer and then look at how much the body squats on the outside wheel. Is this possible using a similar model to the one I've created for the suspension response?
Yes but its the wrong way to model it. Instead of changing the mass of the wheel (which is unrealistic), you need to add a vertical force to the body which is the load transfer. A force and a mass are not the same thing.
jihedley wrote:Last question. For the variable rate spring model, is it possible to tell matlab that the softer part of the spring will be coil bound and therefore become solid at a certain value? I tried this with a saturation block but it didn't seem to do anything.
I'd use a lookup table for the spring force which becomes very stiff at the point where it coil binds.
Not the engineer at Force India