cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

1-Newbie

## Mass spring damper with k being a function of x

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?

1 ACCEPTED SOLUTION

Accepted Solutions
23-Emerald I
(To:MChristensen1)

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 4
24-Ruby III
(To:MChristensen1)

Odesolve with if - one example

24-Ruby V
(To:MChristensen1)

@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.

14-Alexandrite
(To:MChristensen1)

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
(To:MChristensen1)

Express can't use solve blocks.

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

Announcements