parmed.topologyobjects.AngleType

class parmed.topologyobjects.AngleType(k, theteq, list=None)[source]

An angle type with a set of angle parameters

Parameters:

k : float

Force constant in kcal/mol/radians^2

theteq : float

Equilibrium angle in Degrees

list : TrackedList

A list of `AngleType`s in which this is a member

Notes

Two AngleType`s are equal if their `k and theteq attributes are equal

Examples

>>> at1 = AngleType(10.0, 180.0)
>>> at2 = AngleType(10.0, 180.0)
>>> at1 is at2
False
>>> at1 == at2
True
>>> at1.idx # not part of any list or iterable
-1

As part of a list, they can be indexed

>>> angle_list = []
>>> angle_list.append(AngleType(10.0, 180.0, list=angle_list))
>>> angle_list.append(AngleType(10.0, 180.0, list=angle_list))
>>> angle_list[0].idx
0
>>> angle_list[1].idx
1

Attributes

idx
__init__(k, theteq, list=None)[source]

Methods

__init__(k, theteq[, list])

Attributes

idx