tChanged units in xdisp from cm to mm - sphere - GPU-based 3D discrete element … | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 6f582429757f170139e97d6ec83e6fe29bdae8c5 | |
parent 72b4bef96258d2eb7b79c02988aa05089dc1baad | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 26 Sep 2012 11:45:52 +0200 | |
Changed units in xdisp from cm to mm | |
Diffstat: | |
M python/sphere.py | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -1071,7 +1071,7 @@ def visualize(project, method = 'energy', savefig = Fals… | |
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]*100.0, | |
+ fh.write("{0}\t{1}\t{2}\t{3}\n".format(xdisp[i]*1000.0, | |
sigma[i]/100.0, | |
tau[i]/100.0, | |
dilation[i]/L*100.0)) |