1 |
chrisfen |
1277 |
#ifndef __GRIDBUILDER_HPP__ |
2 |
|
|
#define __GRIDBUILDER_HPP__ |
3 |
|
|
|
4 |
chrisfen |
1287 |
#include "MatVec3.h" |
5 |
chrisfen |
1277 |
#include "RigidBody.hpp" |
6 |
chrisfen |
1281 |
#include <iostream> |
7 |
|
|
#include <fstream> |
8 |
chrisfen |
1277 |
#include <vector> |
9 |
|
|
|
10 |
|
|
using namespace std; |
11 |
|
|
|
12 |
|
|
class GridBuilder{ |
13 |
|
|
|
14 |
|
|
public: |
15 |
chrisfen |
1285 |
GridBuilder(RigidBody* rb, int gridWidth); |
16 |
chrisfen |
1281 |
virtual ~GridBuilder(); |
17 |
chrisfen |
1277 |
|
18 |
gezelter |
1283 |
void launchProbe(int forceField, vector<double> sigmaGrid, |
19 |
chrisfen |
1285 |
vector<double> sGrid, vector<double> epsGrid); |
20 |
chrisfen |
1281 |
void releaseProbe(double farPos); |
21 |
|
|
void calcEnergy(); |
22 |
|
|
void printGridFiles(); |
23 |
chrisfen |
1287 |
double passSig(int index){ return sigList[index]; } |
24 |
|
|
double passS(int index){ return sList[index]; } |
25 |
|
|
double passEps(int index){ return epsList[index]; } |
26 |
chrisfen |
1277 |
|
27 |
|
|
protected: |
28 |
chrisfen |
1281 |
int i, j, k, l; |
29 |
chrisfen |
1285 |
int gridwidth; |
30 |
chrisfen |
1281 |
int forcefield; |
31 |
|
|
double thetaStep; |
32 |
|
|
double phiStep; |
33 |
|
|
double thetaMin; |
34 |
|
|
double probeCoor; //the probe atom motion is 1-dimensional |
35 |
|
|
double rhoStep; |
36 |
|
|
double sigDist; |
37 |
|
|
double sDist; |
38 |
|
|
double epsVal; |
39 |
|
|
double potEnergy; |
40 |
chrisfen |
1285 |
double rparHe, epsHe; |
41 |
chrisfen |
1281 |
vector<double> potProgress; |
42 |
|
|
vector<double> distProgress; |
43 |
|
|
vector<double> sigList; |
44 |
|
|
vector<double> epsList; |
45 |
|
|
vector<double> sList; |
46 |
chrisfen |
1277 |
|
47 |
chrisfen |
1281 |
RigidBody* rbMol; |
48 |
chrisfen |
1277 |
}; |
49 |
|
|
|
50 |
|
|
#endif |