From c73b03fddc7bea6022e65caeea6c9964d1443db5 Mon Sep 17 00:00:00 2001 From: hanemile Date: Thu, 4 Jan 2018 17:29:42 +0100 Subject: initialized the testfile for building cells --- src/python/cells.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 src/python/cells.py (limited to 'src/python') 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. -- cgit 1.4.1