tset dynamic wall mass to equal total grain mass - 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 1a3f65f59a59b92c76e2babaf7aa5c01df5d93f8
(DIR) parent f7107ca4d940bf0c38ca12a092dc5b3f1ffd0314
(HTM) Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date: Thu, 25 Aug 2016 10:03:59 -0700
set dynamic wall mass to equal total grain mass
Diffstat:
M python/sphere.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -2924,7 +2924,8 @@ class sim:
self.w_x[idx] = numpy.array([xmin])
#self.w_m[idx] = numpy.array([self.rho[0]*self.np*math.pi \
# *(cellsize/2.0)**3])
- self.w_m[idx] = numpy.array([self.rho*self.L[0]*self.L[1]*d_max])
+ #self.w_m[idx] = numpy.array([self.rho*self.L[0]*self.L[1]*d_max])
+ self.w_m[idx] = self.totalMass()
def consolidate(self, normal_stress = 10e3):
'''