Skip to content
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

Add support for Lennard-Jones PME to 'energy' command. #666

Merged
merged 37 commits into from
Feb 15, 2019

Conversation

drroe
Copy link
Contributor

@drroe drroe commented Feb 14, 2019

This PR adds support for calculating LJ energy via PME - as with electrostatic PME the reciprocal part of the energy is handled by the HelPME library from Andy Simmonett (@andysim). Adds the following keywords to energy:
ljpme: Activates Lennard-Jones PME with default Ewald coefficient (0.4) - this is separate from the coefficient used for electrostatics.
ewcoefflj : Activates Lennard-Jones PME with given Ewald coefficient.
ljswidth : If specified, Lennard-Jones (PME or non-PME) will be determined using a switching function with given width.

The energy is properly corrected for Lorentz-Berthelot combining rules. Tested against the LJ PME energies output by CHARMM (implemented by Andy). The code could use some cleaning and optimization but it works.

This also implements a new command, catcrd, which can be used to concatenate COORDS data sets:

catcrd <set name0> <set name1> [<set nameX> ...] name <name>

This command proved very useful when testing the LJ PME implementation.

Also fixes bug where box was not being updated for COORDS data sets after using box command.

Adds tests for LJ PME and catcrd.

Daniel R. Roe added 29 commits February 7, 2019 15:19
@drroe drroe added bugfix New Command New command for cpptraj labels Feb 14, 2019
@drroe drroe self-assigned this Feb 14, 2019
@swails
Copy link
Contributor

swails commented Feb 14, 2019

The PR of the beast!

@drroe
Copy link
Contributor Author

drroe commented Feb 15, 2019

ironmaiden

@drroe drroe merged commit 0520b08 into Amber-MD:master Feb 15, 2019
@drroe drroe deleted the lj_pme branch February 15, 2019 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants