tOnly a single spherebin is passed to the raytracer at a time - 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 38656ba76b71da03143f5195572cf5df4f0c7aae
(DIR) parent a06b4c3144cc68a125b24146090ed94c096f8850
(HTM) Author: Anders Damsgaard <adc@geo.au.dk>
Date: Thu, 24 Jan 2013 15:55:23 +0100
Only a single spherebin is passed to the raytracer at a time
Diffstat:
M python/sphere.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -1004,10 +1004,10 @@ class Spherebin:
quiet = "-q"
# Render images using sphere raytracer
- subprocess.call("cd ..; ./sphere " + quiet \
+ subprocess.call("cd ..; for F in `ls output/" + self.sid + "*.bin`; do ./sphere " + quiet \
+ " --method " + method + " {}".format(max_val) \
+ " -l {}".format(lower_cutoff) \
- + " --render output/" + self.sid + "*.bin" \
+ + " --render $F; done" \
, shell=True)
# Convert images to compressed format
t@@ -1222,7 +1222,7 @@ class Spherebin:
# Plot thinsection with gnuplot script
gamma = self.shearstrain()
- subprocess.call("""cd ../gnuplot/scripts && gnuplot -e "sid='{}'; gamma='{:.4}'; xmin='{}'; ymin='{}'; ymax='{}'" plotts.gp""".format(\
+ subprocess.call("""cd ../gnuplot/scripts && gnuplot -e "sid='{}'; gamma='{:.4}'; xmin='{}'; xmax='{}'; ymin='{}'; ymax='{}'" plotts.gp""".format(\
self.sid, self.shearstrain(), self.origo[0], self.L[0], self.origo[2], self.L[2]), shell=True)
# Find all particles who have a slip velocity higher than slipvel