# BioSimSpace.Solvent¶

The Solvent package contains tools for solvating molecular systems.

## Functions¶

 solvate(model[, molecule, box, shell, …]) Add SPC solvent. spc([molecule, box, shell, ion_conc, …]) Add SPC solvent. spce([molecule, box, shell, ion_conc, …]) Add SPC/E solvent. tip3p([molecule, box, shell, ion_conc, …]) Add TIP3P solvent. tip4p([molecule, box, shell, ion_conc, …]) Add TIP4P solvent. tip5p([molecule, box, shell, ion_conc, …]) 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.

# 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.

# 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.

Create a 50 angstrom periodic box of pure SPC/E water.
import BioSimSpace as BSS