1 |
#ifndef __GRIDBUILDER_HPP__ |
2 |
#define __GRIDBUILDER_HPP__ |
3 |
|
4 |
#include "MatVec3.h" |
5 |
#include "RigidBody.hpp" |
6 |
#include <iostream> |
7 |
#include <fstream> |
8 |
#include <vector> |
9 |
|
10 |
using namespace std; |
11 |
|
12 |
class GridBuilder{ |
13 |
|
14 |
public: |
15 |
GridBuilder(RigidBody* rb, int gridWidth); |
16 |
virtual ~GridBuilder(); |
17 |
|
18 |
void launchProbe(int forceField, vector<double> sigmaGrid, |
19 |
vector<double> sGrid, vector<double> epsGrid); |
20 |
void releaseProbe(double farPos); |
21 |
void calcEnergy(); |
22 |
void printGridFiles(); |
23 |
double passSig(int index){ return sigList[index]; } |
24 |
double passS(int index){ return sList[index]; } |
25 |
double passEps(int index){ return epsList[index]; } |
26 |
|
27 |
protected: |
28 |
int i, j, k, l; |
29 |
int gridwidth; |
30 |
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 |
double rparHe, epsHe; |
41 |
vector<double> potProgress; |
42 |
vector<double> distProgress; |
43 |
vector<double> sigList; |
44 |
vector<double> epsList; |
45 |
vector<double> sList; |
46 |
|
47 |
RigidBody* rbMol; |
48 |
}; |
49 |
|
50 |
#endif |