|
1 | | -variable dump equal 5000 |
2 | | -variable thermo equal 5000 |
3 | | -variable steps equal 100000 |
| 1 | +variable dump equal 50000 |
| 2 | +variable thermo equal 50000 |
| 3 | +variable steps equal 1000000 |
| 4 | +variable eqs equal 100000 |
| 5 | +variable av equal ${dump}/10 |
4 | 6 |
|
5 | 7 | variable nmb_1 equal 50 # Define atom number |
6 | 8 | variable sig_1 equal 3 # Define LJ parameters (sigma) |
@@ -34,16 +36,17 @@ timestep 0.25 |
34 | 36 | thermo ${thermo} |
35 | 37 | dump mydmp all custom ${dump} dump.lammpstrj id type x y z vx vy vz |
36 | 38 |
|
37 | | -run ${steps} # equilibration |
| 39 | +run ${eqs} # equilibration |
38 | 40 |
|
39 | 41 | variable Epot equal pe |
40 | 42 | variable Ekin equal ke |
41 | 43 | variable Etot equal v_Epot+v_Ekin |
42 | 44 | variable pressure equal press |
43 | 45 | variable temperature equal temp |
44 | | -fix myat1 all ave/time ${dump} 1 ${dump} v_Epot file Epot.dat |
45 | | -fix myat2 all ave/time ${dump} 1 ${dump} v_Ekin file Ekin.dat |
46 | | -fix myat3 all ave/time ${dump} 1 ${dump} v_Etot file Etot.dat |
47 | | -fix myat4 all ave/time ${dump} 1 ${dump} v_pressure file pressure.dat |
48 | | -fix myat5 all ave/time ${dump} 1 ${dump} v_temperature file temperature.dat |
| 46 | +fix myat1 all ave/time 10 ${av} ${dump} v_Epot file Epot.dat |
| 47 | +fix myat2 all ave/time 10 ${av} ${dump} v_Ekin file Ekin.dat |
| 48 | +fix myat3 all ave/time 10 ${av} ${dump} v_Etot file Etot.dat |
| 49 | +fix myat4 all ave/time 10 ${av} ${dump} v_pressure file pressure.dat |
| 50 | +fix myat5 all ave/time 10 ${av} ${dump} v_temperature file temperature.dat |
| 51 | + |
49 | 52 | run ${steps} |
0 commit comments