Custom thermostat only applied in two coordinate directions

Dear all-Users,

I want to implement a custom thermostat (preferably Nosé-Hoover) which applies the modified equations of motion only in two coordinate directions instead of all three.
Can someone tell me how I can approach that. I already looked at the fix_nh files but I can not properly determine where the equations of motions are really modified.

Thank you in advance for any help.

You could use a thermostat bias with compute temp/partial.
https://docs.lammps.org/compute_temp_partial.html

1 Like