Skip to content
Snippets Groups Projects
Commit 5eb1edaa authored by nicoa96's avatar nicoa96
Browse files

simulate

parent fb1db657
No related branches found
No related tags found
1 merge request!10Nicoa96 main patch 73354
Pipeline #59649 passed
"""
This code is used to run the simulation of the galaxy collision.
Adjust the number of Particles (num_particles), the number of time steps (num_steps),
the time step (time_step), the number of snapshots to display and if the axes of
the plots shoulb be fixed or not (fix_axes), and then run the simulation
"""
from galaxysimulation import GalaxyCollisionSimulation
sim = GalaxyCollisionSimulation(num_particles=2)
sim.simulate(num_steps=10000, time_step=0.001)
sim.display_snapshots(200, fix_axes=True)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment