tfix sign issue in contact area computation - sphere - GPU-based 3D discrete el… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit c5cca9ab322bea5b1b0e09da0416e677f93a2e3a | |
parent ac4846ed72cbc22f07e21a53f2c6a61daca68c4e | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 19 Feb 2015 14:04:07 +0100 | |
fix sign issue in contact area computation | |
Diffstat: | |
M python/sphere.py | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -4314,7 +4314,7 @@ class sim: | |
''' | |
r_i = self.radius[i] | |
r_j = self.radius[j] | |
- d = r_i + r_j - overlap | |
+ d = r_i + r_j + overlap | |
contact_radius = 1./(2.*d)*( | |
(-d + r_i - r_j)*(-d - r_i + r_j)* | |
(-d + r_i + r_j)*( d + r_i + r_j) |