tPeriodic lateral boundaries as default - 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 e5bf97711f8e94444cad6180f40e22a634b3c4e1
 (DIR) parent 850f1fcf2331d9b9e7604cbd272e1224b020ca09
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Wed, 26 Mar 2014 10:30:02 +0100
       
       Periodic lateral boundaries as default
       
       Diffstat:
         M python/sphere.py                    |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/python/sphere.py b/python/sphere.py
       t@@ -76,7 +76,7 @@ class sim:
                self.num     = numpy.zeros(self.nd, dtype=numpy.uint32)
        
                # Whether to treat the lateral boundaries as periodic (1) or not (0)
       -        self.periodic = numpy.zeros(1, dtype=numpy.uint32)
       +        self.periodic = numpy.ones(1, dtype=numpy.uint32)
        
                ## Particle data
                # Particle position vectors [m]
       t@@ -2051,6 +2051,8 @@ class sim:
                :type normal_stress: float
                '''
        
       +        self.nw[0] = 1
       +
                if (normal_stress <= 0.0):
                    raise Exception('consolidate() error: The normal stress should be '
                    'a positive value, but is ' + str(normal_stress) + ' Pa')