Compress a box with wall

Hello ,
I’ve made a slab with two walls interacting with ellipsoids inside. Now, I want to make the two walls closer and run NVT for this system of ellipsoids. How could I make them move a definite distance in every time-step?
( I should mention that I have added this new fix wall which interacts with ellipsoids and it just gets wall coordinate, epsilon, sigma and cutoff as input)

Thanks a lot,

If you implemented it like the other walls, e.g. fix wall/lj96,
then the coordinate of the wall can be a variable, which means
you can make it move over time.


Thank you Steve, It worked well :slight_smile: