Skip to content

federicocalab/simulazione-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use the system

This system can simulate the orbits of n bodies with great distances (it is not optimized for near collisions).

In order to create a simulation scenario just create a config file with this structure:

{   
    "objects": {
        "obj-1": {
            "mass": 1.989e30,
            "position": [0,0],
            "velocity": [0,0],
            "color": "yellow"
        },
        "obj-2": {
            "mass": 5.972e24,
            "position": [1.521e11, 0],
            "velocity": [0, 29300.8],
            "color": "blue"
        }
    },
    "simulation": {
        "step_days": 1,
        "total_days": 600,
        "epsilon": 1e-9,
        "G": 6.67430e-11,
        "view_radius": 2e11,
        "camera_target": "obj-2"
    },
    "output": {
        "save_gif": false,
        "filename": "example.gif",
        "fps": 30
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages