-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parmed Conversion Improvement (#658)
* Include ImproperType reading in "from_parmed" This PR is branched from PR #644. The parmed conversion to GMSO topology was not able to read in various Improper connections to GMSO. It would aggregate them with the Dihedral connections, from when GMSO did not have explicit treatment of impropers, similar to ParmEd. This PR aims to check a ParmEd object for structure.impropers or structure.dihedrals with the dihedral.impropers flag set to True and convert those to `gmso.Impropers`. Likewise, it looks to read in periodic or harmonic impropers and generate the correct `gmso.ImproperType` parametric potential for that type, if the flag `refer_types` is set to True in the `from_parmed` call. * Add pmd_improper_types_map function to convert_parmed * Generate a parametric potential with harmonic type expression from pmd.impropers * Generate a parametric potential with periodic type expression from pmd.dihedrals and dihedral.improper=True * Validate testing with foyer opls_validation when using functions in PR #644 Harmonic type expression for impropers is taken from https://manual.gromacs.org/current/reference-manual/functions/bonded-interactions.html#improper-dihedrals-harmonic-type This uses Xi as the independent variable. If someone testing this PR can validate that this is the formalism we want to use when reading in ImproperTypes from ParmEd improper_types, that would be a good sanity check. The periodic type expression is taken from https://manual.gromacs.org/current/reference-manual/functions/bonded-interactions.html#equation-eqnperiodicpropdihedral with phi as the independent variable. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add test for number of impropers from NNdimethylformamide molecule * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * WIP- include gmso in impropertype testing * WIP- Add support for NoneTypes in site charge/mass * Address Review comments and create impropertype expression from HarmonicImproperPotential in library * WIP- Add testing for impropers * Modification for improper potential forms from the PotentialTemplateLibrary * WIP- Use id instead of object for storing mapping; impropertypes test * WIP- combined test for dihedral/impropertypes * Fix test case and id mapping in conversion * Add tests for harmonic impropers * Add proper properties for improper_types * WIP-Additional test cases Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Umesh Timalsina <umesh.timalsina@vanderbilt.edu>
- Loading branch information
1 parent
04f2845
commit 9bfa833
Showing
4 changed files
with
490 additions
and
47 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.