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

read/write lammps molecule templates #15

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

jrgissing
Copy link

@jrgissing jrgissing commented Aug 17, 2018

This PR adds read/write support for LAMMPS molecule templates to topotools.

readlammpsmol:
Read in atom coordinates, properties, bond, angle, dihedral and other related topology info from a molecule template file, i.e. a file suitable for the molecule command. This can be used to check a molecule template for its validity (e.g. for fixes that utilize molecule templates), or for manipulations from within VMD. This subcommand creates a new molecule in VMD and returns its molecule id or -1 in case of failure. The -sel parameter is currently ignored.

writelammpsmol:
Write out atom coordinates, properties, bond, angle, dihedral and other related topology info stored inside VMD to a molecule template file, i.e. a file suitable for the molecule command. Using the optional 'typelabels' flag will trigger writing a molecule template file with typelabel support requiring LAMMPS version 15Sep2022 or later. By default a traditional molecule template with numerical types will be written. This way VMD can be used to build LAMMPS input with Tcl scripting and convert existing inputs from other MD codes to be used in LAMMPS. Only data that is present will be written.

This PR also adds [first|last|step] options for readvarxyz, similar to other topotools commands.

@jrgissing
Copy link
Author

@akohlmey sorry for my original sparse explanation for this PR. It should now be ready to go. It would be great to get this included in topotools, as I plan to make use of it for some improved REACTER (fix bond/react) setup tutorials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant