Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
d8798cb3
Unverified
Commit
d8798cb3
authored
Sep 02, 2025
by
Peter Eastman
Committed by
GitHub
Sep 02, 2025
Browse files
Updated documentation on adding solvent (#5060)
parent
bc05f1c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
docs-source/usersguide/application/03_model_building_editing.rst
...urce/usersguide/application/03_model_building_editing.rst
+15
-4
No files found.
docs-source/usersguide/application/03_model_building_editing.rst
View file @
d8798cb3
...
...
@@ -110,10 +110,12 @@ Another option is to specify a padding distance:
modeller.addSolvent(forcefield, padding=1.0*nanometers)
This determines the largest size of the solute along any axis (x, y, or z). It
then creates a cubic box of width (solute size)+2*(padding). The above line
guarantees that no part of the solute comes closer than 1 nm to any edge of the
box.
A bounding sphere containing the solute is determined, and the box size is set
to (sphere diameter)+(padding). This guarantees no atom in the solute will come
closer than the padding distance to any atom of another periodic copy. If the
sphere diameter is less than the padding distance, the box size is set to
2*(padding) to ensure no atom is closer than the padding distance to two periodic
copies of any other atom.
Finally, you can specify the exact number of solvent molecules (including both
water and ions) to add. This is useful when you want to solvate several different
...
...
@@ -123,6 +125,15 @@ amount of solvent:
modeller.addSolvent(forcefield, numAdded=5000)
By default, the ``padding`` and ``numAdded`` options create a cubic box. You
can optionally specify a different shape:
::
modeller.addSolvent(forcefield, padding=1.0*nanometers, boxShape='dodecahedron')
Allowed values are ``'cube'``, ``'dodecahedron'`` (a rhombic dodecahedron), and
``'octahedron'`` (a truncated octahedron).
By default, :meth:`addSolvent` creates TIP3P water molecules, but it also supports other
water models:
::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment