| 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 |