-
Notifications
You must be signed in to change notification settings - Fork 0
/
01_water_cg.in.run
52 lines (47 loc) · 1.84 KB
/
01_water_cg.in.run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Derived variables.
variable d equal $p*$s # thermo interval
variable dcycle equal $d # dump interval (same as thermo)
variable tcouple equal ${ts}*100 # Coupling constant for Temperature
variable pcouple equal ${ts}*1000 # Coupling constant for Pressure.
# Create a random seed.
shell dd if=/dev/urandom of=/tmp/random_number count=2 bs=1
shell od -An --format=dI /tmp/random_number > /tmp/seed
variable s1 file /tmp/seed
variable s2 equal abs(v_s1)
print "Random Seed ${s2}"
variable r1 equal random(10000,1000000,${s2})
# Physical observables.
compute q all property/atom quatw quati quatj quatk
compute diameter all property/atom shapex shapey shapez
compute temp_trasl all temp
compute temp_rototrasl all temp/asphere dof all
compute press_trasl all pressure temp_trasl pair kspace bond
# Output.
thermo $d
thermo_style custom step etotal evdwl ecoul elong ebond ke pe temp press vol density cpu
thermo_modify temp temp_rototrasl press press_trasl flush yes
dump 1 all custom $d ${run}.dump &
id type xu yu zu c_q[1] c_q[2] c_q[3] c_q[4] &
c_diameter[1] c_diameter[2] c_diameter[3] vx vy vz &
angmomx angmomy angmomz mol
dump_modify 1 colname c_q[1] quatw colname c_q[2] quati &
colname c_q[3] quatj colname c_q[4] quatk
# 1. Shrink the cell in short runs.
timestep ${ts}
velocity all create ${temp} 391624 dist gaussian
fix 2 all nph/asphere iso 1. 1. ${pcouple}
fix_modify 2 press press_trasl
variable r format r1 %.0f
fix 3 all langevin ${temp} ${temp} ${tcouple} $r angmom 0.9
fix_modify 3 temp temp_rototrasl
# 0.1 ns per cycle.
label cycle1
variable i loop ${steps}
print "*** Shrinking step $i/${steps} ***"
run ${equi}
variable r format r1 %.0f
next i
jump SELF cycle1
variable i delete
# 2. Production run.
run ${prod}