-
Notifications
You must be signed in to change notification settings - Fork 49
[WIP] Lammps py3 #697
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: master
Are you sure you want to change the base?
[WIP] Lammps py3 #697
Conversation
|
Looking at lammps/lammps#419 I think the most recent version of the Python interface is Python3 compatible. |
# Conflicts: # .travis.yml
|
Hello everybody, I wanted to use OPS for my research, therefore i need this LAMMPS implementation and are willing to work on it. Where should make my pull requests than? Cheers, |
|
Hi @king-michael, Glad to hear of your interest! I think the most advanced version of the LAMMPS support is currently in my fork, in the @jhprinz, do you mind if I officially take over the work on adding LAMMPS support? As of yesterday, ensuring that OPS supports LAMMPS is literally my job description, so it makes sense for me to take the lead on a PR. @king-michael: We're currently finalizing for the 1.0 release, which will be tied to the final version of the papers (we've replied to reviewer comments on the papers and are hopeful that they will be published soon). New engines will only be added to the core after that. It seems that you're comfortable working from an experimental branch, so I'd recommend starting out working from that I would recommend holding off on any contributions for the very short term. My suggestion is that @jhprinz and I merge the LAMMPS engine under an If there's something that you think really needs to be changed immediately, make those PRs against my At least, those are my suggestions. @jhprinz, any other thoughts? |
|
@dwhswenson: I allready checked out There are a few things i found which can be improved (adding gpu support, reducing API calls, some other minor things). But i ran also in some bugs, as it is: this version do not support NPT, and is only suitable for non-bonded systems! (LAMMPS works internally with a wrapped coordinates and an image flag in each dimension. This means restoring only the wrapped position (e.g. for a new shoot) may lead after some times to bonds spanning over a whole box, and with it to PPPM errors, atoms shooting through the box due to high bond energies and so on. I'm happy to discuss all these things in detail in some pull request (at the moment i started to find work arounds but i guess with some insights on the Thank you for the gist, i will have a look into it. |
|
Hi everyone, I was searching for ways to implement TPS with LAMMPS and found this. Can you please tell me the updates on the lammps compatibility? I am comfortable with LAMMPS and its python interface, so I can help as well. Please reply soon. Thanks, |
|
Hi @mayank-agr, I think @king-michael has the most advanced setup for LAMMPS with OPS so far. I took @jhprinz's work here and added to it in order to get a minimal working example going, but didn't have a real-world application for it. I think that @king-michael fixed important problems that would be essential for real-world use (like correctly reloading system with bonds when there are periodic boundary conditions). @king-michael : Do you have a branch that could be made into a pull request? I would recommend closing this PR and building off of yours instead. If it needs more stress testing, we could put it in as "experimental" and continue from there. |
|
Thanks for the reply, David. I believe @king-michael has a pull request to your lammps branch here: I would appreciate if if I could start with a merged experimental branch, I will keep a watch for pull requests to get resolved. Thanks, |
|
Sorry, i stopped working on this quite some time ago. In short: I had problems with bonded systems and the image flag (i think i solved it but i wasn't sure). I just implemented everything i needed from LAMMPS into OpenMM and used OpenMM instead. This was faster for me than riddling around if every thing is correct (and it was faster in terms of calculations, as my system was small enough for a single GPU). @dwhswenson I will just close the remaing pull request on my repo so there wont be any confusions. @mayank-agr feel free to you use what i did, but the difference are quite small. If your LAMMPS engine is crashing check the bonds (fix local -> compute bonds or VMD) they were screwed up in my case after some resetting of the positions but not changing the image flags. Notes on implementing LAMMPS forces into OpenMM
|
|
Hi @king-michael thanks for the updates and suggetions. I am quite new to this, so let's see how much I try to keep up with lammps. @both: I see that there is no overlap between @dwhswenson jhp_lammps and @king-michael patch_jhp_lammps but the latter is the most recently updated. I am not highly familiar with git but if the pull requests are solved in a way that I can download the most recent version from @dwhswenson then it will be easier for me to change/work on it. Thanks, |
Update of the lammps example with py3 compatibility. Note though, that lammps python package requires still python2.7!!! afaik
Feel free to add to this!
content of the
scriptvariable