Grid is a simple Newtonian physics simulator. Currently, it animates trajectories for any system.
demo.mov
Make sure you have Python 3.14 installed. Install all of the required dependencies by running:
pip install -r requirements.txt
Run ./grid.py --help for usage information.
- Newtonian gravity
- Gravity for 2 bodies
- Gravity for n bodies
- Proper scaling to show accurate orbit shapes
- Animated trajectories
- Special relativity
- General relativity
Grid is free software licensed under GPLv3.
Copyright (C) 2025 Jithin Renji