I don't know what your model is. But you can use NPT to compute
the pressure with all the atoms (the only option), but only
integrate the atoms in the group. See also the dilate keyword if
you don't want some atoms (e.g. the boundary) to move when the
box dilates.
Friends,
I run the simulation again using the fix npt and when the equilibration takes place the molecules still flyoff from the surface.Any idea what is going wrong? The initial temperatures are very high. The layers fly off and then do not return to the original lattice positions. I am attaching the log files herewith.
Code:
dimension 2
units metal
boundary p p p
atom_style atomic
neighbor 3 bin
neigh_modify delay 1
lattice hex 1
region box block 0 142.1 -75 75 -0.25 0.25
create_box 5 box
mass 1 1
mass 2 1
mass 3 56
mass 4 56
mass 5 56
region lof block 0 141.1 0 1.1 INF INF
region lo-slab block 0 141.1 1.1 8.1 INF INF
create_atoms 1 region lo-slab
create_atoms 2 region lof
pair_style eam
pair_coeff * * cuu3.eam
group mobile region lo-slab
group mobile type 2
group boundary region lof
Friends,
I run the simulation again using the fix npt and when the equilibration
takes place the molecules still flyoff from the surface.Any idea what is
going wrong? The initial temperatures are very high. The layers fly off and
then do not return to the original lattice positions. I am attaching the log
so your initial configuration is of very high potential energy.
you have to find out whether this is ok or not. and either
correct your initial configuration or run a minimization first.
There are several things wrong with your input script.
You are running a 2d problem, and not using fix enforce2d.
See the howto in the manual on running 2d simulations. You
are also using EAM potentials which are parameterized for 3d,
not 2d. The number of neighbors per atom and hence the density
functional around each atom will be way off for a 2d system.
Thus you will get bogus energies and forces.