Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

sc::BendSimpleCo Class Reference

The BendSimpleCo class describes an bend internal coordinate of a molecule. More...

#include <simple.h>

Inheritance diagram for sc::BendSimpleCo:

Inheritance graph
[legend]
Collaboration diagram for sc::BendSimpleCo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BendSimpleCo (const BendSimpleCo &)
 BendSimpleCo (const char *, int, int, int)
 This constructor takes a string containing a label, and three integers a, b, and c which give the indices of the atoms involved in the angle abc.
 BendSimpleCo (const Ref< KeyVal > &)
 The KeyVal constructor.
const char * ctype () const
 Always returns the string "BEND".
double radians () const
 Returns the value of the angle abc in radians.
double degrees () const
 Returns the value of the angle abc in degrees.
double preferred_value () const
 Returns the value of the angle abc in degrees.

Detailed Description

The BendSimpleCo class describes an bend internal coordinate of a molecule.

The input is described in the documentation of its parent class SimpleCo.

Designating the three atoms as $a$, $b$, and $c$ and their cartesian positions as $\bar{r}_a$, $\bar{r}_b$, and $\bar{r}_c$, the value of the coordinate, $\theta$, is given by

\[ \bar{u}_{ab} = \frac{\bar{r}_a - \bar{r}_b}{\| \bar{r}_a - \bar{r}_b \|}\]

\[ \bar{u}_{cb} = \frac{\bar{r}_c - \bar{r}_b}{\| \bar{r}_c - \bar{r}_b \|}\]

\[ \theta = \arccos ( \bar{u}_{ab} \cdot \bar{u}_{cb} ) \]


Constructor & Destructor Documentation

sc::BendSimpleCo::BendSimpleCo const char *  ,
int  ,
int  ,
int 
 

This constructor takes a string containing a label, and three integers a, b, and c which give the indices of the atoms involved in the angle abc.

Atom numbering begins at atom 1, not atom 0.

sc::BendSimpleCo::BendSimpleCo const Ref< KeyVal > &   ) 
 

The KeyVal constructor.

This calls the SimpleCo keyval constructor with an integer argument of 3.


The documentation for this class was generated from the following file:
Generated at Sat Dec 18 15:14:29 2004 for MPQC 2.2.3 using the documentation package Doxygen 1.3.7-20040617.