ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/types/DirectionalAtomType.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/types/DirectionalAtomType.hpp (file contents):
Revision 2220 by chrisfen, Thu May 5 14:47:35 2005 UTC vs.
Revision 2226 by kdaily, Tue May 17 02:09:25 2005 UTC

# Line 47 | Line 47 | namespace oopse {
47  
48   namespace oopse {
49  
50 <  /**
51 <   * @class DirectionalAtomType
52 <   *
53 <   * DirectionalAtomType is what OOPSE looks to for unchanging data
54 <   * about a directional atoms.
55 <   */
56 <  class DirectionalAtomType : public AtomType {
50 > /**
51 > * @class DirectionalAtomType
52 > *
53 > * DirectionalAtomType is what OOPSE looks to for unchanging data
54 > * about a directional atoms.
55 > */
56 > class DirectionalAtomType : public AtomType {
57  
58 <  public:
58 >    public:
59  
60 <    DirectionalAtomType() : AtomType() { atp.is_Directional = 1; }
60 >        DirectionalAtomType() : AtomType() { atp.is_Directional = 1; }
61  
62 <    Mat3x3d getI() {return I;}
62 >        Mat3x3d getI() {return I;}
63  
64 <    void    setI(Mat3x3d theI) {I = theI;}
64 >        void    setI(Mat3x3d theI) {I = theI;}
65  
66 <    RotMat3x3d getElectroBodyFrame() {
67 <      return electroBodyFrame_;
68 <    }
66 >        RotMat3x3d getElectroBodyFrame() {
67 >            return electroBodyFrame_;
68 >        }
69  
70 <    void setElectroBodyFrame(const RotMat3x3d& electroBodyFrame) {
71 <      electroBodyFrame_ =electroBodyFrame;
72 <    }
70 >        void setElectroBodyFrame(const RotMat3x3d& electroBodyFrame) {
71 >            electroBodyFrame_ =electroBodyFrame;
72 >        }
73  
74 <    void setDipole() { atp.is_Dipole = 1; }
75 <    void setSplitDipole() { atp.is_SplitDipole = 1; atp.is_Dipole=1;}
76 <    void setQuadrupole() { atp.is_Quadrupole = 1; }
77 <    void setGayBerne() { atp.is_GayBerne = 1; }
78 <    void setSticky() { atp.is_Sticky = 1; }
79 <    void setStickyPower() { atp.is_StickyPower = 1; }
80 <    void setShape() { atp.is_Shape = 1;}
74 >        void setDipole() { atp.is_Dipole = 1; }
75 >        void setSplitDipole() { atp.is_SplitDipole = 1; atp.is_Dipole=1;}
76 >        void setQuadrupole() { atp.is_Quadrupole = 1; }
77 >        void setGayBerne() { atp.is_GayBerne = 1; }
78 >        void setSticky() { atp.is_Sticky = 1; }
79 >        void setShape() { atp.is_Shape = 1;}
80  
81 <    virtual void complete();
81 >        virtual void complete();
82  
83 <  private:
83 >    private:
84  
85 <    Mat3x3d I;
86 <    RotMat3x3d electroBodyFrame_;
87 <  };
85 >        Mat3x3d I;
86 >        RotMat3x3d electroBodyFrame_;
87 > };
88  
89  
90 <  struct StickyParam {
91 <    double w0;
92 <    double v0;
93 <    double v0p;
94 <    double rl;
95 <    double ru;
96 <    double rlp;
97 <    double rup;
98 <  };
90 > struct StickyParam {
91 > double w0;
92 > double v0;
93 > double v0p;
94 > double rl;
95 > double ru;
96 > double rlp;
97 > double rup;
98 > };
99  
100 <  typedef SimpleTypeData<StickyParam> StickyParamGenericData;
100 > struct GayBerneParam{
101 > double GB_sigma;
102 > double GB_eps;
103 > double GB_mu;
104 > double GB_nu;
105 > double GB_eps_ratio;
106 > double GB_12b_ratio;
107 > };
108  
109 <  typedef SimpleTypeData<Vector3d> Vector3dGenericData;
109 > typedef SimpleTypeData<StickyParam> StickyParamGenericData;
110 >
111 > typedef SimpleTypeData<GayBerneParam> GayBerneParamGenericData;
112 >
113 > typedef SimpleTypeData<Vector3d> Vector3dGenericData;
114    
115   }
116   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines