Introduction
Introduction Statistics Contact Development Disclaimer Help
tPeriodic lateral boundaries as default - sphere - GPU-based 3D discrete elemen…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit e5bf97711f8e94444cad6180f40e22a634b3c4e1
parent 850f1fcf2331d9b9e7604cbd272e1224b020ca09
Author: Anders Damsgaard <[email protected]>
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(-)
---
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')
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.