Skip to content

Commit

Permalink
add spce water fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
daico007 committed Nov 13, 2023
1 parent 6a674ce commit b243619
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions gmso/tests/base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,24 @@ def _typed_topology(n_sites=100):

return _typed_topology

@pytest.fixture
def spce_water(self):
spce_comp = mb.lib.molecules.water.WaterSPC()
spce_ff = ForceField(get_fn("spce.xml"))
spce_top = spce_comp.to_gmso()
spce_top.identify_connections()

spce_top = apply(spce_top, spce_ff, remove_untyped=True)

for site in spce_top.sites:
site.restraint = {
"kx": 1000 * u.Unit("kJ/(mol*nm**2)"),
"ky": 1000 * u.Unit("kJ/(mol*nm**2)"),
"kz": 1000 * u.Unit("kJ/(mol*nm**2)"),
}

return spce_top

@pytest.fixture
def water_system(self):
water = Topology(name="water")
Expand Down

0 comments on commit b243619

Please sign in to comment.