tfixed bug in class render function - sphere - GPU-based 3D discrete element me… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 9fc0fc43e1fb2089f6e7781b3265724025de521d | |
parent af8c54c428fc06f48214ddbd8df52189fefd967f | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 24 Jan 2013 11:16:58 +0100 | |
fixed bug in class render function | |
Diffstat: | |
M python/sphere.py | 8 ++++---- | |
1 file changed, 4 insertions(+), 4 deletions(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -1004,7 +1004,7 @@ class Spherebin: | |
quiet = "-q" | |
# Render images using sphere raytracer | |
- subprocess.call("cd ..; ./sphere* " + quiet \ | |
+ subprocess.call("cd ..; ./sphere " + quiet \ | |
+ " --method " + method + " {}".format(max_val) \ | |
+ " -l {}".format(lower_cutoff) \ | |
+ " --render output/" + self.sid + "*.bin" \ | |
t@@ -1222,7 +1222,8 @@ class Spherebin: | |
# Plot thinsection with gnuplot script | |
gamma = self.shearstrain() | |
- subprocess.call("""cd ../gnuplot/scripts && gnuplot -e "sid='{}'; gamm… | |
+ subprocess.call("""cd ../gnuplot/scripts && gnuplot -e "sid='{}'; gamm… | |
+ self.sid, self.shearstrain(), self.origo[0], self.L[0], self.o… | |
# Find all particles who have a slip velocity higher than slipvel | |
slipvellimit = 0.01 | |
t@@ -1295,7 +1296,7 @@ def video(project, | |
qscale = 1, | |
bitrate = 1800, | |
verbose = False): | |
- 'Use ffmpeg to combine images to animation' | |
+ 'Use ffmpeg to combine images to animation. All images should be rendered … | |
# Possible loglevels: quiet, panic, fatal, error, warning, info, verbose, … | |
loglevel = "info" # verbose = True | |
t@@ -1342,7 +1343,6 @@ def thinsectionVideo(project, | |
+ out_folder + "/" + project + "-ts-x1x3." + video_format, \ | |
shell=True) | |
- | |
def visualize(project, method = 'energy', savefig = True, outformat = 'png'): | |
""" Visualize output from the target project, | |
where the temporal progress is of interest. |