Adsorption of hydrogen on carbon

Hello
I have problem with atoms of carbon in my simulation. I want them to be fixed and i use this script:

units metal
newton on
atom_style full

read_data CHmin.data

pair_style airebo 2.5
pair_coeff * * /home/adamo/Dokumenty/adsorpcja/filip/CH.airebo C H
group carbon type 1
group hydro type 2

fix 1 hydro nve
fix 2 carbon move linear NULL NULL NULL units box
timestep 0.0001

thermo 1
minimize 0 1.0e-7 1000000 1000000
dump MyDump all custom 1 CHmin.atom type q x y z

run 0

but they are not fixed. What i do wrong?
Filip

Hello
I have problem with atoms of carbon in my simulation. I want them to be fixed and i use this script:

Better to use the term ‘immobilized’
instead of of ‘fixed’.

units metal
newton on
atom_style full

read_data CHmin.data

pair_style airebo 2.5
pair_coeff * * /home/adamo/Dokumenty/adsorpcja/filip/CH.airebo C H
group carbon type 1
group hydro type 2

fix 1 hydro nve
fix 2 carbon move linear NULL NULL NULL units box
timestep 0.0001

thermo 1
minimize 0 1.0e-7 1000000 1000000
dump MyDump all custom 1 CHmin.atom type q x y z

run 0

but they are not fixed. What i do wrong?

Where do you immobilize you carbons?

Have you looked at any of the examples that come with lammps? Or looked through the many discussions on this topic in the mailing list archives?

Axel