|
1 | | -units real |
2 | | -atom_style molecular |
3 | | -boundary f f f |
4 | | - |
5 | | -pair_style lj/cut 14.0 |
6 | | -bond_style harmonic |
7 | | -angle_style harmonic |
8 | | -dihedral_style opls |
9 | | -improper_style harmonic |
10 | | -special_bonds lj 0.0 0.0 0.5 |
11 | | - |
12 | | -read_data unbreakable.data |
13 | | -include parameters.inc |
14 | | - |
15 | | -group carbon_atoms type 1 |
16 | | -variable xmax equal bound(carbon_atoms,xmax)-0.5 |
17 | | -variable xmin equal bound(carbon_atoms,xmin)+0.5 |
18 | | -region rtop block ${xmax} INF INF INF INF INF |
19 | | -region rbot block INF ${xmin} INF INF INF INF |
20 | | -region rmid block ${xmin} ${xmax} INF INF INF INF |
21 | | - |
22 | | -group cnt_top region rtop |
23 | | -group cnt_bot region rbot |
24 | | -group cnt_mid region rmid |
25 | | -set group cnt_top mol 1 |
26 | | -set group cnt_bot mol 2 |
27 | | -set group cnt_mid mol 3 |
28 | | - |
29 | | -variable xmax_del equal ${xmax}-2 |
30 | | -variable xmin_del equal ${xmin}+2 |
31 | | -region rdel block ${xmin_del} ${xmax_del} INF INF INF INF |
32 | | -group rdel region rdel |
33 | | -delete_atoms random fraction 0.02 no rdel NULL 2793 bond yes |
34 | | - |
35 | | -reset_atoms id sort yes |
36 | | -velocity cnt_mid create 300 48455 mom yes rot yes |
37 | | - |
38 | | -fix mynve1 cnt_top nve |
39 | | -fix mynve2 cnt_bot nve |
40 | | -fix mynvt cnt_mid nvt temp 300 300 100.0 |
41 | | -fix mysf1 cnt_top setforce 0 0 0 |
42 | | -fix mysf2 cnt_bot setforce 0 0 0 |
43 | | -velocity cnt_top set 0 0 0 |
44 | | -velocity cnt_bot set 0 0 0 |
45 | | - |
46 | | -variable Lcnt equal xcm(cnt_top,x)-xcm(cnt_bot,x) |
47 | | -variable Fcnt equal f_mysf1[1]-f_mysf2[1] |
48 | | - |
49 | | -variable colors string "pink white white" |
50 | | -dump mydmp all image 500 dump.*.ppm mol type adiam 1.5 box no 0.01 view 0 90 zoom 1.8 shiny 0.1 fsaa yes |
51 | | -dump_modify mydmp pad 5 amap 0 10 sa 1 3 ${colors} backcolor white |
52 | | - |
53 | | -compute Tmid cnt_mid temp |
54 | | -thermo 100 |
55 | | -thermo_style custom step temp etotal v_Lcnt v_Fcnt |
56 | | -thermo_modify temp Tmid line yaml |
57 | | - |
58 | | -timestep 1.0 |
59 | | -run 5000 |
60 | | - |
61 | | -velocity cnt_top set 0.0005 0 0 |
62 | | -velocity cnt_bot set -0.0005 0 0 |
63 | | - |
64 | | -run 10000 |
| 1 | +units real |
| 2 | +atom_style molecular |
| 3 | +boundary f f f |
| 4 | + |
| 5 | +pair_style lj/cut 14.0 |
| 6 | +bond_style harmonic |
| 7 | +angle_style harmonic |
| 8 | +dihedral_style opls |
| 9 | +improper_style harmonic |
| 10 | +special_bonds lj 0.0 0.0 0.5 |
| 11 | + |
| 12 | +read_data unbreakable.data |
| 13 | +include parameters.inc |
| 14 | + |
| 15 | +group carbon_atoms type 1 |
| 16 | +variable xmax equal bound(carbon_atoms,xmax)-0.5 |
| 17 | +variable xmin equal bound(carbon_atoms,xmin)+0.5 |
| 18 | +region rtop block ${xmax} INF INF INF INF INF |
| 19 | +region rbot block INF ${xmin} INF INF INF INF |
| 20 | +region rmid block ${xmin} ${xmax} INF INF INF INF |
| 21 | + |
| 22 | +group cnt_top region rtop |
| 23 | +group cnt_bot region rbot |
| 24 | +group cnt_mid region rmid |
| 25 | +set group cnt_top mol 1 |
| 26 | +set group cnt_bot mol 2 |
| 27 | +set group cnt_mid mol 3 |
| 28 | + |
| 29 | +variable xmax_del equal ${xmax}-2 |
| 30 | +variable xmin_del equal ${xmin}+2 |
| 31 | +region rdel block ${xmin_del} ${xmax_del} INF INF INF INF |
| 32 | +group rdel region rdel |
| 33 | +delete_atoms random fraction 0.02 no rdel NULL 2793 bond yes |
| 34 | + |
| 35 | +reset_atoms id sort yes |
| 36 | +velocity cnt_mid create 300 48455 mom yes rot yes |
| 37 | + |
| 38 | +fix mynve1 cnt_top nve |
| 39 | +fix mynve2 cnt_bot nve |
| 40 | +fix mynvt cnt_mid nvt temp 300 300 100 |
| 41 | +fix mysf1 cnt_top setforce 0 0 0 |
| 42 | +fix mysf2 cnt_bot setforce 0 0 0 |
| 43 | +velocity cnt_top set 0 0 0 |
| 44 | +velocity cnt_bot set 0 0 0 |
| 45 | + |
| 46 | +variable Lcnt equal xcm(cnt_top,x)-xcm(cnt_bot,x) |
| 47 | +variable Fcnt equal f_mysf1[1]-f_mysf2[1] |
| 48 | + |
| 49 | +dump viz all image 500 myimage-*.ppm element type size 1000 400 zoom 6 shiny 0.3 fsaa yes bond atom 0.8 view 0 90 box no 0.0 axes no 0.0 0.0 |
| 50 | +dump_modify viz pad 9 backcolor white adiam 1 0.85 bdiam 1 1.0 |
| 51 | + |
| 52 | +compute Tmid cnt_mid temp |
| 53 | +thermo 100 |
| 54 | +thermo_style custom step temp etotal v_Lcnt v_Fcnt |
| 55 | +thermo_modify temp Tmid line yaml |
| 56 | + |
| 57 | +timestep 1.0 |
| 58 | +run 5000 |
| 59 | + |
| 60 | +velocity cnt_top set 0.0005 0 0 |
| 61 | +velocity cnt_bot set -0.0005 0 0 |
| 62 | + |
| 63 | +run 10000 |
0 commit comments