parmed.topologyobjects.OutOfPlaneBendType

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

An angle type with a set of angle parameters

Parameters
kfloat

Force constant in kcal/mol/radians^2

listTrackedList

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

Notes

Two OutOfPlaneBendType`s are equal if their `k attribute is equal

Examples

>>> ot1 = OutOfPlaneBendType(10.0)
>>> ot2 = OutOfPlaneBendType(10.0)
>>> ot1 is ot2
False
>>> ot1 == ot2
True
>>> ot1.idx # not part of any list or iterable
-1

As part of a list, they can be indexed

>>> oopbend_list = []
>>> oopbend_list.append(OutOfPlaneBendType(10.0, list=oopbend_list))
>>> oopbend_list.append(OutOfPlaneBendType(10.0, list=oopbend_list))
>>> oopbend_list[0].idx
0
>>> oopbend_list[1].idx
1
Attributes
idx
uk
__init__(k, list=None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(k[, list])

Initialize self.

Attributes

idx

uk