delphi_cb
 All Classes Namespaces Files Functions Variables Macros
delphi_constants.h
Go to the documentation of this file.
1 
8 #ifndef DELPHI_CONSTANTS_H_
9 #define DELPHI_CONSTANTS_H_
10 
11 #include <vector>
12 #include <string>
13 #include "../interface/environment.h"
14 #include "../misc/misc_grid.h"
15 
16 using namespace std;
17 
18 #ifdef MX
19 const delphi_real fPi = 3.141592653589793;
20 const delphi_real f4Pi = 1.256637061435917e+1;
21 const delphi_real fSixth = 1.666666666666667e-1;
22 const delphi_real fZero = 1.0e-15;
23 #endif
24 
25 #ifdef SP
26 const delphi_real fPi = 3.141593;
27 const delphi_real f4Pi = 1.256637e+1;
28 const delphi_real fSixth = 1.666667e-1;
29 const delphi_real fZero = 1.0e-6;
30 #endif
31 
32 #ifdef DP
33 const delphi_real fPi = 3.141592653589793;
34 const delphi_real f4Pi = 1.256637061435917e+1;
35 const delphi_real fSixth = 1.666666666666667e-1;
36 const delphi_real fZero = 1.0e-15;
37 #endif
38 
39 #ifdef LD
40 const delphi_real fPi = 3.1415926535897932384626433832795;
41 const delphi_real f4Pi = 1.2566370614359172953850573533118e+1;
42 const delphi_real fSixth = 1.6666666666666666666666666666667e-1;
43 const delphi_real fZero = 1.0e-15;
44 #endif
45 
46 const int iStatementNum = 45;
47 const int iFunctionNum_FullName = 11;
48 const int iFunctionNum_ShortName = 5;
49 
50 const int iDMax = 50;
51 const double dAbsoluteZero = -273.15;
52 const double dAtomicUnitCrg = 1.602176487e-19;
53 const double dBoltzmannConstant = 1.3806504e-23;
54 const double dVacuumPermittivity = 8.8541878176e-12;
55 const double dEPK = 167100.9162872952;
56 
57 const char rgcFileMap[] = "qdiffxas: qdiffxs4 with an improved surfacing routine";
58 
62 typedef struct {
63  delphi_real x;
64  delphi_real y;
65  delphi_real z;
66  delphi_real crg;
67  delphi_real size;
68 } SAtomInfo;
69 
73 typedef struct {
74  //------- IN
75  delphi_integer gsize;
76  delphi_real scale;
77  float grids_per_ang;
78  int del_runs;
79  int n_retry; // default = 0, reset delphi failure counter for this conformer
80  string pdbfile;
81  int pdbformat;
82  delphi_real indi;
83  delphi_real exdi;
84  delphi_real ionrad;
85  delphi_real prbrad;
86  delphi_real salt;
87  int bndcon;
88  delphi_real center[3];
89  //string frcfile;
90  //string phifile;
91  string uniqID;
92 
93  //-------- INTERMEDIATE
94  vector<delphi_real> phimap;
95  delphi_real scale1;
96  SGrid<delphi_real> oldmid1;
97  delphi_integer igrid1;
98 
99  //-------- OUT
100  delphi_real ergs;
101  vector<delphi_real> phiv;
102  char del_err;
103 } SMCCE;
104 
105 #endif // DELPHI_CONSTANTS_H_
106 
const double dAtomicUnitCrg
temperature of absolute zero
Definition: delphi_constants.h:52
const double dEPK
e^2/(4*pi*e0*k*1.0e-10)
Definition: delphi_constants.h:55
const delphi_real fSixth
1/6
Definition: delphi_constants.h:21
const delphi_real fPi
pi
Definition: delphi_constants.h:19
const delphi_real f4Pi
4*pi
Definition: delphi_constants.h:20
const int iStatementNum
number of statements
Definition: delphi_constants.h:46
const double dVacuumPermittivity
e0, farads per meter Fm^(-1)
Definition: delphi_constants.h:54
const delphi_real fZero
practical zero for comparing delphi_real numbers
Definition: delphi_constants.h:22
const int iFunctionNum_FullName
number of functions in full name
Definition: delphi_constants.h:47
Definition: delphi_constants.h:73
const double dBoltzmannConstant
k, Joule per Kelvin JK^(-1)
Definition: delphi_constants.h:53
Definition: delphi_constants.h:62
const int iFunctionNum_ShortName
number of functions in short name
Definition: delphi_constants.h:48