-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathequilibrate.lmp
More file actions
65 lines (48 loc) · 1.53 KB
/
equilibrate.lmp
File metadata and controls
65 lines (48 loc) · 1.53 KB
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
53
54
55
56
57
58
59
60
61
# Python script (License CC BY 4.0)
# By Simon Gravelle, Jacob R. Gissinger, and Axel Kohlmeyer
# The DOI will be added upon publication
# Find more on GitHub: https://github.com/lammpstutorials
boundary p p f
units real
atom_style full
bond_style harmonic
angle_style harmonic
pair_style lj/cut/tip4p/long O H O-H H-O-H 0.1546 12.0
kspace_style pppm/tip4p 1.0e-5
kspace_modify slab 3.0
read_data create.data
include parameters.inc
include groups.inc
fix myshk H2O shake 1.0e-5 200 0 b O-H a H-O-H kbond 2000
dump mydmp all image 1 myimage-*.ppm type type &
shiny 0.1 box no 0.01 view 90 0 zoom 1.8
dump_modify mydmp backcolor white &
acolor O red adiam O 2 &
acolor H white adiam H 1 &
acolor Na+ blue adiam Na+ 2.5 &
acolor Cl- cyan adiam Cl- 3 &
acolor WALL gray adiam WALL 3
thermo 1
thermo_style custom step temp etotal press
minimize 1.0e-6 1.0e-6 1000 1000
reset_timestep 0
fix mynvt all nvt temp 300 300 100
fix myshk H2O shake 1.0e-5 200 0 b O-H a H-O-H
fix myrct all recenter NULL NULL 0
timestep 1.0
undump mydmp
dump mydmp all image 250 myimage-*.ppm type type &
shiny 0.1 box no 0.01 view 90 0 zoom 1.8
dump_modify mydmp backcolor white &
acolor O red adiam O 2 &
acolor H white adiam H 1 &
acolor Na+ blue adiam Na+ 2.5 &
acolor Cl- cyan adiam Cl- 3 &
acolor WALL gray adiam WALL 3
variable walltopz equal xcm(walltop,z)
variable wallbotz equal xcm(wallbot,z)
variable deltaz equal v_walltopz-v_wallbotz
thermo 250
thermo_style custom step temp etotal press v_deltaz
run 30000
write_data equilibrate.data nocoeff