-
Notifications
You must be signed in to change notification settings - Fork 81
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
Opt out of solute centering in solvate #974
Comments
Did this ever get fixed? Seems like a simple enough fix in the arguments to mbuild.packing.solvate! Marking this as a good first issue. |
I am happy to contribute this if the proposed fix above is sufficient. Or, do you want to wrap this into PR #787 that you linked? |
Hi @mphoward, it would be great if you can open a PR with the solution posted above! |
Thanks, will do, probably in 1–2 weeks! (We are starting a new semester here on Tuesday.) The timing on this is excellent because I am just about ready to really want to use this feature in production. =) |
@mphoward Yeah that would be great. I think conversation has started back up on the PR mentioned above, which should be a more holistic overhaul of the PackMol functionality in mBuild. @chrisjonesBSU seems to have a few different things that he would like to wrap in all at once. I would suggest looking at the API that the PR is proposing to add using a The two questions I have are:
|
This was focused on just the |
I agree that in the interest of usability that we keep some of the more applicable and useful packmol options as their own parameter in the individual packing functions. Such as This makes the useful packmol options more accessible rather than expecting the user to read through and understand all of the possible packmol parameters. |
Implemented in #1144 |
Describe the behavior you would like added to mBuild
It would be nice to be able to opt out of centering the solute in
mbuild.packing.solvate
. If the solute is large, translating the center of mass may take it outside the box, leading to issues with packmol.Describe the solution you'd like
Add an option like
center=True
tombuild.packing.solvate
. Then, update this template stringmbuild/mbuild/packing.py
Lines 30 to 36 in 0eca09d
so that it only uses the
center
option & nonzero fixed whencenter=True
. Otherwise, only usefixed 0 0 0 0 0 0
.Describe alternatives you've considered
I've tried workarounds for this, but I couldn't find something that keeps the solute from translating.
The text was updated successfully, but these errors were encountered: