about summary refs log tree commit diff
path: root/src/python/cells.py
blob: abafcf070c7cd6d2548e834d5ae6e148dfdbe1a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python

import numpy as np

num = 1e6

# generate random coordinates
rand_a = (np.random.rand(num, 3) * 2000) - 1000
print(rand_a)

# Out goal is to define a 6D array in wich the first three dimension describe
# the a point, in out case, the corner of a cell containing some stars.
# The other three dimensions are used to store a vector descibing the overall
# forces in the cell.