![]() |
ForceBalance API
1.3
Automated optimization of force fields and empirical potentials
|
Subclass of Target for fitting force fields to vibrational spectra (from experiment or theory). More...
Public Member Functions | |
| def | __init__ (self, options, tgt_opts, forcefield) |
| Initialization. More... | |
| def | read_reference_data (self) |
| Read the reference vibrational data from a file. More... | |
| def | indicate (self) |
| Print qualitative indicator. More... | |
| def | vibration_driver (self) |
| def | vib_overlap (self, v1, v2) |
| Calculate overlap between vibrational modes for two Cartesian displacements. More... | |
| def | get (self, mvals, AGrad=False, AHess=False) |
| Evaluate objective function. More... | |
Public Attributes | |
| loop_over_snapshots | |
| LPW 2018-02-11: This is set to True if the target calculates a single-point property over several existing snapshots. More... | |
| vfnm | |
| The vdata.txt file that contains the vibrations. More... | |
| engine | |
| Read in the reference data. More... | |
| na | |
| Number of atoms. More... | |
| ref_eigvals | |
| ref_eigvecs | |
| reassign | |
| c2r | |
| overlaps | |
| calc_eigvals | |
| objective | |
Subclass of Target for fitting force fields to vibrational spectra (from experiment or theory).
Currently Tinker is supported.
Definition at line 40 of file vibration.py.
| def src.vibration.Vibration.__init__ | ( | self, | |
| options, | |||
| tgt_opts, | |||
| forcefield | |||
| ) |
Initialization.
Definition at line 45 of file vibration.py.
| def src.vibration.Vibration.get | ( | self, | |
| mvals, | |||
AGrad = False, |
|||
AHess = False |
|||
| ) |
Evaluate objective function.
Definition at line 166 of file vibration.py.
| def src.vibration.Vibration.indicate | ( | self | ) |
Print qualitative indicator.
Definition at line 124 of file vibration.py.
| def src.vibration.Vibration.read_reference_data | ( | self | ) |
Read the reference vibrational data from a file.
Definition at line 78 of file vibration.py.
| def src.vibration.Vibration.vib_overlap | ( | self, | |
| v1, | |||
| v2 | |||
| ) |
Calculate overlap between vibrational modes for two Cartesian displacements.
v1, v2 : np.ndarray The two sets of Cartesian displacements to compute overlap for, 3*N_atoms values each.
float Overlap between mass-weighted eigenvectors
Definition at line 154 of file vibration.py.
| def src.vibration.Vibration.vibration_driver | ( | self | ) |
Definition at line 132 of file vibration.py.
| src.vibration.Vibration.c2r |
Definition at line 198 of file vibration.py.
| src.vibration.Vibration.calc_eigvals |
Definition at line 218 of file vibration.py.
| src.vibration.Vibration.engine |
Read in the reference data.
Build keyword dictionaries to pass to engine. Create engine object.
Definition at line 71 of file vibration.py.
| src.vibration.Vibration.loop_over_snapshots |
LPW 2018-02-11: This is set to True if the target calculates a single-point property over several existing snapshots.
Definition at line 62 of file vibration.py.
| src.vibration.Vibration.na |
Number of atoms.
Definition at line 80 of file vibration.py.
| src.vibration.Vibration.objective |
Definition at line 219 of file vibration.py.
| src.vibration.Vibration.overlaps |
Definition at line 203 of file vibration.py.
| src.vibration.Vibration.reassign |
Definition at line 125 of file vibration.py.
| src.vibration.Vibration.ref_eigvals |
Definition at line 81 of file vibration.py.
| src.vibration.Vibration.ref_eigvecs |
Definition at line 82 of file vibration.py.
| src.vibration.Vibration.vfnm |
The vdata.txt file that contains the vibrations.
Definition at line 64 of file vibration.py.
1.8.13