tset total mass to equal grain mass during consolidation - 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 2c23e55b649111fe8c1804d3c8ae90d474bfe16f
 (DIR) parent 4b0e619db3245ce652c088d4c56f65adc8306ed7
 (HTM) Author: Anders Damsgaard Christensen <adc@geo.au.dk>
       Date:   Fri,  9 Sep 2016 10:15:04 -0700
       
       set total mass to equal grain mass during consolidation
       
       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@@ -2985,7 +2985,8 @@ class sim:
                # Set top wall to a certain mass corresponding to the selected normal
                # 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[0] = numpy.abs(normal_stress*self.L[0]*self.L[1]/self.g[2])
       +        self.w_m[idx] = self.totalMass()
        
            def uniaxialStrainRate(self, wvel = -0.001):
                '''