I opened this issue: https://github.com/sympy/sympy/issues/11967.


Jason
moorepants.info
+01 530-601-9791

On Wed, Dec 21, 2016 at 2:06 PM, Jason Moore <moorepa...@gmail.com> wrote:

> 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.
>
>
>
> Jason
> moorepants.info
> +01 530-601-9791 <(530)%20601-9791>
>
> 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+unsubscr...@googlegroups.com.
>> To post to this group, send email to sympy@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/ms
>> gid/sympy/932e669d-4bb5-4b57-8503-12eef8f5caea%40googlegroups.com
>> <https://groups.google.com/d/msgid/sympy/932e669d-4bb5-4b57-8503-12eef8f5caea%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@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/CAP7f1Ah0v0mOSoo3-qvLVnuq12_dez%3DUhO28LQVnW-_pHU5VGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to