~ubuntu-branches/ubuntu/vivid/openbabel/vivid-proposed

« back to all changes in this revision

Viewing changes to src/molchrg.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2002-02-01 01:19:44 UTC
  • Revision ID: james.westby@ubuntu.com-20020201011944-4a9guzcsnpezzawx
Tags: upstream-1.99
ImportĀ upstreamĀ versionĀ 1.99

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**********************************************************************
 
2
Copyright (C) 1998-2001 by OpenEye Scientific Software, Inc.
 
3
 
 
4
This program is free software; you can redistribute it and/or modify
 
5
it under the terms of the GNU General Public License as published by
 
6
the Free Software Foundation version 2 of the License.
 
7
 
 
8
This program is distributed in the hope that it will be useful,
 
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
GNU General Public License for more details.
 
12
***********************************************************************/
 
13
 
 
14
#ifndef __MOLCHRG_H
 
15
#define __MOLCHRG_H
 
16
 
 
17
namespace OpenBabel {
 
18
 
 
19
class GasteigerState;
 
20
 
 
21
class OBGastChrg
 
22
{
 
23
  vector <GasteigerState*> _gsv;
 
24
  void InitialPartialCharges(OBMol &);
 
25
  bool GasteigerSigmaChi(OBAtom *,float &,float &,float &);
 
26
 public:
 
27
  OBGastChrg(){}
 
28
  ~OBGastChrg();
 
29
  bool AssignPartialCharges(OBMol &);
 
30
  void GSVResize(int);
 
31
};
 
32
 
 
33
class GasteigerState 
 
34
{
 
35
  //helper class for OBGastChrg
 
36
 public:
 
37
  GasteigerState();
 
38
  ~GasteigerState() {}
 
39
  void SetValues(float _a,float _b,float _c,float _q) 
 
40
    {a = _a;b = _b;c = _c;denom=a+b+c;q = _q;}
 
41
  float a, b, c;
 
42
  float denom;
 
43
  float chi;
 
44
  float q;
 
45
};
 
46
 
 
47
}
 
48
 
 
49
#define MX_GASTEIGER_DENOM  20.02
 
50
#define MX_GASTEIGER_DAMP   0.5
 
51
#define MX_GASTEIGER_ITERS  6
 
52
 
 
53
 
 
54
#endif //__MOLCHRG_H