DOKK / manpages / debian 12 / libsc-doc / sc_TorsSimpleCo.3.en
sc::TorsSimpleCo(3) MPQC sc::TorsSimpleCo(3)

sc::TorsSimpleCo - The TorsSimpleCo class describes an torsion internal coordinate of a molecule.

#include <simple.h>

Inherits sc::SimpleCo.


TorsSimpleCo (const TorsSimpleCo &)
TorsSimpleCo (const char *refr, int, int, int, int)
This constructor takes a string containing a label, and four integers a, b, c, and d which give the indices of the atoms involved in the torsion angle abcd. TorsSimpleCo (const Ref< KeyVal > &)
The KeyVal constructor. const char * ctype () const
Always returns the string 'TORS'. 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.

The TorsSimpleCo class describes an torsion internal coordinate of a molecule.

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

Designating the four atoms as $a$, $b$, $c$, and $d$ and their cartesian positions as $$, $te, $au$, is given by

b} = ac{ - ac{ac{bc}= ac{b} imes
{ b} imes ac{
{ s =

1 & ox{if $(bc}imes
> 0;$} \
-1 & ox{otherwise}
\nd{array} ight.
] au = s rccos ( - bc} dot

This constructor takes a string containing a label, and four integers a, b, c, and d which give the indices of the atoms involved in the torsion angle abcd. Atom numbering begins at atom 1, not atom 0.

The KeyVal constructor. This calls the SimpleCo keyval constructor with an integer argument of 4.

Always returns the string 'TORS'.

Implements sc::IntCoor.

Returns the value of the angle abc in degrees.

Reimplemented from sc::IntCoor.

Generated automatically by Doxygen for MPQC from the source code.

Fri Dec 2 2022 Version 2.3.1