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

Coordinates Swapped When Generating Ih Gro file #9

Closed
mberrens opened this issue May 10, 2021 · 3 comments
Closed

Coordinates Swapped When Generating Ih Gro file #9

mberrens opened this issue May 10, 2021 · 3 comments

Comments

@mberrens
Copy link

mberrens commented May 10, 2021

When generating a .gro file of an Ih ice slab with a tip4p water model using genice the coordinates system were switched around such that what was x should be y what was y should be z and what was z should be x.

Using this exact code in Colab:
from genice2.genice import GenIce
from genice2.plugin import Lattice, Format, Molecule

lattice = Lattice("Ih")
formatter = Format("gromacs")
water = Molecule("tip4p")
ice = GenIce(lattice, rep=[8,8,6]).generate_ice(water, formatter)
print(ice)

Visualizing this file in VMD the basal facet (which should be in the z direction) was in the y direction

@vitroid
Copy link
Owner

vitroid commented May 11, 2021

You are right. That is the oldest structure we made by hand, and therefore the axes are not correct.

I update the GenIce2 on PyPI repository (2.1b4). Please re-install it via pip command, and specify "1h_unit" instead of "1h".

@vitroid
Copy link
Owner

vitroid commented May 11, 2021

New sample code for Colab includes the structure of 1h_unit rendered with py3dmol.

@mberrens
Copy link
Author

great, thanks so much!

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

No branches or pull requests

2 participants