| 82 |
|
public: |
| 83 |
|
SSDAtomVisitor(SimInfo* info) : ReplacementVisitor(info) { |
| 84 |
|
visitorName = "SSDAtomVisitor"; |
| 85 |
< |
|
| 85 |
> |
|
| 86 |
|
/// these are the atom names we can replace with a fixed structure |
| 87 |
|
addReplacedAtomName("SSD"); |
| 88 |
|
addReplacedAtomName("SSD_E"); |
| 90 |
|
addReplacedAtomName("SSD1"); |
| 91 |
|
addReplacedAtomName("TAP"); |
| 92 |
|
addReplacedAtomName("TRED"); |
| 93 |
< |
|
| 93 |
> |
|
| 94 |
|
// this is the reference structure we'll use for the replacement: |
| 95 |
|
addSite("H", Vector3d(0.0, -0.75695, 0.5206)); |
| 96 |
|
addSite("H", Vector3d(0.0, 0.75695, 0.5206)); |
| 98 |
|
addSite("X", Vector3d(0.0, 0.0, 0.0 ), Vector3d(0,0,1)); |
| 99 |
|
} |
| 100 |
|
}; |
| 101 |
< |
|
| 101 |
> |
|
| 102 |
|
class GBtailVisitor : public ReplacementVisitor{ |
| 103 |
|
public: |
| 104 |
|
GBtailVisitor(SimInfo* info) : ReplacementVisitor(info) { |
| 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)); |
| 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 |
|
|
| 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)); |
| 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 |
< |
|
| 131 |
> |
}; |
| 132 |
|
}//namespace OpenMD |
| 133 |
|
#endif |