Physics Module: Classical Mechanics: Two rigid bodies connected by a torsion spring with damping.

47 views
Skip to first unread message

iai

unread,
Dec 20, 2016, 10:05:04 AM12/20/16
to sympy
Please let me know how to model a spring that connects two rigid bodies. I am modeling a system of two rigid bodies connected by a torsion spring with damping, and trying to get equations of motion using LagrangesMethod(.). This system is free flying. 

I know I can assign the potential energy to a Particle object. But in my case above, I don't know how to divide the energy stored in a spring to the two bodies.

Jason Moore

unread,
Dec 21, 2016, 5:07:17 PM12/21/16
to sy...@googlegroups.com
The API is not well designed for applying potential energy from springs. As a workaround, you can define the entire system's potential energy and attach it to one of the bodies potential_energy attribute. The Lagrangian will be properly calculated. Make sure not to double count any of the potential energy components.

The API probably needs a way to specify the potential energy expression when calling the Lagrangian function.

On Tue, Dec 20, 2016 at 12:58 AM, iai <i...@axelspace.com> wrote:
Please let me know how to model a spring that connects two rigid bodies. I am modeling a system of two rigid bodies connected by a torsion spring with damping, and trying to get equations of motion using LagrangesMethod(.). This system is free flying. 

I know I can assign the potential energy to a Particle object. But in my case above, I don't know how to divide the energy stored in a spring to the two bodies.

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/932e669d-4bb5-4b57-8503-12eef8f5caea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jason Moore

unread,
Dec 21, 2016, 5:12:54 PM12/21/16
to sy...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages