Oscar, There are some rolling disc examples here: https://github.com/pydy/pydy/tree/master/examples Note that the PyDy project started as an independent thing build on top of SymPy, then the symbolics were merged into sympy as the mechanic module and the numerics are now in the standalone PyDy package.
Also, I teach an entire graduate class using the module that include 20+ lecture videos and accompanying notebooks: https://moorepants.github.io/mae223/ There are also several scipy/pycon tutorials on the package: http://www.moorepants.info/portfolio/pydy.html The module may be complicated, but that may just reflect that 3D multibody rigid body mechanics is complicated. We've worked on some layers on top of the core code that have been merged or are in open PRs to help provide simpler interfaces that give a way to "assemble" bodies as you would in reality (with joints, etc) but it is still not polished for production. I could imagine a layer that makes it simpler to do 2D mechanics too, among other things. I'll be working on things this summer because I am teaching the aforementioned course in the fall. Feel free to open issues for discussion on improvements. Jason moorepants.info +01 530-601-9791 On Mon, May 13, 2019 at 1:42 PM Oscar Benjamin <[email protected]> wrote: > Hi all, > > I haven't really looked much at SymPy's mechanics module even though > mechanics is very much one of my interests and something that I like > to think I know a bit about. Today I finally took a look at it and I > found the whole API surprisingly complicated. I teach mechanics to > undergraduate students but I'm not sure if I would know how to teach > my students to use the mechanics module as it is now... > > Firstly I looked through the documentation here: > https://docs.sympy.org/latest/modules/physics/mechanics/index.html > Is there any other guide/documentation that explains the general ideas > more simply with examples? > > Suppose that I want to think about a simple 2D problem with a disc > rolling down a surface inclined at angle beta with (Coulomb) friction > coefficient mu. I want to know when/whether the disc will stick or > slip and get the equations of motion for each case. How would I go > about doing that using the mechanics module? > > -- > Oscar > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > 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/CAHVvXxQXtAd_HGwTqaKrpDqQC_mNcyZAFgPrVe8Sq_hPwT6H0w%40mail.gmail.com > . > 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 [email protected]. To post to this group, send email to [email protected]. 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/CAP7f1AgTCgSs79goM_K%2BdHv0FRuwrqPxR7Q%2B2snDkEQpg9eSuw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
