|
| void | appendError (const std::string &errorString, bool newLine=true) const |
| | Append an error to the error string for the model.
|
◆ newInstance()
| virtual EnergyCalculator * newInstance |
( |
| ) |
const |
|
pure virtual |
Create a new instance of the model. Ownership passes to the caller.
Implemented in LennardJones, and UFF.
◆ identifier()
| virtual std::string identifier |
( |
| ) |
const |
|
pure virtual |
- Returns
- a unique identifier for this calculator.
Implemented in LennardJones, and UFF.
◆ name()
| virtual std::string name |
( |
| ) |
const |
|
pure virtual |
- Returns
- A short translatable name for this method (e.g., MMFF94, UFF, etc.)
Implemented in LennardJones, and UFF.
◆ description()
| virtual std::string description |
( |
| ) |
const |
|
pure virtual |
◆ setConfiguration()
Called to set the configuration (e.g., for a GUI options dialog)
◆ elements()
- Returns
- an element mask corresponding to the defined subset
Implemented in LennardJones, and UFF.
◆ acceptsUnitCell()
| virtual bool acceptsUnitCell |
( |
| ) |
const |
|
virtual |
- Returns
- true if unit cells are supported
Reimplemented in LennardJones.
◆ acceptsIons()
| virtual bool acceptsIons |
( |
| ) |
const |
|
virtual |
◆ acceptsRadicals()
| virtual bool acceptsRadicals |
( |
| ) |
const |
|
virtual |
- Returns
- true if radicals are supported
Reimplemented in LennardJones, and UFF.
◆ gradient()
| void gradient |
( |
const TVector & | x, |
|
|
TVector & | grad ) |
|
override |
Calculate the gradients for this method, defaulting to numerical finite-difference methods
◆ cleanGradients()
| void cleanGradients |
( |
TVector & | grad | ) |
|
Called to 'clean' gradients
- Parameters
-
| grad | (e.g., for constraints) |
◆ constraintEnergies()
| Real constraintEnergies |
( |
const TVector & | x | ) |
|
Called to get the energies for the current set of constraints. which should be added to the value() method for real energies in derived classes
- Returns
- the sum of the constraint energies
◆ constraintGradients()
| void constraintGradients |
( |
const TVector & | x, |
|
|
TVector & | grad ) |
Called to get the gradients for the current set of constraints. which should be added to the gradient() method in derived classes.
- Parameters
-
| x | the current coordinates |
| grad | the gradient vector to be updated with constraint gradients |
◆ constraints()
Called to get the constraints for this method.
- Returns
- the constraints for this method
◆ setMask()
| void setMask |
( |
TVector | mask | ) |
|
Called to update the "frozen" mask (e.g., during editing)
◆ mask()
- Returns
- the frozen atoms mask
◆ setMolecule()
Called when the current molecule changes.
Implemented in LennardJones, and UFF.
◆ appendError()
| void appendError |
( |
const std::string & | errorString, |
|
|
bool | newLine = true ) const |
|
protected |
- Parameters
-
| errorString | The error to be added. |
| newLine | Add a new line after the error string? |
The documentation for this class was generated from the following file: