Dear LAMMPS users,
Greetings!
I am trying to add DMSO (C2H6OS) molecule into zeolite templated carbon structure using fix gcmc command, however, I am continuously getting the error below;
"ERROR: Fix gcmc molecule command requires that atoms have molecule attributes (src/MC/fix_gcmc.cpp:538)’’
Here is given my input script. Kindly guide me how to resolve this issue.
-------------------- Init Section -----------------------
units real
boundary p p p
atom_style charge
pair_style lj/cut/coul/long 12.8
kspace_style ewald 1.0e-5
kspace_modify gewald 1.0e5
-------------------- Atom Definition Section ------------
region cathode block -9.870000 30.310000 -10.352500 29.123502 -6.588499 19.695501
read_data MFI.data #extra/bond/types 1 extra/angle/types 1 extra/dihedral/types 1 extra/improper/types 1 extra/bond/per/atom 4 extra/angle/per/atom 2 extra/dihedral/per/atom 2 extra/improper/per/atom 2 extra/special/per/atom 2 #extra/atom/types 1 # YOU CAN CHANGE IT FOR YOUR MATERIAL
replicate 2 2 2
group C type 1 # MAKE A GROUP WITH THE ATOMS OF THE METAL SURFACE
molecule elec dmso.txt offset 1 0 0 0 0 #INCLUDE YOUR DESIRED MOLECULES
group dmso type 2 3 4 5 #MAKE SURE THE NUMBERS CORRELATES WITH THE LIST IN THE DATA.IN FILE
group S type 2
group O_solvent type 3
group C_solvent type 4
group H_solvent type 5
group elecdyn dynamic dmso every 1
#group C1 type 1 # C(MOF) ;THESE GROUPS ARE FOR SET CHARGES TO THE ADSORBENT ATOMS
#set group C1 charge 0.01
pair_coeff * * 0.0 0.0 # rigid MOF ==> no LJ interaction between ztc atoms
pair_coeff 1 2 0.139499 3.7 # C(ztc)-S(dmso) LJ ;
pair_coeff 1 3 0.081682 3.4 # C(ztc)-O(dmso) LJ
pair_coeff 1 4 0.065854 3.74 # C(ztc)-C(dmso) LJ
pair_coeff 1 5 0.036529 3.04 # C(ztc)-H(dmso) LJ
#pair_coeff 2 2 0.350 4.0 # S(dmso)-S(dmso) LJ
#pair_coeff 3 3 0.120 3.4 # O(dmso)-O(dmso) LJ
#pair_coeff 4 4 0.078 4.08 # C(dmso)-C(dmso) LJ
#pair_coeff 5 5 0.024 2.68 # H(dmso)-H(dmso) LJ
-------------------- Settings Section -------------------
compute_modify thermo_temp dynamic yes
neighbor 3 bin
neigh_modify every 1 delay 0 check no one 100000 page 5000000
neigh_modify exclude group C C
variable numatomad equal (atoms-1680) #COUNTING THE NUMBER OF ATOMS INCLUDED IN THE BOX WITHOUT THE ztc
variable elecad equal count(elecdyn)/10 # CALCULTING THE NUMBER OF MOLECULES INSTEAD OF THE NUMBER OF ATOMS
-------------------- Run Section ------------------------
fix 1 C rigid single force 1 off off off torque 1 off off off
#fix myrigid dmso rigid/small
#fix 2 dmso deposit 300 0 10 12456 mol elec region cathode
fix fxgc dmso gcmc 1 1 1 0 124356789 100.0 -0.5 0.5 mol elec pressure 1000 full_energy
thermo 100
thermo_style custom step epair temp press density v_elecad
dump 1 all custom 100 gcmc*.lammpstrj id type x y z
run 3500 #RUN THE SIMULATION FOR 500 STEPS
write_data MFI_dmso1.out
Looking forward to hear back.
Regards
Khizar Hayat