-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Add examples from the Advanced Dynamics class at TU Delft #137
base: master
Are you sure you want to change the base?
Conversation
Add additional kinetic energy terms (T) to check for equality.
Add x and y labels and legend for forces on cart axle of hw 8.4. Add eps file for generation of latex file.
Add hyperref package to homework solution 8 tex file. Add solution for problem 4, parts a through d. Solution for 4d is incomplete and does not include calculation of constraint forces. Listings simulate_cart.m and cart_equationsofmotion.m are missing necessary changes to problem 4.
In homework 8.4, find equations of motion of the cart using 3 generalized coordinates and a non-holonomic constraint in hw8.4.py. Using the closed-form solution of lagrange multiplier lambda, fix calculation of constraint forces on the cart axle in the x and y directions in simulate_cart.m.
Add calculation of constrain forces. Add changed code in simulate_cart.m and cart_equationsofmotion.m.
Add solved exercises from the Advanced Dynamics course at TU Delft. Select problems from homework sets 2, 3, 4, 5, 7 and 8 are solved in separate python files and the problem statements are provided in the associated pdf files.
This is awesome. I think you by far now have the most examples :) As I mentioned in chat, I'd rather not commit the pdfs. We should go ahead an just convert them to the format proposed here: #44 (comment) |
Awesome! Can you clarify in a README file the name of the exact class this comes from? |
FYI: Some notes on sharing this from the course instructors. Oliver:
Arend:
Heike:
|
Should this README go in the advanced_dynamics directory or one of the higher level directories? |
Can we make |
Sure but it'll probably be a few days until I get around it. |
NP, Like I said. I'll give you a hand with this too. I may not be able to get to it properly to till the weekend though. |
Or should we just make a top level example directory for each problem? If the problems are independent from one another it migth be better to do that. We are eventually going to scrape each directory in |
Are we planning to do that for the Kane1985 examples? |
I'm not sure yet how to deal with the kane examples. It would be nice to put that in a format that is more digestible without having the book. For now, no I guess, but if someone wants to morph those examples into something better, that would be be great. |
Please take a look here: Also, be aware that I (somewhat) frequently force push to my topic branches. |
Here is the nbviewer link to Oliver's work: http://nbviewer.ipython.org/github/oliverlee/pydy/blob/feature-reformat-tud-examples/examples/tu_delft_advanced_dynamics/hw2.2/hw2.2.ipynb |
@oliverlee Looks great! Some notes:
|
Were you able to get the source files from them? If they wrote these in LaTeX you can use pandoc to convert them to markdown... |
@oliverlee here is my proposed method: http://nbviewer.ipython.org/github/moorepants/pydy/blob/jasons-example/examples/advanced_dynamics/hw3.ipynb I haven't formatted the math completely. If you can get the source files for the pdf docs, then we can autoconvert the whole thing to markdown and not have to do any manual retyping. |
The source for the problem statements is available so I'll take a look tomorrow. |
@oliverlee So I used this
So this should help with the translation a bit. |
Notebook version looks great! |
Thanks. I'll work on converting the rest when I have time during the week. |
@oliverlee See the latest here: #44 Let's not try to convert all these to notebooks. We can leave them as scripts. We will support a script based example and notebook based one. How bout that? |
Ah sorry. Been busy and forgot to finish these.
|
That's fine. It's just quite time consuming to convert them all. If you want to do that, fine but we are going to draft 2 example templates. One for notebooks and one for pure scripts. The scripts should include an image of the system + some text description + the scripts. You have that here. I feel like we should commit png's (or raw latex) to the repo though. I don't feel that committing all the pdf's is a good idea because we can't utlimately render it with a web browser. |
I hope you leave this in here. I may have some students that can work on the examples improvements coming in the winter quarter. |
Github now displays pdfs so I guess we can just leave them in? |
Yeh, we can leave this in for now. I just have a dream of creating an example gallery on our website akin to matplotlib's and we'll need web friendly things to include in the online material. |
notebooks, the version information
extension is helpful
for this.)
run.py
file that executes the example is included.I'm not sure if this branch should be used in the PR or the other.