# -*-shell-script-*-
# Free energy of Silicon Perfect Crystal by Harmonic Approximation
setnolog
setoverwrite
dirname = runs/si-perf-ha
#-------------------------------------------------------------
#Create Perfect Lattice Configuration
#
latticestructure = diamond-cubic
latticeconst = 5.4309529817532409 #(A) for Si
makecnspec = [ 1 0 0 2
               0 1 0 2
               0 0 1 2 ]
makecn  finalcnfile = perf.cn writecn
#-------------------------------------------------------------
#
#Plot Configuration
#
atomradius = 0.9 bondradius = 0.3 bondlength = 2.8285 #for Si
atomcolor = orange highlightcolor = purple  bondcolor = red
backgroundcolor = gray fixatomcolor = yellow
color00 = "orange"  color01 = "purple" color02 = "green"
color03 = "magenta" color04 = "cyan"   color05 = "purple"
color06 = "gray80"  color07 = "white"
#plot_color_windows = [ 2
#                          -10 -4.44 0  #color00 = orange
#                          -4.44 -3  1  #color01 = purple
#                     ]
plot_atom_info = 3
plotfreq = 10
#plot_limits = [ 1 -10 10 -0.4 0.0 -10 10 ]
rotateangles = [ 0 -90 -90 1.5 ]
win_width = 600 win_height = 600
#win_width = 200 win_height = 150
openwin alloccolors rotate saverot refreshnnlist eval plot
#sleep quit
#------------------------------------------------------------
#Conjugate-Gradient relaxation
conj_ftol = 1e-7 conj_itmax = 1000 conj_fevalmax = 1000
conj_fixbox = 1 
relax
eval finalcnfile = relaxed.cn writecn
#sleep quit
#-------------------------------------------------------------
#Computee Hessian matrix 
input = 0       #compute all atoms
timestep = 1e-4 #finite difference step size
calHessian      #(output in runs/si-perf-ha/hessian.out)
sleep quit
#-------------------------------------------------------------
