about summary refs log tree commit diff
path: root/src/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/python')
-rwxr-xr-xsrc/python/cells.py14
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.