| 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 | #define HBRIDGEDISTANCE 3.5 //!< HBridge distance from PCCP Vol 10. 4802-4813
|
|---|
| 26 |
|
|---|
| 27 | /****************************************** forward declarations *****************************/
|
|---|
| 28 |
|
|---|
| 29 | class molecule;
|
|---|
| 30 | class MoleculeListClass;
|
|---|
| 31 | class periodentafel;
|
|---|
| 32 | class MatrixContainer;
|
|---|
| 33 |
|
|---|
| 34 | /********************************************** definitions *********************************/
|
|---|
| 35 |
|
|---|
| 36 | /********************************************** declarations *******************************/
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 | class BondGraph {
|
|---|
| 40 | public:
|
|---|
| 41 | BondGraph(bool IsA);
|
|---|
| 42 | ~BondGraph();
|
|---|
| 43 | bool LoadBondLengthTable(const string &filename);
|
|---|
| 44 | bool ConstructBondGraph(molecule * const mol);
|
|---|
| 45 | double GetBondLength(int firstelement, int secondelement);
|
|---|
| 46 | double SetMaxDistanceToMaxOfCovalentRadii(const molecule * const mol);
|
|---|
| 47 |
|
|---|
| 48 | void BondLengthMatrixMinMaxDistance(BondedParticle * const Walker, BondedParticle * const OtherWalker, double &MinDistance, double &MaxDistance, bool IsAngstroem);
|
|---|
| 49 | void CovalentMinMaxDistance(BondedParticle * const Walker, BondedParticle * const OtherWalker, double &MinDistance, double &MaxDistance, bool IsAngstroem);
|
|---|
| 50 |
|
|---|
| 51 | private:
|
|---|
| 52 | MatrixContainer *BondLengthMatrix;
|
|---|
| 53 | double max_distance;
|
|---|
| 54 | bool IsAngstroem;
|
|---|
| 55 | };
|
|---|
| 56 |
|
|---|
| 57 | int CountHydrogenBridgeBonds(MoleculeListClass * const molecules, element * InterfaceElement);
|
|---|
| 58 | int CountBondsOfTwo(MoleculeListClass * const molecules, const element * const first, const element * const second);
|
|---|
| 59 | int CountBondsOfThree(MoleculeListClass * const molecules, const element * const first, const element * const second, const element * const third);
|
|---|
| 60 |
|
|---|
| 61 | #endif /* BONDGRAPH_HPP_ */
|
|---|