tAdded plot of effective and defined stress to wall visualization - sphere - GP… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 46310f2068bb6f90f90f5567bb9ee3390e3a7e48 | |
parent aef8c482c8f86dfca7e47eb692f02f6b57c6fa01 | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -1202,7 +1202,9 @@ def visualize(project, method = 'energy', savefig = True… | |
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': |