I have a 20a x 17a x 20a simulation box filled with bcc tungsten atoms. What lammps command can I write to make 20a x 2.5a x 20a at the bottom of the box "immobile"?

The script below shows how my atoms were created:

# ---------- Create Atoms --------------------------

## define crystal structure and lattice constant a_0

## define direction vectors, i.e., set x=[100], y=[010], z=[001] and origin point.

variable a_0 equal 3.1648

lattice bcc 3.1648 orient x 1 0 0 orient y 0 1 0 orient z 0 0 1 &

origin 0.1 0.1 0.1

region box block 0 20 0 17 0 20 ## define box sizes along x, y, z (in the unit of a_0)

create_box 1 box ## create the simulation box, allowing a max of one specie

create_atoms 1 box ## create type-1 metal atoms in the box

More Emmanuel Anuoluwa Bamidele's questions See All
Similar questions and discussions