Hello Dr. akohlmey,
,
Thank you for your response., and I apologize for the missing information! Here’s my input file below, I would appreciate if you can give advice where i’m going wrong :
(The lammps version 2020-03-03 on linux).
units real
dimension 3
boundary p p p
atom_style full
read_data data.now
molecule h2omol TIP4P2005.txt
lattice sc 1
region waterbox block 0 11.0025815964 0 8.25194 9 25 units box
create_atoms 0 region waterbox mol h2omol 45585 units box
lattice none 1
group Pd type 1
group h2o type 2 3
pair_style hybrid/overlay eam/fs lj/cut/tip4p/long 2 3 1 1 0.1546 10
pair_coeff * * eam/fs Pd_Zhou04.eam.alloy Pd NULL NULL
pair_coeff * * lj/cut/tip4p/long 0 0
pair_coeff 2 2 lj/cut/tip4p/long 0.008 3.1589
pair_coeff 3 3 lj/cut/tip4p/long 0.0 0.0
kspace_style pppm/tip4p 1.0e-4
kspace_modify gewald 0.2428
bond_style harmonic
angle_style harmonic
bond_coeff 1 0 0.9572
angle_coeff 1 0 104.52
fix mynvt1 Pd nvt temp 300 300 100
fix mynvt2 h2o nvt temp 300 300 100
fix wshake h2o shake 0.0001 50 0 b 1 a 1 mol h2omol
compute_modify thermo_temp dynamic/dof yes
compute_modify mynvt1_temp dynamic/dof yes
compute_modify mynvt2_temp dynamic/dof yes
timestep 1.0
thermo 100
thermo_style custom step pe ke etotal
thermo_modify flush yes
dump 1 all custom 100 traj_nvt.lammpstrj id type q x y z
dump_modify 1 sort id
run 2000
reset_timestep 0
#Gcmc
variable tfac equal 5.0/3.0 # (3 trans + 2 rot)/(3 trans)
fix mygcmc h2o gcmc 100 100 0 0 54341 300 -0.5 0.1 mol h2omol tfac_insert ${tfac} group h2o shake wshake region waterbox
variable oxygen atom “type==2”
variable hydrogen atom “type==3”
So, I still have the same error on the fix gcmc part. From my understanding in this input file, the block of water insertion in gcmc should be the same as waterblock I specified above. (range: 0 11.0025815964 0 8.25194 9 25) because I’ve added the units box in region command. So I assumed when I called the gcmc region as in water box, it should be able to insert/delete the water molecules in waterblock region.
Thank you for your help and your time again !