Skip to main content
1-Visitor
August 17, 2020
Solved

Mass spring damper with k being a function of x

  • August 17, 2020
  • 4 replies
  • 2248 views

All,

 

I am trying to set up an odesolve function with a mass spring damper where my spring constant is a piecewise function associated with position. Sort of like a mass is being driven by a force while being acted upon by a damper until it suddenly hits a spring. Any Ideas?

Best answer by Fred_Kohlhepp

Express can't use solve blocks.

 

Does this give you a place to start?  (Sorry for the mess--this was a work in progress.)

4 replies

24-Ruby IV
August 17, 2020

Odesolve with if - one example

24-4a.png24-4b.png

25-Diamond I
August 17, 2020

@MChristensen1 wrote:

All,

 

I am trying to set up an odesolve function with a mass spring damper where my spring constant is a piecewise function associated with position. Sort of like a mass is being driven by a force while being acted upon by a damper until it suddenly hits a spring. Any Ideas?


OK, and where did you experience problems?

It may help if you would attach your worksheet so we can see what you are trying to do.

15-Moonstone
August 18, 2020

You have picked an interesting problem.  I have seem a similar problem  a pendulum and changing the length based on angle.  In this case it was a child's swing.  Pumping (which changes the length) increases the height.  Adding a forcing function is a good start.  The solution was done using Perturbation Methods.  It treats the non linearity of the equation.  This was over 40 years ago.

 

Good luck

David 

23-Emerald I
August 20, 2020

Express can't use solve blocks.

 

Does this give you a place to start?  (Sorry for the mess--this was a work in progress.)