Skip to content

Simulating particle trajectories in a vacuum, affecting each other gravitationally (2D)

Notifications You must be signed in to change notification settings

sebastianangermund/orbits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

orbits

Prerequisites

You will need a ffmpeg writer. For Linux:

apt-get install ffmpeg

play

Edit playground.py to generate a simulation.
In simulations there are a few template simulations for inspiration.

Modules

model.py contains the model for initiating a particle array and updating it. Don't touch the code.
plot.py contains an ugly function you import to write a mpeg-plot. Can take a really long time for long simulations.

Legacy

matlab/ is legacy.

About

Simulating particle trajectories in a vacuum, affecting each other gravitationally (2D)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published