ForceBalance API
1.3
Automated optimization of force fields and empirical potentials
|
Subclass of Target for fitting force fields to interaction energies. More...
Public Member Functions | |
def | __init__ (self, options, tgt_opts, forcefield) |
def | read_reference_data (self) |
Read the reference ab initio data from a file such as qdata.txt. More... | |
def | indicate (self) |
def | get (self, mvals, AGrad=False, AHess=False) |
Evaluate objective function. More... | |
Public Attributes | |
select1 | |
Number of snapshots. More... | |
select2 | |
Set fragment 2. More... | |
loop_over_snapshots | |
Set upper cutoff energy. More... | |
eqm | |
Reference (QM) interaction energies. More... | |
label | |
Snapshot label, useful for graphing. More... | |
qfnm | |
The qdata.txt file that contains the QM energies and forces. More... | |
e_err | |
e_err_pct | |
mol | |
Read in the trajectory file. More... | |
ns | |
engine | |
Build keyword dictionaries to pass to engine. More... | |
divisor | |
Read in the reference data. More... | |
prefactor | |
weight | |
emm | |
objective | |
Subclass of Target for fitting force fields to interaction energies.
Currently TINKER is supported.
We introduce the following concepts:
This subclass contains the 'get' method for building the objective function from any simulation software (a driver to run the program and read output is still required).
Definition at line 38 of file interaction.py.
def src.interaction.Interaction.__init__ | ( | self, | |
options, | |||
tgt_opts, | |||
forcefield | |||
) |
def src.interaction.Interaction.get | ( | self, | |
mvals, | |||
AGrad = False , |
|||
AHess = False |
|||
) |
Evaluate objective function.
Definition at line 185 of file interaction.py.
def src.interaction.Interaction.indicate | ( | self | ) |
def src.interaction.Interaction.read_reference_data | ( | self | ) |
Read the reference ab initio data from a file such as qdata.txt.
After reading in the information from qdata.txt, it is converted into kcal/mol.
Definition at line 143 of file interaction.py.
src.interaction.Interaction.divisor |
Read in the reference data.
Definition at line 110 of file interaction.py.
src.interaction.Interaction.e_err |
Definition at line 89 of file interaction.py.
src.interaction.Interaction.e_err_pct |
Definition at line 90 of file interaction.py.
src.interaction.Interaction.emm |
Definition at line 232 of file interaction.py.
src.interaction.Interaction.engine |
Build keyword dictionaries to pass to engine.
Definition at line 103 of file interaction.py.
src.interaction.Interaction.eqm |
Reference (QM) interaction energies.
Definition at line 84 of file interaction.py.
src.interaction.Interaction.label |
Snapshot label, useful for graphing.
Definition at line 86 of file interaction.py.
src.interaction.Interaction.loop_over_snapshots |
Set upper cutoff energy.
Option for how much data to write to disk. LPW 2018-02-11: This is set to True if the target calculates a single-point property over several existing snapshots.
Definition at line 82 of file interaction.py.
src.interaction.Interaction.mol |
Read in the trajectory file.
Definition at line 92 of file interaction.py.
src.interaction.Interaction.ns |
Definition at line 96 of file interaction.py.
src.interaction.Interaction.objective |
Definition at line 233 of file interaction.py.
src.interaction.Interaction.prefactor |
Definition at line 129 of file interaction.py.
src.interaction.Interaction.qfnm |
The qdata.txt file that contains the QM energies and forces.
Definition at line 88 of file interaction.py.
src.interaction.Interaction.select1 |
Number of snapshots.
Do we call Q-Chem for dielectric energies? (Currently needs to be fixed) Do we put the reference energy into the denominator? Do we put the reference energy into the denominator? Divide by the number of snapshots? What is the energy denominator? Set fragment 1
Definition at line 66 of file interaction.py.
src.interaction.Interaction.select2 |
Set fragment 2.
Definition at line 70 of file interaction.py.
src.interaction.Interaction.weight |
Definition at line 189 of file interaction.py.