You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
When using the Buckingham (exp-6) potential for Van der Waals interactions, the optimization algorithm can produce catastrophically collapsed structures with extremely large negative energies (e.g., -200,000 kcal/mol). This was observed even after disabling Coulombic forces, confirming the issue lies within the VDW potential itself.
This phenomenon is a well-known theoretical flaw of the exp-6 potential known as the "Buckingham Catastrophe":
Mathematical Form: The exp-6 potential is composed of an exponential repulsive term (A * exp(-B*r)) and an attractive r^-6 term (-C / r^6).
Unphysical Collapse: At very short interatomic distances (r -> 0), the attractive r^-6 term, which approaches negative infinity, grows faster than the exponential repulsive term, which only approaches a large finite value.
Energy Singularity: This creates a non-physical "energy well" or "hole" at very short distances, where the total potential energy dives towards negative infinity. The optimization algorithm, tasked with finding the minimum energy, can get trapped in this singularity, forcing atoms to overlap completely to achieve an absurdly favorable score.
The current implementation of potentials::buckingham_exp_6 does not have a protective mechanism to prevent this catastrophe, making it unstable for use in unconstrained optimization.
Tasks:
Modify the buckingham_exp_6 function.
Define a short-range cutoff distance or "hard wall" (e.g., 0.4 * r_min).
Add a guard clause at the beginning of the function. If the input distance dist is less than this cutoff, the function must not use the exp-6 formula.
Instead, for distances inside the wall, the function should return a purely repulsive, well-behaved potential, such as the r^-12 term from the Lennard-Jones potential (well_depth * (r_min / dist)^12). This ensures that the energy is always a large positive number at extremely short distances, effectively "plugging" the energy hole and preventing the collapse.