tChanged format of txt output values in shear visualization method - 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 b3a14695511b1c825ed7bd11f7ea0e0f07a3da98
(DIR) parent b3fbad2ab9c5908a72d02bfb9e02f5894e4c45ac
(HTM) Author: Anders Damsgaard <adc@geo.au.dk>
Date: Thu, 27 Dec 2012 11:57:34 +0100
Changed format of txt output values in shear visualization method
Diffstat:
M python/sphere.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -1342,10 +1342,10 @@ def visualize(project, method = 'energy', savefig = True, outformat = 'png'):
L = sb.L[2] - sb.origo[2] # Initial height
for i in range(lastfile+1):
# format: shear distance [mm], sigma [kPa], tau [kPa], Dilation [%]
- fh.write("{0}\t{1}\t{2}\t{3}\n".format(xdisp[i]*1000.0,
+ fh.write("{0}\t{1}\t{2}\t{3}\n".format(xdisp[i],
sigma_eff[i]/1000.0,
tau[i]/1000.0,
- dilation[i]/L*100.0))
+ dilation[i]))
finally :
if fh is not None:
fh.close()