jazeved0 / BrachistochroneSimulator

A Java-based physics simulator for the historic Brachistochrone Problem originally posed by Johann Bernoulli in 1696

Home Page:https://jazevedo.me/projects/brachistochrone-simulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brachistichrone Simulator

Iterative calculus-based simulation with accompanying OpenGL-powered graphics display program designed to verify relative performance of different solutions to the historic Brachistochrone problem. An accompanying report was written in LaTeX which gives simulation results and a mathematical explanation of a rigorous solution.

Demo

🏁 Results

With a Ξ”x of 5 meters and a Ξ”y of -3 meters, the following results were derived for the time it takes for the mass to get from A to B, tAB, in seconds: (Note that for the final results, an extremely small dt was used in order to attain a high level of approximation: for this, dt = 1/960,000 sec or 1.04167 Γ— 10-6)

Curve tAB (sec)
StraightTrack 1.5116
CircularTrack 1.2679
CycloidArc 1.2616

Using basic physics calculations, the time it takes for an object to travel from the start of a 5 Γ— 3 meter frictionless ramp can be found to be approximately 1.52031 seconds, making the predictions derived via simulation supposedly within only a 0.57% error.

πŸ“ƒ Write-Up

A LaTeX document detailing the Brachistochrone problem, one of its solutions, and the results of the computational model is available here. It was originally produced to be pasted onto a poster for the UTC Mathematics Poster Competition in 2018.

πŸ”— Dependencies

  • LWJGL - OpenGL bindings and lightweight game engine for Java
  • PNGDecoder - Utility class used for loading .png images into OpenGL for rendering

About

A Java-based physics simulator for the historic Brachistochrone Problem originally posed by Johann Bernoulli in 1696

https://jazevedo.me/projects/brachistochrone-simulator


Languages

Language:Java 100.0%