tadd colored dots to visualize progressive shear strain - 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 4655081fc0453fd7a0e469a1b199e67687920dc4
 (DIR) parent 418246d1ed3a323dae340566ab6c24e0b1ec4ad9
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Tue, 17 Feb 2015 13:45:50 +0100
       
       add colored dots to visualize progressive shear strain
       
       Diffstat:
         M python/sphere.py                    |       5 ++++-
       
       1 file changed, 4 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/python/sphere.py b/python/sphere.py
       t@@ -6104,8 +6104,11 @@ class sim:
        
                    ax1 = plt.subplot(111)
                    #ax1.semilogy(N/1000., v)
       -            ax1.semilogy(tau_nonzero/N_nonzero, v_nonzero, '.')
       +            #ax1.semilogy(tau_nonzero/N_nonzero, v_nonzero, '+k')
                    #ax1.plot(tau/N, v, '.')
       +            ax1.scatter(tau_nonzero/N_nonzero, v_nonzero, c=idx)
       +            ax1.set_yscale('log')
       +
                    #ax1.set_xlabel('Effective normal stress [kPa]')
                    ax1.set_xlabel('Friction $\\tau/N$ [-]')
                    ax1.set_ylabel('Shear velocity [m/s]')