-
Notifications
You must be signed in to change notification settings - Fork 29
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
Energy and Power Chapter #158
Conversation
energy.rst
Outdated
So far we have invesitaged multibody systems from the perspect of forces and | ||
their relationship to motion. It is also useful to understand these systems | ||
from a power and energy perspective. Power is the time rate of change in work | ||
done. Work is the eenrgy gained, disspated, or exchanged in a system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eenrgy
should be energy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, i wouldnt' bother reviewing yet, haven't actually written much text or even went over it myself
Merging this, will take comments after posting. I didn't get everything I want in it but it gives enough to calculate energy. |
|
||
Energy in a multibody system can be classified as kinetic, potential | ||
(conservative), or non-conservative. Any energy that enters or leaves the | ||
system is non-conservative. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a single equation about the work of a force here would tie things together:
The work done by a force
From which we also see
|
||
.. math:: | ||
|
||
E(t) = \int_{t_0}^{t_f} P(t) dt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The d here is meant to be an operator, so should be upright.
in general, have a translational and a rotational component of kinetic energy. | ||
A particle cannot rotate so it only has translational kinetic energy. Kinetic | ||
energy can be thought of as the work done by the generalized inertia forces | ||
:math:`\bar{F}^*_r`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add: when going from the current given state to rest?
or something like that? Now the definition is incomplete
Potential Energy | ||
================ | ||
|
||
Some of the generalized active force contributions in inertial reference frame |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you add the line about the work of a force, you can add the info needed to define "some" i.e. conservative forces:
Forces for which this is possible are called conservative. They are all forces for which the work done by the force for any path
|
||
The sum of all potential energies in a system give the total potential energy | ||
of the system. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the Lagrange chapter I had added Newtonian gravity, mostly because I think student's only know about springs and mgh.
I will rewrite the section in the Lagrange chapter to account for this section being here now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, sorry for making what you wrote redundant (if I did), my fault for not having a draft earlier
Great feedback @wwolfie I'll work on it. |
Above eq(218) you write: |
In the paragraph above eq(214), it seems to me you leave the term 'energy' undefined. I guess, you have to, as there are so many forms of energy. |
Is the 'minus sign' in eq(219) just a convention, or is there more to it? |
Above eq(221) you write: |
In fig 52, you label the unit vectors of N as n_1, n_2. |
Above the code where you define T_A you write: |
Below thw graphs of the conservative motion you write: |
You write somewhere below Conservative Simulation with Ground Spring: I had a lot of trouble with this issue on my 'bouncing ball': |
I copied from Kane's book. I think it must just be convention. Maybe I should remove the negative sign.
Yes, but a nonlinear term will give a different energy function. I just kept it simple.
If I couldn't only impart this wisdom to the students, but I think the only way to gain it is to struggle your self with simulations.
I spent a little time trying to improve the simulation with the settings of the IDA solver, but didn't get improvements in time. It needs a closer look. If you have some tips, I can update it. But now I have to move on to other things. I fixed the other notes, but still need to update the figure with nx and ny. |
I spent a little time trying to improve the simulation with the settings of the IDA solver, but didn't get improvements in time. It needs a closer look. If you have some tips, I can update it. |
No I don't really want to do that. In the holonomic constraint sim chapter I basically teach them that you should use the DAE solver to get the correct solution. So I'd like to stick to that but it means we need to have a DAE solver that also behaves nicely for stiff systems. Here is the explanation of the solver we are using: https://computing.llnl.gov/projects/sundials/ida I probably need to give it a Jacobian and fiddle with the order and such. |
But you are welcome to show me what you get with solve_ivp and Radua, maybe you'll convince me to switch explanations. |
I will do it, hopefully over the weekend and let you know whatever I will have managed. Only time I used dae was when , last year, you got to the chapter holonomic constraints. I 'complicated' your example a bit, and compared solver_ivp to dae (with IDA). Total energy was always 'more wrong' with dae. |
I may have found a small mistake in your simulation. You set the spring force on the foot as Kf = kf*zp**(3/2) But I think, then the spring energy should be NB: Even this correction does not seem to make solve_ivp work, but I have not given up, yet. |
maybe another small mistake? In the simulation you set T_A = kk*(q3 - pi/2) |
Yes, thanks. Those are errors. Will fix. |
Would it make sense to mention in the code that the first equation of eq(216) was used to get these terms? |
I could write out the integrals write before I introduce them. |
Or solve the integrals with sympy. |
Solving them with sympy looks more attractive to me - I did it the old-fashioned way. |
I still play around with solve_ivp, not too successful so far. |
I'm not subtracting the energy, but the integral gives a negative sign that isn't needed. |
So, sympy's symbolic integration is wrong? |
I think, I give up on solve_ivp for your jumper. In order to be in 'my world', I set up the equations of motion using sympy mechanics. If I calculated more than about 0.3 sec, I had to set kk = 1000 ( you have it at kk = 10), else the jumper would 'flip over', makes sense! --> When I retire and get my desk top computer, I have to learn about dae! |
No description provided.