ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/visitors/ReplacementVisitor.hpp
(Generate patch)

Comparing branches/development/src/visitors/ReplacementVisitor.hpp (file contents):
Revision 1628 by chuckv, Fri Jul 9 23:08:25 2010 UTC vs.
Revision 1629 by gezelter, Wed Sep 14 21:15:17 2011 UTC

# Line 97 | Line 97 | namespace OpenMD {
97        addSite("O", Vector3d(0.0,  0.0,    -0.0654));
98        addSite("X", Vector3d(0.0,  0.0,     0.0   ), Vector3d(0,0,1));
99      }
100 +  };
101 +
102 +  class GBtailVisitor : public ReplacementVisitor{
103 +  public:
104 +    GBtailVisitor(SimInfo* info) : ReplacementVisitor(info) {
105 +      visitorName = "GBtailVisitor";
106 +      
107 +      
108 +      /// these are the atom names we can replace with a fixed structure
109 +        addReplacedAtomName("GBtail");
110 +        
111 +        // this is the reference structure we'll use for the replacement:
112 +        addSite("C", Vector3d(0.0, 0.0, 9.0));
113 +        addSite("C", Vector3d(0.0, 0.0, 0.0));
114 +        addSite("C", Vector3d(0.0, 0.0, -9.0));
115 +    }
116    };  
117 +  
118 +  class GBheadVisitor : public ReplacementVisitor{
119 +  public:
120 +    GBheadVisitor(SimInfo* info) : ReplacementVisitor(info) {
121 +      visitorName = "GBheadVisitor";
122 +      
123 +      /// these are the atom names we can replace with a fixed structure
124 +        addReplacedAtomName("GBhead");
125 +        
126 +        // this is the reference structure we'll use for the replacement:
127 +        addSite("N", Vector3d(0.0, 0.0, 3.5));
128 +        addSite("C", Vector3d(0.0, 0.0, 0.0));
129 +        addSite("P", Vector3d(0.0, 0.0, -3.5));
130 +    }
131 +  };  
132 +
133 +  
134   }//namespace OpenMD
135   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines