Potential variation on z-axis

Hi
Do you have any code for potential variation on z-axis. and i’m attaching one file of lammps can you please add a code of potential variation dependent on z-axis.

thanks,
phani

in.k1 (4.11 KB)

Your Q is unclear. Potential of what?

Steve