tAdded plot of effective and defined stress to wall 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 46310f2068bb6f90f90f5567bb9ee3390e3a7e48
(DIR) parent aef8c482c8f86dfca7e47eb692f02f6b57c6fa01
(HTM) Author: Anders Damsgaard <adc@geo.au.dk>
Date: Wed, 28 Nov 2012 14:57:53 +0100
Added plot of effective and defined stress to wall visualization
Diffstat:
M python/sphere.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -1202,7 +1202,9 @@ def visualize(project, method = 'energy', savefig = True, outformat = 'png'):
ax4 = plt.subplot2grid((2,2),(1,1))
ax4.set_xlabel('Time [s]')
ax4.set_ylabel('Deviatoric stress [Pa]')
- ax4.plot(t, wdevs, '+-')
+ ax4.plot(t, wdevs, '+-', label="$\sigma_0$")
+ ax4.plot(t, wforce/(sb.L[0]*sb.L[1]), '+-', label="$\sigma'$")
+ ax4.legend(loc=4)
elif method == 'shear':