ForceBalance API
1.3
Automated optimization of force fields and empirical potentials
|
Classes | |
class | Point |
class | Thermo |
A target for fitting general experimental data sets. More... | |
Functions | |
def | energy_derivatives (engine, FF, mvals, h, pgrad, dipole=False) |
Compute the first and second derivatives of a set of snapshot energies with respect to the force field parameters. More... | |
Variables | |
logger = getLogger(__name__) | |
def src.thermo.energy_derivatives | ( | engine, | |
FF, | |||
mvals, | |||
h, | |||
pgrad, | |||
dipole = False |
|||
) |
Compute the first and second derivatives of a set of snapshot energies with respect to the force field parameters.
This basically calls the finite difference subroutine on the energy_driver subroutine also in this script.
In the future we may need to be more sophisticated with controlling the quantities which are differentiated, but for now this is okay..
[in] | engine | Engine object for calculating energies |
[in] | FF | Force field object |
[in] | mvals | Mathematical parameter values |
[in] | h | Finite difference step size |
[in] | pgrad | List of active parameters for differentiation |
[in] | dipole | Switch for dipole derivatives. |
Definition at line 46 of file thermo.py.