tmodified createBondPair description - 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 f6f8a54343a9f6d208f5fa75da0f03d2140be761
(DIR) parent b67be3fda4d26ef813cb6af47cbae812adf68e7a
(HTM) Author: Anders Damsgaard Christensen <adc@geo.au.dk>
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(-)
---
(DIR) 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. Positive
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]