tseveral bugfixes in shear visualization - 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 5d5529c47876d8318da6410836d06f9a35def036
(DIR) parent f71c86b462fb455512c234b9c35c052cd2b1e77d
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Mon, 8 Sep 2014 10:27:52 +0200
several bugfixes in shear visualization
Diffstat:
M python/sphere.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -4971,11 +4971,11 @@ class sim:
# Test if this was the max. shear stress
if (self.tau[i] > self.tau_u):
- self.tau_u = tau[i]
- self.tau_u_shearstrain = xdisp[i]/w_x0
+ self.tau_u = self.tau[i]
+ self.tau_u_shearstrain = self.xdisp[i]/w_x0
- self.shear_strain = self.xdisp/self.w_x0
+ self.shear_strain = self.xdisp/w_x0
# Plot stresses
if (outformat != 'txt'):