Dear Lammps users,
I want to minimize the potential energy of a slightly deformed 2D
system of LJ particles. to do that I used the following commands
change_box triclinic
displace_box all xy final 0.05 units box
fix 1 all enforce2d
min_style cg
min_modify line quadratic
min_modify dmax 0.02
minimize 1.0e-6 1.0e-8 100000 100000
The minimization fails with the stopping criterion "linesearch alpha
is zero". I've tried "min_style sd", "min_modify line backtrack" and
a larger value for dmax or tolE, but I always get the "linesearch
alpha is zero" after a few tens of steps. However if I decrease the
xy-tilt by a factor of 100 or more, then the minimizer works fine.
This situation is reproducible for different initial configurations.
In this simple example, why a small deformation makes the minimization
so difficult?
and
what are general remedies to avoid getting "linesearch alpha is zero"?
Also in 3D, the above error does not seem to occur. The minimization
for the deformed box works as perfectly as for the undeformed one.
Best,
Nima.