Modeling a spring and damper system

Thread index  |  Previous thread  |  Next thread  |  Start a new discussion

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   10 Replies   Last post: June 5, 2013 2:01pm UTC
Indranil Goswami

Indranil Goswami

August 4, 2009 4:28pm UTC

Modeling a spring and damper system

I am having trouble modeling a simple 2D spring mass damper system. The geometry comprises the spring at the upper end anchored (fixed) attached to a square mass which in turn is attached to a damper at the bottom of the mass which is also anchored. Any help on modeling both the spring and damper would be appreciated. Thanks

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Mario Elenes

Mario Elenes

August 25, 2009 11:02pm UTC in response to Indranil Goswami

Re: Modeling a spring and damper system

Do you care about stresses on the spring/damper? Or are you just looking for the displacements and speeds and the like?

If it's only displacements you're interested in, it might be much easier to model the spring/damper combo as equations in a transient analysis:

1.- Model a square with the characteristics you're looking for.
2.- add a restriction limiting to zero movement in the x axis.
3.- Under integration coupling variables, add two point variables, choosing the spring contact point: One for displacement (expression "v") and speed (expression "vt").
4.- Add a spring force -k*displacement where your spring connects to the piece.
5.- Add the damper force -c*speed where your damper connects to the piece.
6.- Add some sort of excitation force (a time-stepped function) F*(t<te) or whatever jolt to destabilize your system.

That should give you an answer. For reference, I'm uploading a very simple model of a .5m x .5m x .5m block. I added all the forces in the subdomain section, but you can play around. The model's settings can be changed under the constants menu, where k, c, F, m and te can be modified.

You can plot speed and displacement using the variables damp and disp, respectively.

Attachments:   m-s-d.mph  

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Ivar Kjelberg

Ivar Kjelberg

August 26, 2009 10:58am UTC in response to Indranil Goswami

Re: Modeling a spring and damper system

Hi

here you have a different model, in fact not that different, but I usually apply the forces to points, or I distribute them over boundaries. The approach is the same, but I get somewhat different results than Mario's, probably because I'm not sure he has correctly checked all his dimensions in his formulas, in 2D one often gets confused with the subjacent "thickness".

That is why I prefer to work as far as possible with calculated values (through boundary integrals) and I use the application mode density rho_... instead of mass for the gravitational field forces.

This is the nice way of COMSOL you might add some physics with just some formulas here and there, not that easy to do in other FEM programmes.

One thing tough If you start to add masses on points, check carefully that these are taken into account if you use the eigenmode analysis, you might well need to multiply them by -(jomega)^2 or a lambda^2 depending on how you define the masses and the application mode

Good luck
Ivar

Attachments:   mck.mph  

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Dobromir Filip

Dobromir Filip

June 17, 2010 8:23pm UTC in response to Mario Elenes

Re: Modeling a spring and damper system

Hi Mario,

I am trying to simulate two concentric springs that share the same deflection axis (connected at both ends) in COMSOL. Would you happen to know where I can find tutorial for a spring simulation in COMSOL. Thank you

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Giorgio Calanni

Giorgio Calanni

September 17, 2010 7:06pm UTC in response to Dobromir Filip

Re: Modeling a spring and damper system

Ivar,




And why do you have two blocks? and not 1 only? I am a bit confused.



why nothing happens when you set Gravity = 0 ? Is that the external load you are applying? Correct? [Nevermind, I found the formula you used]

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Jan Schaefer

Jan Schaefer

May 25, 2012 8:31am UTC in response to Mario Elenes

Re: Modeling a spring and damper system


Do you care about stresses on the spring/damper? Or are you just looking for the displacements and speeds and the like?

If it's only displacements you're interested in, it might be much easier to model the spring/damper combo as equations in a transient analysis:

1.- Model a square with the characteristics you're looking for.
2.- add a restriction limiting to zero movement in the x axis.
3.- Under integration coupling variables, add two point variables, choosing the spring contact point: One for displacement (expression "v") and speed (expression "vt").
4.- Add a spring force -k*displacement where your spring connects to the piece.
5.- Add the damper force -c*speed where your damper connects to the piece.
6.- Add some sort of excitation force (a time-stepped function) F*(t<te) or whatever jolt to destabilize your system.

