| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * bondgraph.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Oct 29, 2009
|
|---|
| 5 | * Author: heber
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef BONDGRAPH_HPP_
|
|---|
| 9 | #define BONDGRAPH_HPP_
|
|---|
| 10 |
|
|---|
| 11 | using namespace std;
|
|---|
| 12 |
|
|---|
| 13 | /*********************************************** includes ***********************************/
|
|---|
| 14 |
|
|---|
| 15 | // include config.h
|
|---|
| 16 | #ifdef HAVE_CONFIG_H
|
|---|
| 17 | #include <config.h>
|
|---|
| 18 | #endif
|
|---|
| 19 |
|
|---|
| 20 | #include <iostream>
|
|---|
| 21 |
|
|---|
| 22 | /*********************************************** defines ***********************************/
|
|---|
| 23 |
|
|---|
| 24 | #define BONDTHRESHOLD 0.4 //!< CSD threshold in bond check which is the width of the interval whose center is the sum of the covalent radii
|
|---|
| 25 |
|
|---|
| 26 | /****************************************** forward declarations *****************************/
|
|---|
| 27 |
|
|---|
| 28 | class molecule;
|
|---|
| 29 | class periodentafel;
|
|---|
| 30 | class MatrixContainer;
|
|---|
| 31 |
|
|---|
| 32 | /********************************************** definitions *********************************/
|
|---|
| 33 |
|
|---|
| 34 | /********************************************** declarations *******************************/
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 | class BondGraph {
|
|---|
| 38 | public:
|
|---|
| 39 | BondGraph(bool IsA);
|
|---|
| 40 | ~BondGraph();
|
|---|
| 41 | bool LoadBondLengthTable(const string &filename);
|
|---|
| 42 | bool ConstructBondGraph(molecule * const mol);
|
|---|
| 43 | double GetBondLength(int firstelement, int secondelement);
|
|---|
| 44 | double SetMaxDistanceToMaxOfCovalentRadii(const molecule * const mol);
|
|---|
| 45 |
|
|---|
| 46 | void BondLengthMatrixMinMaxDistance(BondedParticle * const Walker, BondedParticle * const OtherWalker, double &MinDistance, double &MaxDistance, bool IsAngstroem);
|
|---|
| 47 | void CovalentMinMaxDistance(BondedParticle * const Walker, BondedParticle * const OtherWalker, double &MinDistance, double &MaxDistance, bool IsAngstroem);
|
|---|
| 48 |
|
|---|
| 49 | private:
|
|---|
| 50 | MatrixContainer *BondLengthMatrix;
|
|---|
| 51 | double max_distance;
|
|---|
| 52 | bool IsAngstroem;
|
|---|
| 53 | };
|
|---|
| 54 |
|
|---|
| 55 | #endif /* BONDGRAPH_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.