- Here's a link to an online hosted version of this project
Credit: Special thanks to Intiser Rajoan Parash for working with me on the technical details of the project.
This project explores the dependence of the orbit on the initial position and velocity by utilizing Euler's method to solve the differential equations of motion through the approximation of the next values for the position and velocity. The program is written in React, a JavaScript library for building user interfaces.
- The implimentation is in the following file
According to multiple credible sources, you don't need Node to run a react app. However, I have not tested this. If you are interested in running the program, you will need to install the following:
- Node/npm
- Stop before the creating simple program section.
- Mac OS installation instructions, see https://www.digitalocean.com/community/tutorials/how-to-install-node-js-and-create-a-local-development-environment-on-macos
- Windows installation instructions, see https://www.digitalocean.com/community/tutorials/how-to-install-node-js-and-create-a-local-development-environment-on-windows
- React
- Clone the repository
git clone https://github.com/salomondush/solar-system-simulation.git
- Install the dependencies by running
npm install
- Run the program by running
npm start
- The program should open in your default browser. If not, go the address listed in the terminal. You'll see an interface with space, the sun, earth, mars, and a small panel to control mass of the sun and the speed of the planets.
Sample Run