Skip to content

Commit

Permalink
Merge pull request #49 from summeraz/develop
Browse files Browse the repository at this point in the history
Added water box
  • Loading branch information
ctk3b committed Feb 23, 2015
2 parents 3e2e68e + 6394368 commit 1121e33
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Empty file.
18 changes: 18 additions & 0 deletions mosdef_gomc/components/solvents/water.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import numpy as np

from mbuild.compound import Compound
from mbuild.tools.tiled_compound import TiledCompound


class Water(Compound):
"""An SPC water box."""
def __init__(self):
super(Water, self).__init__()

self.append_from_file('spc216.pdb',
relative_to_module=self.__module__)
self.periodicity = np.array([1.0, 1.0, 1.0])

if __name__ == "__main__":
s = Water()
s.visualize(show_ports=True)

0 comments on commit 1121e33

Please sign in to comment.