parmed.topologyobjects.BondType¶
-
class
parmed.topologyobjects.
BondType
(k, req, list=None)[source]¶ A bond type with a set of bond parameters
- Parameters
- k
float
Force constant in kcal/mol/Angstrom^2
- req
float
Equilibrium bond distance in Angstroms
- list
TrackedList
A list of :class:`BondType`s in which this is a member
- k
Notes
Two BondType`s are equal if their `k and req attributes are equal
Examples
>>> bt1 = BondType(10.0, 1.0) >>> bt2 = BondType(10.0, 1.0) >>> bt1 is bt2 False >>> bt1 == bt2 True >>> bt1.idx # Not in a list or container -1
As part of a list, they can be indexed
>>> bond_list = [] >>> bond_list.append(BondType(10.0, 1.0, list=bond_list)) >>> bond_list.append(BondType(10.0, 1.0, list=bond_list)) >>> bond_list[0].idx 0 >>> bond_list[1].idx 1
- Attributes
- idx
- uk
- ureq
Methods
__init__
(k, req[, list])Initialize self.
Attributes
idx