1 |
|
#ifndef __GRIDBUILDER_HPP__ |
2 |
|
#define __GRIDBUILDER_HPP__ |
3 |
|
|
4 |
+ |
#include "MatVec3.h" |
5 |
|
#include "RigidBody.hpp" |
6 |
|
#include <iostream> |
7 |
|
#include <fstream> |
12 |
|
class GridBuilder{ |
13 |
|
|
14 |
|
public: |
15 |
< |
GridBuilder(RigidBody* rb, int bandWidth); |
15 |
> |
GridBuilder(RigidBody* rb, int gridWidth); |
16 |
|
virtual ~GridBuilder(); |
17 |
|
|
18 |
< |
void launchProbe(int forceField, vector<double> sigmaGrid, vector<double> sGrid, |
19 |
< |
vector<double> epsGrid); |
19 |
< |
void initBody(); |
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 stepTheta(double increment); |
23 |
– |
void stepPhi(double increment); |
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 bandwidth; |
29 |
> |
int gridwidth; |
30 |
|
int forcefield; |
31 |
|
double thetaStep; |
32 |
|
double phiStep; |
33 |
|
double thetaMin; |
33 |
– |
double rotX[3][3]; |
34 |
– |
double rotZ[3][3]; |
35 |
– |
double rbMatrix[3][3]; |
36 |
– |
double rotatedMat[3][3]; |
37 |
– |
double angles[3]; |
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; |