talso zero forces and torques, change file mode - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 413f93381a24090b49beb6933d6c6d38d5a12ce4
(DIR) parent 082573d044ba28b2f4ca1a4b51fb96e9d11e9bc0
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Fri, 26 Feb 2016 00:42:37 +0100
also zero forces and torques, change file mode
Diffstat:
M python/sigma-sim1-starter.py | 0
M python/sphere.py | 2 ++
2 files changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/python/sigma-sim1-starter.py b/python/sigma-sim1-starter.py
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -2788,6 +2788,8 @@ class sim:
when output from one simulation is reused in another simulation.
'''
+ self.force = numpy.zeros((self.np, self.nd))
+ self.torque = numpy.zeros((self.np, self.nd))
self.vel = numpy.zeros(self.np*self.nd, dtype=numpy.float64)\
.reshape(self.np, self.nd)
self.angvel = numpy.zeros(self.np*self.nd, dtype=numpy.float64)\