Internal class for OBForceField to handle constraints.
More...
#include <openbabel/forcefield.h>
List of all members.
Detailed Description
Internal class for OBForceField to handle constraints.
- Since:
- version 2.2
Constructor & Destructor Documentation
Member Function Documentation
double GetConstraintEnergy |
( |
) |
|
Get the constraint energy.
Get the constraint gradient for atom with index a.
Get the constrain gradient for the atom.
void Setup |
( |
OBMol & |
mol ) |
|
void SetFactor |
( |
double |
factor ) |
|
Ignore the atom while setting up calculations.
void AddAtomConstraint |
( |
int |
a ) |
|
Fix the position of an atom.
void AddAtomXConstraint |
( |
int |
a ) |
|
Fix the x coordinate of the atom position.
void AddAtomYConstraint |
( |
int |
a ) |
|
Fix the y coordinate of the atom position.
void AddAtomZConstraint |
( |
int |
a ) |
|
Fix the z coordinate of the atom position.
void AddDistanceConstraint |
( |
int |
a, |
|
|
int |
b, |
|
|
double |
length |
|
) |
| |
Constrain the bond length a-b.
void AddAngleConstraint |
( |
int |
a, |
|
|
int |
b, |
|
|
int |
c, |
|
|
double |
angle |
|
) |
| |
Constrain the angle a-b-c.
void AddTorsionConstraint |
( |
int |
a, |
|
|
int |
b, |
|
|
int |
c, |
|
|
int |
d, |
|
|
double |
torsion |
|
) |
| |
Constrain the torsion angle a-b-c-d.
void DeleteConstraint |
( |
int |
index ) |
|
Delete a constraint
- index constraint index
- Returns:
- the number of set constraints
int GetConstraintType |
( |
int |
index ) |
const |
The following constraint types are known: OBFF_CONST_IGNORE (ignore the atom while setting up calculations, forcefield implementations need to check this value in their setup function), OBFF_CONST_ATOM (fix atom position), OBFF_CONST_ATOM_X (fix x coordinate), OBFF_CONST_ATOM_Y (fix y coordinate), OBFF_CONST_ATOM_Z (fix z coordinate), OBFF_CONST_BOND (constrain bond length), OBFF_CONST_ANGLE (constrain angle), OBFF_CONST_TORSION (constrain torsion angle)
- Returns:
- the constraint type
double GetConstraintValue |
( |
int |
index ) |
const |
- Returns:
- The constraint value, this can be a bond length, angle or torsion angle depending on the constraint type.
int GetConstraintAtomA |
( |
int |
index ) |
const |
- Returns:
- The constraint atom a (or fixed atom)
- index constraint index
int GetConstraintAtomB |
( |
int |
index ) |
const |
- Returns:
- The constraint atom b
- index constraint index
int GetConstraintAtomC |
( |
int |
index ) |
const |
- Returns:
- The constraint atom c
- index constraint index
int GetConstraintAtomD |
( |
int |
index ) |
const |
- Returns:
- The constraint atom d
- index constraint index
- Returns:
- true if this atom is ignored
- a atom index
- Returns:
- true if this atom is fixed
- a atom index
- Returns:
- true if the x coordinate for this atom is fixed
- a atom index
- Returns:
- true if the y coordinate for this atom is fixed
- a atom index
- Returns:
- true if the z coordinate for this atom is fixed
- a atom index
The documentation for this class was generated from the following files: