Skip to content

Commit a2e5891

Browse files
committed
updated gcmc files
1 parent b8cd10a commit a2e5891

5 files changed

Lines changed: 163 additions & 69 deletions

File tree

files/tutorial6/solution/gcmc.lmp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ neigh_modify delay 1
1313

1414
read_data cracking-mod.data
1515
molecule h2omol H2O.mol
16-
lattice sc 6
17-
create_atoms 0 box mol h2omol 45585
18-
lattice none 1
16+
create_atoms 0 random 3 3245 NULL mol h2omol 4585 overlap 2.0 maxtry 50
1917

2018
group SiO type Si O
2119
group H2O type OW HW
@@ -32,8 +30,6 @@ angle_coeff HW-OW-HW 0 104.52
3230
variable oxygen atom type==label2type(atom,OW)
3331
group oxygen dynamic all var oxygen
3432
variable nO equal count(oxygen)
35-
thermo_style custom step temp etotal v_nO
36-
thermo 1000
3733

3834
fix shak H2O shake 1.0e−4 200 0 b OW-HW a HW-OW-HW mol h2omol
3935

@@ -47,22 +43,21 @@ dump_modify mydmp backcolor white &
4743
acolor OW cyan adiam OW 2 &
4844
acolor HW white adiam HW 1
4945

50-
thermo 1000
51-
thermo_style custom step temp etotal v_nO
52-
5346
compute ctH2O H2O temp
54-
#compute ctSiO SiO temp
5547
compute_modify thermo_temp dynamic yes
5648
compute_modify ctH2O dynamic yes
5749
fix mynvt1 H2O nvt temp 300 300 0.1
5850
fix_modify mynvt1 temp ctH2O
5951
fix mynvt2 SiO nvt temp 300 300 0.1
60-
#fix_modify mynvt2 temp ctSiO
6152

6253
timestep 0.001
6354

6455
variable tfac equal 5.0/3.0
6556
fix fgcmc H2O gcmc 100 100 0 0 65899 300 -0.5 0.1 &
6657
mol h2omol tfac_insert ${tfac} shake shak full_energy pressure 100
6758

59+
thermo 200
60+
thermo_style custom step temp etotal v_nO &
61+
f_fgcmc[3] f_fgcmc[4] f_fgcmc[5] f_fgcmc[6]
62+
6863
run 25000

0 commit comments

Comments
 (0)