[Swift-commit] r7802 - demo/xsede.2014.0425/app
wilde at ci.uchicago.edu
wilde at ci.uchicago.edu
Thu Apr 24 22:05:59 CDT 2014
Author: wilde
Date: 2014-04-24 22:05:59 -0500 (Thu, 24 Apr 2014)
New Revision: 7802
Added:
demo/xsede.2014.0425/app/mdviz
Log:
app to simulate and render in one invocation
Added: demo/xsede.2014.0425/app/mdviz
===================================================================
--- demo/xsede.2014.0425/app/mdviz (rev 0)
+++ demo/xsede.2014.0425/app/mdviz 2014-04-25 03:05:59 UTC (rev 7802)
@@ -0,0 +1,39 @@
+#! /bin/sh
+
+mdout=$1
+vzout=$2
+shift 2
+
+md $* >& md.out # Run the MD command
+
+cat <<EOF >c-ray-cmds
+# spheres
+# position radius color shininess reflectivity
+#s -0.5 -0.3 -1 0.05 1.0 0.2 0.05 50.0 0.1
+#s 0.5 -0.4 0 0.05 0.1 0.85 1.0 50.0 0.1
+
+
+# walls
+s 0 -1000 2 99 0.2 0.2 0.2 0.0 0.0
+
+# bouncing ball
+#s 0 0 2 1 1.0 0.5 0.1 60.0 0.7
+
+# lights...
+l -50 100 -50
+#l 40 40 150
+
+# camera (there can be only one!)
+# position FOV target
+c 0 6 -17 45 0 -1 0
+EOF
+
+for t in md??.trj; do
+ cat $t c-ray-cmds | c-ray >$t.ppm
+ convert $t.ppm $t.png
+done
+
+convert -delay 20 md??.trj.png t.gif
+
+mv md.dat $mdout
+mv t.gif $vzout
Property changes on: demo/xsede.2014.0425/app/mdviz
___________________________________________________________________
Added: svn:executable
+ *
More information about the Swift-commit
mailing list