Periodicity with nwall=1

GROMACS version: 2026
GROMACS modification: No

Hi,

I was wondering how periodicity in the z direction is affected when using nwall=1. Are atoms allowed to cross the z=Lz boundary (e.g. in a cubic box), and if not how are they stopped from doing so? Or maybe due to minimial images applied to the walls this is the same of having nwall=2, but for the same wall-atomtype?

I was also wondering if there’s a reson for not having more than one wall-type (e.g. instead of one per wall), other that it’s simply not implemented.

Michele

nwall=1 only worked with the Verlet non-bonded scheme. As the old non-bonded scheme was removed many years ago, nwall=1 no longer works. We should document this.

Regarding the wall type, I simply never though that someone would want to use different wall types.

To clarify: the old non-bonded scheme supported unbound dimensions.

OK, that makes sense. Thanks for the clarification.

I was thinking about a setup with a “long range” 9-3 potential on one edge and a “short range” 12-6 on the other. I can try to implement it myself, it should not be too complicated right?

No, that’s just changing wall_type from a scalar to a vector.