slab creation

Hi lammps users
I want to define surface energy of fcc copper metal
so i need to define cohesive energy of slab with 2 dimensional periodic boundary condition
but i don’t know how to create the slab

A slab (with two surfaces) can be easily created by changing the boundary condition from periodic to non-periodic.

Please see boundary keyword of the change_box command ( for more info.