-
Notifications
You must be signed in to change notification settings - Fork 885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InsertionElectrode bug fix & doc clarification #2257
Conversation
Note for future reference on the appropriate value for the terminal element entries when constructing the phase diagram. This value cannot be set infinitely high otherwise there will be precision errors in constructing the ConvexHull. http://www.qhull.org/html/qh-impre.html
Therefore the terminal elements need to have an energy comparable to the provided battery material energies. 10 can be an appropriate value while 1e9 is too big. If the value is set too big (values greater than 1e6), pymatgen's tests will fail due to incorrect convex hull construction that results in misidentification of the stable battery entries. |
Thanks @acrutt and for providing additional context here |
@mkhorton I believe this PR is ready to merge. Ultimately the changes are now limited to some documentation clarifications. Let me know if any other work is needed! |
Thanks! |
The InsertionElectrode.from_entries() method can use either ComputedEntries or ComputedStructureEntries - this has been added to the documentation. Setting strip_structures=True only works with ComputedStructureEntries so this has also been clarified.
In constructing the PhaseDiagram to compare the energies of the provided battery entries, the element energies were not always set high enough if there was a large energy difference between the empty host material and intercalated material. As a result, no intercalated entry was found to be stable and voltage pairs could not be formed. The factor for increasing the element_energy was set higher to 1e9 to avoid this problem.