#define R_C 1.0
#define T_C 10.0
#define LCNT 5
-#define PRERUN 200
-#define POSTRUN 500
+#define PRERUN 500
+#define POSTRUN 1000
typedef struct s_hp {
int a_count; /* atom count */
moldyn_set_log(&md,LOG_TOTAL_ENERGY,1);
moldyn_set_log(&md,LOG_TEMPERATURE,1);
moldyn_set_log(&md,LOG_PRESSURE,1);
- moldyn_set_log(&md,VISUAL_STEP,100);
- moldyn_set_log(&md,SAVE_STEP,100);
+ moldyn_set_log(&md,VISUAL_STEP,10);
+ moldyn_set_log(&md,SAVE_STEP,10);
moldyn_set_log(&md,CREATE_REPORT,0);
/*
# author: frank.zirkelbach@physik.uni-augsburg.de
#
+# help function
+draw_cyl() {
+ cat >> temp.pov <<-EOF
+cylinder {
+<$1, $3, $2>, <$4, $6, $5>, 0.05
+pigment { color White }
+}
+EOF
+}
+
+
+
directory="doesnt_exist____for_sure"
width="1024"
height="768"
exit 1;;
esac
done
-
+
if [ ! -d $directory ] ; then
echo "no valid directory"
exit 1
export x0 y0 z0 x1 y1 z1 radius
cat $file | grep -v '#' | awk '\
BEGIN {
- x0=ENVIRON["x0"]; y0==ENVIRON["y0"]; z0==ENVIRON["z0"];
- x1=ENVIRON["x1"]; y0==ENVIRON["y1"]; z0==ENVIRON["z1"];
+ x0=ENVIRON["x0"]; y0=ENVIRON["y0"]; z0=ENVIRON["z0"];
+ x1=ENVIRON["x1"]; y1=ENVIRON["y1"]; z1=ENVIRON["z1"];
radius=ENVIRON["radius"];
}
{
($2<=x1)&&($3<=y1)&&($4<=z1)) {
print "sphere { <"$2","$4","$3">, "radius" ";
print "texture { pigment { color "$5" } ";
- print "finish { phong 1, metallic } } }";
+ print "finish { phong 1 metallic } } }";
}
}' >> temp.pov
else
}
EOF
done
+ else
+ # manually drawing the 3x4 boundaries ...
+ draw_cyl $x0 $y0 $z0 $x1 $y0 $z0
+ draw_cyl $x0 $y0 $z0 $x0 $y1 $z0
+ draw_cyl $x1 $y1 $z0 $x1 $y0 $z0
+ draw_cyl $x0 $y1 $z0 $x1 $y1 $z0
+
+ draw_cyl $x0 $y0 $z1 $x1 $y0 $z1
+ draw_cyl $x0 $y0 $z1 $x0 $y1 $z1
+ draw_cyl $x1 $y1 $z1 $x1 $y0 $z1
+ draw_cyl $x0 $y1 $z1 $x1 $y1 $z1
+
+ draw_cyl $x0 $y0 $z1 $x0 $y0 $z0
+ draw_cyl $x0 $y1 $z1 $x0 $y1 $z0
+ draw_cyl $x1 $y0 $z1 $x1 $y0 $z0
+ draw_cyl $x1 $y1 $z1 $x1 $y1 $z0
fi
# add camera and light source