tfix wall indexation - sphere - GPU-based 3D discrete element method algorithm … | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 7ada8e0ef70cb73ae963b190a53ffad6687df1a6 | |
parent 2c23e55b649111fe8c1804d3c8ae90d474bfe16f | |
Author: Anders Damsgaard Christensen <[email protected]> | |
Date: Fri, 9 Sep 2016 10:16:15 -0700 | |
fix wall indexation | |
Diffstat: | |
M python/sphere.py | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -2986,7 +2986,7 @@ class sim: | |
# stress | |
#self.w_sigma0 = numpy.zeros(1) | |
#self.w_m[0] = numpy.abs(normal_stress*self.L[0]*self.L[1]/self.g[2]) | |
- self.w_m[idx] = self.totalMass() | |
+ self.w_m[0] = self.totalMass() | |
def uniaxialStrainRate(self, wvel = -0.001): | |
''' |