You need to define a wall that contains the atoms.  There are
a couple fix wall commands in LAMMPS.  You want one that
implements a spherical or cylindrical wall.  So use one of those
as an example and modify it to calculate the sphere/cylinder
boundary and apply the potential you choose.  I.e. you'll have
to write code for this.
Steve