1
0
Fork 0
mirror of https://github.com/Findus23/rebound-collisions.git synced 2024-09-19 15:53:48 +02:00

add astronomical utils

This commit is contained in:
Lukas Winkler 2021-04-05 18:02:40 +02:00
parent 8b76806974
commit f97b0928b4
Signed by: lukas
GPG key ID: 54DE4D798D244853
2 changed files with 9 additions and 0 deletions

View file

@ -1,4 +1,5 @@
from .constants import *
from .astronomical import *
from .math import *
from .os_tools import *
from .plotting import *

8
utils/astronomical.py Normal file
View file

@ -0,0 +1,8 @@
from rebound import Particle
habitable_zone_inner=0.75
habitable_zone_outer=1.5
def is_potentially_habitable(planet: Particle):
return habitable_zone_inner <= planet.a <= habitable_zone_outer