diff options
-rwxr-xr-x | src/python/cells.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/python/cells.py b/src/python/cells.py new file mode 100755 index 0000000..abafcf0 --- /dev/null +++ b/src/python/cells.py @@ -0,0 +1,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. |