Molassembler  3.0.0
Molecule graph and conformer library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
BondDistance.h
Go to the documentation of this file.
1 
8 #ifndef INCLUDE_MOLASSEMBLER_BOND_DISTANCE_H
9 #define INCLUDE_MOLASSEMBLER_BOND_DISTANCE_H
10 
12 #include "Molassembler/Types.h"
13 
14 namespace Scine {
15 namespace Molassembler {
16 namespace Bond {
17 
19 static constexpr std::array<double, 7> bondOrderMap {{
20  1, 2, 3, 4, 5, 6, 0.5
21 }};
22 
24 constexpr double bondOrderCorrectionLambda = 0.1332;
25 
30 double calculateBondDistance(
31  Utils::ElementType a,
32  Utils::ElementType b,
33  BondType bondType
34 );
35 
40 double calculateBondOrder(
41  Utils::ElementType a,
42  Utils::ElementType b,
43  double distance
44 );
45 
46 } // namespace Bond
47 } // namespace Molassembler
48 } // namespace Scine
49 
50 #endif
Defines basic types widely shared across the project.
std::vector< unsigned > distance(AtomIndex source, const Graph &graph)
Calculates the graph distance from a single atom index to all others.
Element type information classes.
BondType
Discrete bond type numeration.
Definition: Types.h:26