Dear LAMMPS Users and Developers,
I have a LAMMPS input file that creates two copper slabs (below each other) and then minimize the structure by cg and after that I run an NVT simulation using Nosé-Hoover thermostat.
My goal is to insert oxygen molecules into this optimized structure in a specific way:
-oxygen molecules should be at least 3.5 Å from each other
-oxygen molecules should be at least 6 Å from copper atoms
I checked the molecule command but do not know how I could define the distances between the molecules-molecules (O2-O2) and molecules-atoms (Cu-O2).
I use ReaxFF.
Thank you for your help,
Patrik
PS. I could not attach my file so I copied the input:
LAMMPS Input Script for Two Flat Copper Slabs with ReaxFF Potential and Charge Equilibration
Set units and atom style
units real
atom_style charge
Define the simulation box
lattice fcc 3.615 orient x 1 -1 0 orient y 1 1 -2 orient z 1 1 1
region total_box block -161 161 -161 161 -40.5 40.5 units lattice
create_box 1 total_box
Create the first copper slab in the lower half of the box
region slab1 block -20 -8 -20 -8 -1.5 1.5 units lattice
create_atoms 1 region slab1
mass 1 63.546
Create the second copper slab in the upper half of the box
region slab2 block -20 -8 -20 -8 -6 -3 units lattice
create_atoms 1 region slab2
Define the reactive force field
pair_style reaxff lmp_control
pair_coeff * * ffield.reax.cuo Cu
Charge equilibration for ReaxFF
fix 2 all qeq/reax 1 0.0 10.0 1e-6 param.qeq
Minimize the structure using conjugate gradient method
min_style cg
minimize 1e-4 1e-6 1000 10000
Define the simulation settings
timestep 0.001
thermo 100
Apply Nosé-Hoover thermostat for NVT ensemble to equilibrate at 300K
fix 1 all nvt temp 300.0 300.0 50
Run the equilibration
run 10000
Output final configuration
write_data final_configuration_middle.data