rmgpy.molecule.Bond¶
- class rmgpy.molecule.Bond¶
A chemical bond. The attributes are:
Attribute
Type
Description
order
floatThe bond type
atom1
AtomAn Atom object connecting to the bond
atom2
AtomAn Atom object connecting to the bond
- apply_action(action)¶
Update the bond as a result of applying action, a tuple containing the name of the reaction recipe action along with any required parameters. The available actions can be found here.
- copy()¶
Generate a deep copy of the current bond. Modifying the attributes of the copy will not affect the original.
- decrement_order()¶
Update the bond as a result of applying a CHANGE_BOND action to decrease the order by one.
- equivalent(other)¶
Return
Trueif other is indistinguishable from this bond, orFalseotherwise. other can be either aBondor aGroupBondobject.
- get_bde()¶
estimate the bond dissociation energy in J/mol of the bond based on the order of the bond and the atoms involved in the bond
- get_bond_string()¶
Represent the bond object as a string (eg. ‘C#N’). The returned string is independent of the atom ordering, with the atom labels in alphabetical order (i.e. ‘C-H’ is possible but not ‘H-C’) :return: str
- get_order_num()¶
returns the bond order as a number
- get_order_str()¶
returns a string representing the bond order
- get_other_vertex(vertex)¶
Given a vertex that makes up part of the edge, return the other vertex. Raise a
ValueErrorif the given vertex is not part of the edge.
- increment_order()¶
Update the bond as a result of applying a CHANGE_BOND action to increase the order by one.
- is_benzene()¶
Return
Trueif the bond represents a benzene bond orFalseif not.
- is_double()¶
Return
Trueif the bond represents a double bond orFalseif not.
- is_double_or_triple()¶
Return
Trueif the bond represents a double or triple bond orFalseif not.
- is_hydrogen_bond()¶
Return
Trueif the bond represents a hydrogen bond orFalseif not.
- is_order(other_order)¶
Return
Trueif the bond is of order other_order orFalseif not. This compares floats that takes into account floating point errorNOTE: we can replace the absolute value relation with math.isclose when we swtich to python 3.5+
- is_quadruple()¶
Return
Trueif the bond represents a quadruple bond orFalseif not.
- is_reaction_bond()¶
Return
Trueif the bond represents a reaction bond orFalseif not.
- is_single()¶
Return
Trueif the bond represents a single bond orFalseif not.
- is_specific_case_of(other)¶
Return
Trueif self is a specific case of other, orFalseotherwise. other can be either aBondor aGroupBondobject.
- is_triple()¶
Return
Trueif the bond represents a triple bond orFalseif not.
- is_van_der_waals()¶
Return
Trueif the bond represents a van der Waals bond orFalseif not.
- set_order_num(new_order)¶
change the bond order with a number
- set_order_str(new_order)¶
set the bond order using a valid bond-order character
- sorting_key¶
Returns a sorting key for comparing Bond objects. Read-only
Bond types¶
The bond type simply indicates the order of a chemical bond. We define the following bond types:
Bond type
Description
Sa single bond
Da double bond
Ta triple bond
Ba benzene bond