about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhanemile <emile.hansmaennel@gmail.com>2018-01-04 17:29:42 +0100
committerhanemile <emile.hansmaennel@gmail.com>2018-01-04 17:29:42 +0100
commitc73b03fddc7bea6022e65caeea6c9964d1443db5 (patch)
tree0364942e9cb43085f8006bdc29e9af319e5af940
parent76afb19e3dbef1589ce24de9645af0f61929699f (diff)
initialized the testfile for building cells
-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.