ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/SHAPES/GridBuilder.hpp
Revision: 1277
Committed: Thu Jun 17 21:29:17 2004 UTC (20 years ago) by chrisfen
File size: 915 byte(s)
Log Message:
Added GridBuilder.cpp and .hpp.  Doesn't calculate energies yet...

File Contents

# Content
1 #ifndef __GRIDBUILDER_HPP__
2 #define __GRIDBUILDER_HPP__
3
4 #include "RigidBody.hpp"
5 #include <vector>
6
7 using namespace std;
8
9 class GridBuilder{
10
11 public:
12 GridBuilder(RigidBody* rb, int bandWidth);
13 virtual ~GridBuilder();
14
15 void launchProbe(int forceField, vector<double> sigmaGrid, vector<double> sGrid,
16 vector<double> epsGrid);
17 void initBody();
18 void releaseProbe(double farPos);
19 void calcEnergy();
20 void stepTheta(double increment);
21 void stepPhi(double increment);
22
23 protected:
24 int i, j;
25 int bandwidth;
26 double thetaStep;
27 double phiStep;
28 double thetaMin;
29 double rotX[3][3];
30 double rotZ[3][3];
31 double rbMatrix[3][3];
32 double rotatedMat[3][3];
33 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 vector<double> potProgress;
41 vector<double> distProgress;
42
43 RigidBody* rbMol;
44 };
45
46 #endif