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
The latest release of the LAMMPS conda package contains an interface to call matgl via ASE from LAMMPS. The advantage of this interface is that it is possible to use the internal functionality inside LAMMPS, like thermostats and fixes in combination with the modern machine learned interatomic potentials which are currently only supported by ASE.
Still currently it seems this functionality requires writing input files and parsing output files. It is not possible to use this functionality when using LAMMPS with python bindings. An example how to use matgl inside LAMMPS is available in: https://github.com/matbinder/lammps-matgl
I did some more local tests and while the matgl interface in LAMMPS seems to work with writing input files and parsing output files, it does not work with interactive LAMMPS calculation. Most likely this is related to the matgl interface calling python from LAMMPS and calling Python from LAMMPS does not seem to work when LAMMPS is already called from Python.
I did some more local tests and while the matgl interface in LAMMPS seems to work with writing input files and parsing output files, it does not work with interactive LAMMPS calculation. Most likely this is related to the matgl interface calling python from LAMMPS and calling Python from LAMMPS does not seem to work when LAMMPS is already called from Python.
You mean it tries to use the same LAMMPS instance for different calculations? Shouldn't it be detectable from the pyiron side?
You mean it tries to use the same LAMMPS instance for different calculations? Shouldn't it be detectable from the pyiron side?
No, I think it might be an issue how Python is build in conda, which is not compatible to the way how LAMMPS is calling Python. Still that is all just assumptions, what I can show is that it works when I run a LAMMPS input script but when I try to call the same script via the LAMMPS Python bindings then I get a similar error message as I posted it above. So I conclude that the matgl potential in LAMMPS is currently incompatible with calling LAMMPS via the Python bindings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The latest release of the LAMMPS conda package contains an interface to call
matglvia ASE from LAMMPS. The advantage of this interface is that it is possible to use the internal functionality inside LAMMPS, like thermostats and fixes in combination with the modern machine learned interatomic potentials which are currently only supported by ASE.Still currently it seems this functionality requires writing input files and parsing output files. It is not possible to use this functionality when using LAMMPS with python bindings. An example how to use
matglinside LAMMPS is available in:https://github.com/matbinder/lammps-matgl