This is the code I used to solve the rigid body problems of chapters 4 and 5. There is also some chapter 3 stuff in here.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
3_63.py
LICENSE
README.md
mdof.py
p3_54.py
p4_1.py
p4_10.py
p4_11.py
p4_12.py
p4_13.py
p4_14.py
p4_15.py
p4_17.py
p4_1_full.py
p4_2.py
p4_21.py
p4_23.py
p4_24.py
p4_28.py
p4_3.py
p4_4.py
p4_43.py
p4_5.py
p4_6.py
p4_7.py
p4_8.py
p4_9.py
p5_54.py
p5_55.py
p5_64c.py
p5_66.py
p5_67.py
p5_69.py
p5_70.py
p5_71.py
rigidbodies.py

README.md

Rigid Body Solutions

Manually solving the problems in Chapter 4 can be tedious and error-prone, moreover it takes too damn long (especially when you're solving all of them). To get around this I wrote some code; it was much more fun to write the code than to punch all that in the calculator, also having the programmatic output allowed me to use it as a teleprompter.

Using this code

This was written in Python2 (2.7.3 probably), and it uses NumPy and Sympy pretty heavily to do the numerical and symbolic manipulation, some codes use Matplotlib to make pretty pictures. All of those libraries are inlcuded in (SciPy)[https://scipy.org/]. So you will need to install that before using this code. Python + SciPy are a really great (and free!) replacement for MATLAB, so getting comfortable working with them could be a real benefit to your career!

There are two libraries included with this code rigidbodies.py and mdof.py. These allow for calculations about rigid body motion and multiple degree of freedom motion respectively. I originally chose to not release these only because it would be really easy to cheat and to try to pass of my code as your code on assignments and projects. Please don't do this. Use my code to check your work and to learn how to leverage software to make your life easier.

The files of the form p#_##.py are all solutions to the problem implied by the numbers. These problem numbers are in reference to the 10th edition of the textbook.

Enjoy, and pay it forward!

Work to be done

As it is I consider this work complete, however for this code to be truly useful for a student it would be more verbose (and maybe better documented). If I were to write this code today I would use Python3, so I would be open to somebody porting it (which should really be pretty trivial). If you want to do this work I would be happy to make you a contributor.

Contributing

If you find a bug or feel like you can add to this repo (perhaps with a library for solving other types of mechanics problems) then I would be happy to include it! Please send your pull requests!