BioSimSpace.Solvent¶
The Solvent package contains tools for solvating molecular systems.
Functions¶
|
Solvate with the specified water model. |
|
Add SPC solvent. |
|
Add SPC/E solvent. |
|
Add TIP3P solvent. |
|
Add TIP4P solvent. |
|
Add TIP5P solvent. |
Return a list of the supported water models. |
Examples
Print the list of supported water models.
import BioSimSpace as BSS
print(BSS.Solvent.waterModels())
Solvate a molecule in a 5 nanometer
periodic box of TIP3P water with an ion concentration of 0.1 mol per litre.
import BioSimSpace as BSS
# Load a system and extract the first molecule.
molecule = BSS.IO.readMolecules("amber/ala/*")[0]
# Solvate the molecule.
solvated = BSS.Solvent.tip3p(
molecule=molecule,
box=3*[5*BSS.Units.Length.nanometer],
ion_conc=0.1
)
The same as above, but instead passing “TIP3P” as an argument to the
solvate
function. This function should
be used in any interoperable workflow Node
where the water model is specified as an input requirement by the user.
import BioSimSpace as BSS
# Load a system and extract the first molecule.
files = BSS.IO.expand(BSS.tutorialUrl(), ["ala.top", "ala.crd"], ".bz2")
molecule = BSS.IO.readMolecules(files)[0]
# Solvate the molecule.
solvated = BSS.Solvent.solvate(
"tip3p", molecule=molecule,
box=3*[5*BSS.Units.Length.nanometer],
ion_conc=0.1
)
Solvate the molecule with a shell of at least 2 nanometers of SPC water.
import BioSimSpace as BSS
# Load a system and extract the first molecule.
files = BSS.IO.expand(BSS.tutorialUrl(), ["ala.top", "ala.crd"], ".bz2")
molecule = BSS.IO.readMolecules(files)[0]
# Solvate the molecule.
solvated = BSS.Solvent.spc(
"tip3p", molecule=molecule,
shell=2*BSS.Units.Length.nanometer
)
Create a 50 angstrom
periodic
box of pure SPC/E water.
import BioSimSpace as BSS
water = BSS.Solvent.spce(box=3*[50*BSS.Units.Length.angstrom])