# -*-shell-script-*-
# MD code of Stillinger-Weber Si
#  nudged elastic band method to find minimum energy path
#  kink migration on 30 partial dislocations
#
# Compile by: make sw build=R
# run by:     bin/sw_gpp scripts/CSD-book/chap7/sect7.3/si-kink-nebmep.script
#

MD++ {
#setnolog
setoverwrite
dirname = runs/si-kink-nebmep
}

MD++ {
#------------------------------------------------------------
#Read in structure
#
incnfile = ~/Codes/MD++/structures/CSD-book/chap7/partial30dkp-6x6x4relax.cn readcn setconfig1 #A
incnfile = ~/Codes/MD++/structures/CSD-book/chap7/partial30rkp-6x6x4relax.cn readcn setconfig2 #B
incnfile = ~/Codes/MD++/structures/CSD-book/chap7/partial30dkp-6x6x4relax.cn readcn #A
}

MD++ {
#------------------------------------------------------------
#
#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_limits = [ 1 -10 10 -10 10  -0.05  0.05 ]
plot_color_windows = [ 2
                          -10 -4.5 0  #color00 = orange
                          -4.5 10  1  #color01 = purple
                     ]
plot_atom_info = 1
plotfreq = 10
rotateangles = [ 0 0 0 1.5 ]
win_width = 600 win_height = 600
#openwin alloccolors rotate saverot refreshnnlist eval plot
#sleep quit
}

MD++ {
#-------------------------------------------------------------
# nudged elastic band method (steepest descent)
#constrainatoms = [ 8 1453 1437 1439 2604 1455 1431 2594 1436 ]
#constrainatoms = [ 39   1413 1415 1421 1425 1428 1430 1431 1435 1436 1437 1438 1439 1452 1453 1454 1455 1456 1457 1459 1460 1482 1615 1632 1633 2579 2580 2581 2582 2583 2585 2594 2596 2604 2606 2624 2626 2784 2790 2792 ]  #R = 6A
constrainatoms = [ 109   284 285 1406 1407 1409 1410 1411 1412 1413 1414 1415 1417 1421 1424 1425 1427 1428 1429 1430 1431 1434 1435 1436 1437 1438 1439 1442 1443 1444 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1463 1472 1473 1474 1482 1483 1484 1486 1610 1611 1612 1614 1615 1632 1633 1638 1640 1642 1643 1656 2548 2558 2565 2566 2573 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2589 2590 2591 2594 2595 2596 2597 2604 2605 2606 2607 2608 2609 2610 2612 2613 2614 2624 2625 2626 2627 2628 2629 2745 2762 2766 2784 2785 2787 2789 2790 2791 2792 ] #R=8A

chainlength = 11 allocchain   totalsteps = 500
#chainlength = 20 allocchain   totalsteps = 500
timestep = 0.01 printfreq = 2

initRchain
#incnfile = neb.chain readRchain

nebspec = [ 0  #0: interpolate surrounding atoms, 1: relax surrounding atoms
            1  #redistribution frequency
          ]
nebrelax
finalcnfile = neb.chain.500 writeRchain

}


MD++ quit
