One dimensional compression

Hello

Is it possible to perfom NPT MD simulations to compress a fluid in one dimension?

Thanks in advance

Goktug