Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- from random import uniform
- from particle import *
- def benchmark():
- particles = [Particle(uniform(-1.0, 1.0),
- uniform(-1.0, 1.0),
- uniform(-1.0, 1.0))
- for i in range(1000)]
- simulator = ParticleSimulator(particles)
- simulator.evolve(0.1)
- if __name__ == '__main__':
- benchmark()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement