tdo not categorize contacts between fixed particles as force chains - sphere - … | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 1df3a06a8dd92aef65a43ed30b7d7527c4750445 | |
parent c3ebf6d9df5f0c497d21a1f3f26e294c9346f69f | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 10 Apr 2015 14:05:07 +0200 | |
do not categorize contacts between fixed particles as force chains | |
Diffstat: | |
M src/sphere.cpp | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/src/sphere.cpp b/src/sphere.cpp | |
t@@ -698,7 +698,8 @@ void DEM::findOverlaps( | |
delta_n = x_ij_length - (x_i.w + x_j.w); | |
// Is there overlap? | |
- if (delta_n < 0.0) { | |
+ // Do not include if both particles are fixed | |
+ if (delta_n < 0.0 && (k.vel[i].w == 0 && k.vel[j].w == 0)) { | |
// Store particle indexes and delta_n | |
std::vector<unsigned int> ij_pair(2); |