tmodified createBondPair description - sphere - GPU-based 3D discrete element m… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit f6f8a54343a9f6d208f5fa75da0f03d2140be761 | |
parent b67be3fda4d26ef813cb6af47cbae812adf68e7a | |
Author: Anders Damsgaard Christensen <[email protected]> | |
Date: Mon, 11 Mar 2013 14:01:56 -0700 | |
modified createBondPair description | |
Diffstat: | |
M python/sphere.py | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -671,11 +671,12 @@ class Spherebin: | |
self.num[2] = numpy.ceil(z_max/cellsize) | |
self.L = self.num * cellsize | |
- def createBondPair(self, i, j, spacing=0.1): | |
+ def createBondPair(self, i, j, spacing=-0.1): | |
""" Bond particles i and j. Particle j is moved adjacent to particle i, | |
and oriented randomly. | |
@param spacing (float) The inter-particle distance prescribed. Positiv… | |
values result in a inter-particle distance, negative equal an overlap. | |
+ The value is relative to the sum of the two radii. | |
""" | |
x_i = self.x[i] |