physics-hacker / physicshacker.com

PhysicsHacker.com website
GNU General Public License v2.0
0 stars 0 forks source link

We don't have an energy conservation exercise #2

Open chrisorban opened 8 years ago

chrisorban commented 8 years ago

Someone (probably me or Mandeep Gill) should modify the bellocose birds exercise to show that energy (KE + PE) is almost conserved. Then modify the code to make sure it is perfectly conserved.

chrisorban commented 8 years ago

We now have a way to plot quantities versus time thanks to Chris Britt (see spring_graph). Unfortunately we can only plot one quantity at a time. Wait on the energy conservation lab until we can plot the KE, PE and KE + PE separately on the graph.

chrisorban commented 8 years ago

There's an energy conservation demo now (energy_demo). It's not perfect but it's getting there.

chrisorban commented 8 years ago

I just improved then energy conservation demo. It works great in the processing IDE, but for some reason the plot doesn't look right in processing.js. Probably related to all the conversions between floats, doubles and integers.

chrisorban commented 8 years ago

And now the energy conservation demo works (energy_demo). Now we need to write a tutorial around it. Someone should also figure out why energy is not perfectly conserved before we deploy it.