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

Comparing trunk/OOPSE-3.0/src/types/DirectionalAtomType.hpp (file contents):
Revision 1930 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 2220 by chrisfen, Thu May 5 14:47:35 2005 UTC

# Line 1 | Line 1
1 < /*
1 > /*
2   * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved.
3   *
4   * The University of Notre Dame grants you ("Licensee") a
# 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; }
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;}
81  
82 <        void setQuadrupole() { atp.is_Quadrupole = 1; }
82 >    virtual void complete();
83  
84 <        void    setGayBerne() { atp.is_GayBerne = 1; }
84 >  private:
85  
86 <        void    setSticky() { atp.is_Sticky = 1; }
86 >    Mat3x3d I;
87 >    RotMat3x3d electroBodyFrame_;
88 >  };
89  
82        void    setShape() { atp.is_Shape = 1;}
90  
91 <        virtual void complete();
91 >  struct StickyParam {
92 >    double w0;
93 >    double v0;
94 >    double v0p;
95 >    double rl;
96 >    double ru;
97 >    double rlp;
98 >    double rup;
99 >  };
100  
101 <    private:
101 >  typedef SimpleTypeData<StickyParam> StickyParamGenericData;
102  
103 <        Mat3x3d I;
89 <        RotMat3x3d electroBodyFrame_;
90 < };
91 <
92 <
93 < struct StickyParam {
94 < double w0;
95 < double v0;
96 < double v0p;
97 < double rl;
98 < double ru;
99 < double rlp;
100 < double rup;
101 < };
102 <
103 < typedef SimpleTypeData<StickyParam> StickyParamGenericData;
104 <
105 < typedef SimpleTypeData<Vector3d> Vector3dGenericData;
103 >  typedef SimpleTypeData<Vector3d> Vector3dGenericData;
104    
105   }
106   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines