-
Notifications
You must be signed in to change notification settings - Fork 24
Remove hybrid styles from LAMMPS export #1203
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
base: main
Are you sure you want to change the base?
Remove hybrid styles from LAMMPS export #1203
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Heh, I forget exactly why I went with "hybrid" potentials but at the time I thought it was the only way to get some detail correct. I'd be happy to be wrong - I never used them when I was running simulations myself. Could you drop the |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1203 +/- ##
==========================================
- Coverage 93.60% 93.31% -0.30%
==========================================
Files 70 70
Lines 6039 6039
==========================================
- Hits 5653 5635 -18
- Misses 386 404 +18 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I'm not particularly familiar with github actions. I modified the ci.yaml file and it seems to have passed most of the tests, although a few are failing from what looks like an openeye license error. Let me know if there's a more appropriate way to modify the workflow for this pull. I've also not used hybrid potentials in lammps, but have been using this modification myself for a while now and thought it would be helpful for others to have in the official repository. |
@benjamindjensen what version of LAMMPS are you using? What version(s) do you expect this to work with? |
Nevermind, I was making an error elsewhere in my tooling. I've grabbed these changes locally and everything looks good. I'm opening this in a separate PR for boring reasons relating to our automation, but I think it's good to go. I assume that @mrshirts and @timbernat are okay with this change? |
Great! Thank you for including this in Interchange. |
Description
One of the changes identified in #955 is removing hybrid styles from the LAMMPS export. Hybrid styles are not currently required for OpenFF potentials. Including hybrid LAMMPS potentials in a data file is inconvenient for users because LAMMPS will not write hybrid coefficients to restart/data files for subsequent simulations, requiring a user to manually implement the coefficients in the LAMMPS script instead of the data file. If OpenFF requires hybrid styles in the future (using both LJ and Buckingham potentials for example) I would recommend providing the force field coefficients in the LAMMPS script instead of the data file.
Checklist