Graphical Display of a Physics Simulation Steven Oetjen TJHSST Computer Systems Lab
Purpose and Scope Display objects graphically and information about those objects numerically on a GUI Allow user set-up of scenarios Allow use of multiple types of objects particles springs ramps
Development Implement equations in several areas Kinematics Dynamics/Newton's Laws Conservation of Momentum Spring Force Gravitation Electrostatics
Development – Collision Detection Check if x coordinate between ends of ramp Check if y coordinate between bottom of ramp and desired center of projectile
Development – Integration Method Modified Simpson's Rule Stores previous two acceleration values Finds equation for parabola through points Integrates from 0 to t
Results – Kinematics
Results – Spring Force
Results Projectile-projectile and projectile-ramp collisions are detected and a velocity change occurs as a response. Projectiles correctly apply gravitational and Coulomb forces. Ramps correctly apply frictional force.