dilevin / CSC417-a2-mass-spring-3d

Assignment 2 for CSC2549
11 stars 13 forks source link

Gravity forces in assembly #4

Closed abhimadan closed 4 years ago

abhimadan commented 5 years ago

There's no g parameter in assemble_forces or assemble_stiffness, so we can't use it to add gravity's contribution to the assembled force vector or Hessian. Are we expected to hardcode the standard acceleration into the appropriate functions?

dilevin commented 5 years ago

For this assignment your bunny should be in zero g (no gravity) so you can ignore the gravity force during assembly. You should still implement gravitational potential energy and the gradient so we can check the formulas though.