Fixing two direction in NPT simulation

Dear all

I need to know is there any option to fix lx and ly in a NPT simulation?
I mean can we do a NPT simulation with just lz exchange to set the pressure of the system?

Thanks a lot,

Best Regards,



see the fix npt doc page for how to do it