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

tip4p/ice #20

Open
Bnn6 opened this issue Sep 21, 2024 · 3 comments
Open

tip4p/ice #20

Bnn6 opened this issue Sep 21, 2024 · 3 comments

Comments

@Bnn6
Copy link

Bnn6 commented Sep 21, 2024

if I want the structure to satisfy the tip4p/ice force field,what kind of command should I use?

@rusl2019
Copy link
Contributor

To make a 3x3x3 units of a ice Ih (1h) of TIP4P/Ice water in GROMACS .gro format:

genice2 1h --water ice --rep 3 3 3 > 1h.gro

@Bnn6
Copy link
Author

Bnn6 commented Sep 22, 2024

Ok thanks. I originally wrote in this form, but when I converted the gro file to a data file with Ovito, I found that the mass of the virtual atom is 1, when in fact the mass of the virtual atom in tip4p/ice should be close to 0. It should be a problem that Ovito is not precise enough in the conversion.

@vitroid
Copy link
Owner

vitroid commented Sep 22, 2024

Thank you for your report, but as far as I understand, the mass of the virtual site of TIP4P/Ice is correctly set to zero in the recent versions of GenIce2.

Here is a short code to calculate the center of mass of a TIP4P/Ice molecule:

import numpy as np
import genice2.molecules.ice
water = genice2.molecules.ice.Molecule()
# calculate the center of mass
print(np.array([16, 1, 1, 0]) @ water.sites_)

The result is [0. 0. 0.].

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

3 participants