Skip to content

Commit

Permalink
big
Browse files Browse the repository at this point in the history
  • Loading branch information
will-roscoe committed Dec 5, 2023
1 parent 6cf090b commit 63c47a2
Show file tree
Hide file tree
Showing 10 changed files with 463 additions and 252 deletions.
4 changes: 4 additions & 0 deletions body.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name = jul
position = (-1.4,0,0)
mass = 1.23
radius = 60000000
24 changes: 9 additions & 15 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@





import nbody.core as nb
from nbody.errors import raise_type_error
import nbody.horizons as source
phys = nb.Engine(dt=1000)
'''
Expand All @@ -17,17 +15,13 @@
phys.do_fieldgravity = False
phys.simulate(20000)
phys.save_as('bodies','solarsystem_bodies')
'''
phys.load_as('bodies','solarsystem_bodies')
sim = nb.mplVisual(phys, 'SS', phys.bodies[0],None, False,
show_grid= True,
show_shadows= False,
show_acceleration = False,
show_velocity= False,
vector_size = 1,
labelling_type = 'legend',
body_model = 'dots',
guistyle = 'dark',
do_picking = True,
show_info = True)
sim.start(frameskip=1000, plotskip=200, speed_control=True, cache=True)

sim = nb.mplVisual(engine=phys,
name='SS',
focus_body=phys.bodies[0], show_info=True, autoscale=False, frameskip=200, plotskip=200, max_p=1, max_pts=10, cache=False, do_picking=True) #do_picking=True, autoscale=False)

sim.start()

Binary file modified nbody/__pycache__/core.cpython-312.pyc
Binary file not shown.
Binary file added nbody/__pycache__/styles.cpython-312.pyc
Binary file not shown.
Binary file modified nbody/__pycache__/text.cpython-312.pyc
Binary file not shown.
Loading

0 comments on commit 63c47a2

Please sign in to comment.