Skip to content

Simulate interaction of different bodies in space. Imported from Gitlab

Notifications You must be signed in to change notification settings

wak31415/nbodysimulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nbodysimulation

100 Body Simulation

Compilation instructions:

  • Install rustup from either the distribution's package manager or the official website
  • Download the compiler and the cargo package manager for the stable version of Rust by running rustup default stable
  • Run cargo run or cargo run <num_bodies> to download the dependencies, compile everything and run the program.
  • If it doesn't work, try going back to the second step and change to the nightly version with rustup default nightly, as it could be that we accidentally used something only available in nightly, which we all have ourselves since we like to live life on the edge B)

Running nbodysimulation

  • cargo run reads the starting_configuration.json for reproducible results
  • cargo run <num_bodies> generates a fixed number of bodies over a finite space with random locations, positions and velocities

The master branch implements the safe implementation. If you would like to try out the raw pointer implementation using the unsafe code blocks, you can checkout the raw_pointer_concurrency branch.

About

Simulate interaction of different bodies in space. Imported from Gitlab

Topics

Resources

Stars

Watchers

Forks