How do I do energy minimization in lammps with NVT ensemble ?

I am using the following command and it does not seem to work. It stops at extremely high energy and gives me the error zero search line alpha. I am using the following command.

# initial minimization

fix 1 mobile nvt temp 315.00 315.00 100.0

min_style sd

minimize 1.0e-10 1.0e-10 200000 200000

write_data 100PU_water.minimized

unfix 1

What am I doing wrong ? If I use min_style as quickmin it runs for the entire duration but does not work in SD. Most importantly I need to do it in NVT. How do I do that ?

Thank you

Similar questions and discussions