peleffy.solvent.OBC2¶
-
class
peleffy.solvent.OBC2(topologies)[source]¶ Implementation of the OBC2 solvent.
-
__init__(topologies)[source]¶ Initializes an OBC2 object.
- Parameters
topologies (a Topology object or list[Topology object]) – The molecular topology representation to write as a Impact template
Examples
Generate the solvent parameters of a molecule
>>> from peleffy.topology import Molecule
>>> molecule = Molecule('molecule.pdb')
>>> from peleffy.forcefield import OpenForceField
>>> openff = OpenForceField('openff_unconstrained-1.2.1.offxml') >>> parameters = openff.parameterize(molecule)
>>> from peleffy.topology import Topology
>>> topology = Topology(molecule, parameters)
>>> from peleffy.solvent import OBC2
>>> solvent = OBC2(topology) >>> solvent.to_file('OBC_parameters.txt')
-
to_dict()¶ Returns this OpenFFCompatibleSolvent object as a dictionary.
- Returns
data – A dictionary containing the data of this SolventWrapper object
- Return type
dict
-
to_file(path)¶ Writes this OpenFFCompatibleSolvent object to a file.
- Parameters
path (str) – Path to save the output file to
Attributes
nameThe name of the solvent.
radiiA list of the dicts of radii of the parameterized molecules.
scalesA list of the dicts of scales of the parameterized molecules.
solute_dielectricThe solute dielectric value of this solvent object.
solvent_dielectricThe solvent dielectric value of this solvent object.
solvent_radiusThe solvent radius value of this solvent object.
surface_area_penaltyThe surface area penalty value of this solvent object.
topologiesThe peleffy’s Topology.
-