Change from 2D to 3D

thank you Axel and Nader

Actually I already changed dimension to 3 and wall conditions before posting this . But I was getting below errors after changing. I am checking more details .
Thank you for advice.

ERROR: Lattice style incompatible with simulation dimension (…/lattice.cpp:80)

Nexr time please post the error immediately, that makes answering a lot more efficient.

This error is caused by using a 2D lattice style (hex, sq2) in a 3D simulation box. If you want closest packing in 3D, you should use hcp. Alternatively there’s bcc and fcc.

And the lattice command doc page explains which styles are

2d vs 3d.

Steve