[ODE] Simple beginner question: Mass-spring system modeling in ODE

Jaroslav Sinecky sinecky at telefonica.net
Fri May 12 00:18:37 MST 2006


If I understand it well, you just need to add external force 
(dBodyAddForce) in each step, which you calculate for the current time 
from your periodic prescription.

Cheers,
Jaroslav

Ryan Gardner wrote:
> I'm about to start working on a few basic simulations in ODE to get  
> my feet wet. One of the first ones I want to model (actually, the  
> very first one) is  a simple mass-spring system.
>
> I wanted to model it in such a way that it would be easy to make a  
> damped driven oscillator later...
>
> The system I'm trying to model is very basic. I don't care much about  
> friction - so it can just be a block attached to a spring.
>
> I've looked around and I see that I can model the damed driven spring  
> with CFM and ERP it seems - and to make it behave the way I want I  
> could just use a slider joint... but how would I later on add an  
> oscillating driving force to this simulation?
>
> I know this is a basic question... I looked through the docs online  
> and couldn't find any clear description of it though... any help  
> would be appreciated.
>
> Ryan
>
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>
>   


More information about the ODE mailing list