That should give you an answer. For reference, I'm uploading a very simple model of a .5m x .5m x .5m block. I added all the forces in the subdomain section, but you can play around. The model's settings can be changed under the constants menu, where k, c, F, m and te can be modified.

You can plot speed and displacement using the variables damp and disp, respectively.


Hello Mario Elenes,
i'm trying to simulate a spring/damper in 3d in order to get information about the displacements and speeds. I tried to tranfer your 2d-Model into 3d, but it doesn't work. The stresses are zero und over time there is no displacement shown in the graphic interface.
Any idea on what i'm doing wrong or how can i modell a spring/damper system in 3d?

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Shoaib Ahmed

Shoaib Ahmed

April 21, 2013 8:29pm UTC in response to Ivar Kjelberg

Re: Modeling a spring and damper system

Hi

I am trying to model the 3 element Hill Muscle Model in COMSOL fo muscle fibers.. I am a bit confused on how to use the PDE coefficient form in order to accomplish this. I would like to have a single step function response for the force and would like to study the displacement for the muscle fibers.

Best,
Shoaib

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Ivar Kjelberg

Ivar Kjelberg

April 22, 2013 6:50am UTC in response to Shoaib Ahmed

Re: Modeling a spring and damper system

Hi

if you have the "solid" module, make a simple model with two adjacent domains (a rectangle in 2D with a layer at half way) and add a thin elastic layer in between the two blocks, then fix one of the external boundaries (not adjacent to your thin elastic layer, add some useful boundary load on the opposite side.
NB: start to give it a zero stiffness in the direction tangential to the boundary and add a roller condition on the side of the block and study first only the effects in the normal directions

Then check the doc/help, try out the different combinations of spring and damper settings of this special BC, and particularly look at the underlying equations (turn ON equation view under "options - preferences - show"

Then study how COMSOL treats these equations, this would give you the solution for how to set up your own PDE if you prefer this way

I have attached a simple 4.3a model, as well as the same for a spring foundation (perhaps simpler to catch.) Once you understand the difference in modal response of these two and how it is implemented, you can easily model any kind of non linear force displacement system ;)

--
Good luck
Ivar

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Shoaib Ahmed

Shoaib Ahmed

April 24, 2013 3:50am UTC in response to Ivar Kjelberg

Re: Modeling a spring and damper system

Hi Ivar,

I have tried modeling the 3 element Hill Model for muscle fibers (the image is attached below). I am using a simple geometry of a muscle fiber as a cylinder. I was able to set damping and spring constants to the geometry, but I am unable to ensure that this is actually a spring and a damper in parallel. For the series spring I was thinking of adding a thin elastic layer to represent this. I am trying to show correlation between a fixed force and displacement over a period of time. I have attached an image of the equation used for the Force, although I plan to set the force to a constant 500N. I am unsure about how to represent this COMSOL. The displacement seen in my model seems incorrect. Please Advise any input.

Best,
Shoaib Ahmed

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Ivar Kjelberg

Ivar Kjelberg

April 24, 2013 9:39am UTC in response to Shoaib Ahmed

Re: Modeling a spring and damper system

Hi

spring and damper to a fixed reference is the "Spring" BC, thin layer physics really only appear between two domains. In you case the spring and damper is also distributed in the domain, so its whatever lienar or non linear structural physics to which you ad damping via a sub node

--
Good luck
Ivar

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Chien-Hung Lin

Chien-Hung Lin

June 5, 2013 2:01pm UTC in response to Ivar Kjelberg

Re: Modeling a spring and damper system

Hi Ivar

I am interesting in your "solid" module. But I can't open 4.3a model, the files of ThinElasticLayerTst1.mph and SpringFoundationTsts1.mph could transfer to 3.4 model.

Best,
Chien-Hung Lin

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse


Rules and guidelines