ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/SHAPES/GridBuilder.hpp
Revision: 1281
Committed: Mon Jun 21 13:38:55 2004 UTC (20 years ago) by chrisfen
File size: 1106 byte(s)
Log Message:
Now calculates energies and builds the grid files.  There are still bugs, but
it compiles and runs...

File Contents

# User Rev Content
1 chrisfen 1277 #ifndef __GRIDBUILDER_HPP__
2     #define __GRIDBUILDER_HPP__
3    
4     #include "RigidBody.hpp"
5 chrisfen 1281 #include <iostream>
6     #include <fstream>
7 chrisfen 1277 #include <vector>
8    
9     using namespace std;
10    
11     class GridBuilder{
12    
13     public:
14 chrisfen 1281 GridBuilder(RigidBody* rb, int bandWidth);
15     virtual ~GridBuilder();
16 chrisfen 1277
17 chrisfen 1281 void launchProbe(int forceField, vector<double> sigmaGrid, vector<double> sGrid,
18 chrisfen 1277 vector<double> epsGrid);
19 chrisfen 1281 void initBody();
20     void releaseProbe(double farPos);
21     void calcEnergy();
22     void stepTheta(double increment);
23     void stepPhi(double increment);
24     void printGridFiles();
25 chrisfen 1277
26     protected:
27 chrisfen 1281 int i, j, k, l;
28     int bandwidth;
29     int forcefield;
30     double thetaStep;
31     double phiStep;
32     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];
38     double probeCoor; //the probe atom motion is 1-dimensional
39     double rhoStep;
40     double sigDist;
41     double sDist;
42     double epsVal;
43     double potEnergy;
44     vector<double> potProgress;
45     vector<double> distProgress;
46     vector<double> sigList;
47     vector<double> epsList;
48     vector<double> sList;
49 chrisfen 1277
50 chrisfen 1281 RigidBody* rbMol;
51 chrisfen 1277 };
52    
53     #endif