- 1.7
- 1.6
- 1.5
- Beta
- Examples (for 1.6a)
- Misc
Describe sites within molecules for use in analysis.
Note: These commands are outdated and may be removed completely in a future version.
Syntax:
void getsite( | name); |
string | name; |
Selects (makes current) the site referenced by name. If the site cannot be found an error is returned.
For example:
getsite("carb1");makes the site 'carb1' the current site.
Syntax:
void listsites( | ); |
Prints the list of sites defined for the current model.
For example:
listsites();
Syntax:
void newsite( | name, | |
atomlist = ""); |
string | name; |
string | atomlist = ""; |
Creates a new site name for the current model, based on the molecule of pattern, and placed at the geometric centre of the atom IDs given in atomlist. If no atoms are given, the centre of geometry of all atoms is used. The new site becomes the current site.
For example:
newsite("watercentre", "h2o");adds a site called 'watercentre' based on the pattern called 'h2o' and located at the centre of geometry of all atoms.
newsite("oxy", "methanol", "5");adds a site called 'oxy' based on the pattern called 'methanol' and located at the fifth atom in each molecule.
Syntax:
void siteaxes( | x_atomlist, | |
y_atomlist); |
string | x_atomlist; |
string | y_atomlist; |
Sets the local x (first set of atom IDs) and y (second set of atom IDs) axes for the current site. Each of the two axes is constructed by taking the vector from the site centre (defined by 'addsite') and the geometric centre of the list of atoms provided here. The y axis is orthogonalised with respect to the x axis and the z axis constructed from the cross product of the orthogonal x and y vectors.
For example:
siteaxes("1,2", "6");sets the x axis definition of the current site to be the vector between the site centre and the average position of the first two atoms, and the y axis definition to be the vector between the site centre and the position of the sixth atom.

