I am trying to generate a fcc copper box of dimensions 75 x 50 x 30 angstroms. In this system I want to manually add a few hydrogen atoms at random positions. Then I would like to thermalize the system at a particular temperature, say 450 K. Eventually, after the system has thermalized to that particular temperature, I would like to calculate the MSD and thereby obtain the diffusion coefficient. Until now what I have done are the followings:
1) Generated a copper box using the following script:
units metal
dimension 3
boundary p p p
atom_style atomic
atom_modify map array
lattice fcc 3.61
region box block 0 75 0 50 0 30 units box
create_box 1 box
lattice fcc 3.61 orient x 1 0 0 orient y 0 1 0 orient z 0 0 1
create_atoms 1 box
mass 1 63.5460
write_data Data.R1
print “Done”
2) In the generated Data.R1 file, the first few lines were:
9996 atoms
2 atom types
0.0000000000000000e+00 7.5000000000000000e+01 xlo xhi
0.0000000000000000e+00 5.0000000000000000e+01 ylo yhi
0.0000000000000000e+00 3.0000000000000000e+01 zlo zhi
Masses
1 63.5460
Atoms # atomic
1 1 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0 0 0
2 1 1.8049999999999999e+00 1.8049999999999999e+00 0.0000000000000000e+00 0 0 0
So, in order to incorporate Hydrogen atoms for a test run, I added a new mass, the mass of hydrogen in the following manner:
Masses
1 63.5460
2 1.00794
and also, to place a hydrogen atom at the second atoms position, I replaced the atom type with 2 instead of 1 in the second row second column of the following lines
1 1 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0 0 0
2 2 1.8049999999999999e+00 1.8049999999999999e+00 0.0000000000000000e+00 0 0 0
My first question is if this is a useable/correct method of adding hydrogen atoms in this system? If not, in what ways can I add hydrogen atoms in the copper system?
Next what I did was thermalized the system (I think) at 450 K using the following code snippet:
units metal
dimension 3
boundary p p p
atom_style atomic
atom_modify map array sort 0 0
-------------Create atoms and box-------------------------
read_data Data.R1
region e1 block INF INF INF INF INF INF
group e1 dynamic all region e1
-------------Define Interatomic Potential-------------------------
pair_style bop
pair_coeff * * CuH.bop.table Cu H
comm_modify cutoff 11.4
thermo_modify lost ignore
velocity all create 450 25674 dist gaussian
fix 1 all npt temp 450 450 0.1 iso 0.0 0.0 10
fix 2 all momentum 1 linear 1 1 1
minimize 1.0e-8 1.0e-8 1000000 1000000
timestep 0.001
reset_timestep 0
compute 1 e1 temp
thermo 20000
dump 2 all atom 20000 copper_box_300K2.lammpstrj
dump 3 all custom 100000 Copper2_box_300k_final.dump id type x y z vx vy vz
thermo_modify lost ignore
restart 1000000 poly.restart
run 10000000
unfix 1
write_data Data25.R1
write_restart Copper2_box_300k.restart
print “Done”
IS THIS CORRECT?