#include <openbabel/forcefield.h>
Internal class for OBForceField to handle constraints.
- Since
- version 2.2
◆ OBFFConstraints()
◆ ~OBFFConstraints()
◆ Clear()
◆ GetConstraintEnergy()
double GetConstraintEnergy |
( |
| ) |
|
Get the constraint energy.
◆ GetGradient()
Get the constraint gradient for atom with index a.
◆ operator=()
Get the constrain gradient for the atom.
◆ Setup()
void Setup |
( |
OBMol & |
mol | ) |
|
◆ SetFactor()
void SetFactor |
( |
double |
factor | ) |
|
◆ AddIgnore()
Ignore the atom while setting up calculations.
◆ AddAtomConstraint()
void AddAtomConstraint |
( |
int |
a | ) |
|
Fix the position of an atom.
◆ AddAtomXConstraint()
void AddAtomXConstraint |
( |
int |
a | ) |
|
Fix the x coordinate of the atom position.
◆ AddAtomYConstraint()
void AddAtomYConstraint |
( |
int |
a | ) |
|
Fix the y coordinate of the atom position.
◆ AddAtomZConstraint()
void AddAtomZConstraint |
( |
int |
a | ) |
|
Fix the z coordinate of the atom position.
◆ AddDistanceConstraint()
void AddDistanceConstraint |
( |
int |
a, |
|
|
int |
b, |
|
|
double |
length |
|
) |
| |
Constrain the bond length a-b.
◆ AddAngleConstraint()
void AddAngleConstraint |
( |
int |
a, |
|
|
int |
b, |
|
|
int |
c, |
|
|
double |
angle |
|
) |
| |
Constrain the angle a-b-c.
◆ AddTorsionConstraint()
void AddTorsionConstraint |
( |
int |
a, |
|
|
int |
b, |
|
|
int |
c, |
|
|
int |
d, |
|
|
double |
torsion |
|
) |
| |
Constrain the torsion angle a-b-c-d.
◆ DeleteConstraint()
void DeleteConstraint |
( |
int |
index | ) |
|
Delete a constraint
- index constraint index
◆ GetFactor()
◆ Size()
- Returns
- the number of set constraints
◆ GetConstraintType()
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
◆ GetConstraintValue()
double GetConstraintValue |
( |
int |
index | ) |
const |
- Returns
- The constraint value, this can be a bond length, angle or torsion angle depending on the constraint type.
◆ GetConstraintAtomA()
int GetConstraintAtomA |
( |
int |
index | ) |
const |
- Returns
- The constraint atom a (or fixed atom)
- index constraint index
◆ GetConstraintAtomB()
int GetConstraintAtomB |
( |
int |
index | ) |
const |
- Returns
- The constraint atom b
- index constraint index
◆ GetConstraintAtomC()
int GetConstraintAtomC |
( |
int |
index | ) |
const |
- Returns
- The constraint atom c
- index constraint index
◆ GetConstraintAtomD()
int GetConstraintAtomD |
( |
int |
index | ) |
const |
- Returns
- The constraint atom d
- index constraint index
◆ IsIgnored()
- Returns
- true if this atom is ignored
- a atom index
◆ IsFixed()
- Returns
- true if this atom is fixed
- a atom index
◆ IsXFixed()
- Returns
- true if the x coordinate for this atom is fixed
- a atom index
◆ IsYFixed()
- Returns
- true if the y coordinate for this atom is fixed
- a atom index
◆ IsZFixed()
- Returns
- true if the z coordinate for this atom is fixed
- a atom index
◆ GetIgnoredBitVec()
◆ GetFixedBitVec()
The documentation for this class was generated from the following files: