molchrg.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef OB_MOLCHRG_H
00021 #define OB_MOLCHRG_H
00022
00023 #include <openbabel/babelconfig.h>
00024 #include <vector>
00025
00026 namespace OpenBabel
00027 {
00028
00029
00030 class OBMol;
00031 class OBAtom;
00032
00035 class OBAPI GasteigerState
00036 {
00037 public:
00038 GasteigerState();
00039 ~GasteigerState() {}
00040
00041 void SetValues(double _a,double _b,double _c,double _q)
00042 {
00043 a = _a;
00044 b = _b;
00045 c = _c;
00046 denom=a+b+c;
00047 q = _q;
00048 }
00049
00050 double a, b, c;
00051 double denom;
00052 double chi;
00053 double q;
00054 };
00055
00056
00057 class OBAPI OBGastChrg
00058 {
00059 std::vector <GasteigerState*> _gsv;
00060
00061 void InitialPartialCharges(OBMol &);
00062 bool GasteigerSigmaChi(OBAtom *,double &,double &,double &);
00063
00064 public:
00065 OBGastChrg() {}
00066 ~OBGastChrg();
00067
00069 bool AssignPartialCharges(OBMol &);
00071 void GSVResize(int);
00072 };
00073
00074 }
00075
00076 #define OB_GASTEIGER_DENOM 20.02
00077 #define OB_GASTEIGER_DAMP 0.5
00078 #define OB_GASTEIGER_ITERS 6
00079
00080 #endif // OB_MOLCHRG_H
00081