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

Specify axes when using fix_orientation in packing.py #725

Open
chrisjonesBSU opened this issue Apr 12, 2020 · 0 comments · May be fixed by #734
Open

Specify axes when using fix_orientation in packing.py #725

chrisjonesBSU opened this issue Apr 12, 2020 · 0 comments · May be fixed by #734
Assignees

Comments

@chrisjonesBSU
Copy link
Contributor

Describe the behavior you would like added to mBuild

fix_orientation : bool or list of bools
Specify that compounds should not be rotated when filling the box

Right now, it looks like no rotations are possible if fix_orientation=True
It would be nice to be able to limit rotations about a certain axis, but allow them around another.

Describe the solution you'd like
Perhaps fix_orientation can be a list or tuple
(x_axis, y_axis, z_axis)

And the argument could be passed as:
fix_orientation = (True, True, False)

I'm not familiar enough with packmol yet to understand how this would be implemented within packmol's constraints. Maybe someone with more experience will have some thoughts or advice?

Additional context
This came up because I'm using mb.fill_box where I want to keep everything planar, so fix_orientation = True, but I would like to allow rotations about the z-axis.

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 a pull request may close this issue.

1 participant