tfix typo, thanks A Dinesh - simple_DEM - a simple 2D Discrete Element Method code for educational purposes
HTML git clone git://src.adamsgaard.dk/simple_DEM
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit 43cadd7458e7c197e0d23677754084b11679d157
DIR parent 15e7e030d19d71c7f137b498f6c52fa1c4317d0e
HTML Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date: Sat, 20 Aug 2016 14:00:14 -0700
fix typo, thanks A Dinesh
Diffstat:
M grains.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/grains.c b/grains.c
t@@ -50,7 +50,7 @@ void interparticle_force(grain* g, int a, int b)
yt = xn;
/* Compute the velocity of the contact */
- double vx_ab = g[a].vx - g[b].vy;
+ double vx_ab = g[a].vx - g[b].vx;
double vy_ab = g[a].vy - g[b].vy;
vn = vx_ab*xn + vy_ab*yn;
vt = vx_ab*xt + vy_ab*yt - (g[a].R*g[a].angv + g[b].R*g[b].angv);