diff options
author | hanemile <emile.hansmaennel@gmail.com> | 2018-01-04 17:29:42 +0100 |
---|---|---|
committer | hanemile <emile.hansmaennel@gmail.com> | 2018-01-04 17:29:42 +0100 |
commit | c73b03fddc7bea6022e65caeea6c9964d1443db5 (patch) | |
tree | 0364942e9cb43085f8006bdc29e9af319e5af940 /src | |
parent | 76afb19e3dbef1589ce24de9645af0f61929699f (diff) |
initialized the testfile for building cells
Diffstat (limited to 'src')
-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. |