ForceBalance API
1.3
Automated optimization of force fields and empirical potentials
|
Public Member Functions | |
def | __init__ (self, engname, temperature, pressure, name=None) |
Density. More... | |
def | extract (self, engines, FF, mvals, h, pgrad, AGrad=True) |
def | __str__ (self) |
def | extract (self, engines, FF, mvals, h, AGrad=True) |
Calculate and extract the quantity from MD results. More... | |
Public Attributes | |
name | |
engname | |
temperature | |
pressure | |
Definition at line 133 of file quantity.py.
def src.quantity.Quantity_Density.__init__ | ( | self, | |
engname, | |||
temperature, | |||
pressure, | |||
name = None |
|||
) |
Density.
Definition at line 136 of file quantity.py.
|
inherited |
Definition at line 97 of file quantity.py.
|
inherited |
Calculate and extract the quantity from MD results.
How this is done depends on the quantity and the engine so this must be implemented in the subclass.
engines : list A list of Engine objects that are requred to calculate the quantity. FF : FF Force field object. mvals : list Mathematical parameter values. h : float Finite difference step size. AGrad : Boolean Switch that turns derivatives on or off; if off, return all zeros.
result : (float, float, np.array) The returned tuple is (Q, Qerr, Qgrad), where Q is the calculated quantity, Qerr is the calculated standard deviation of the quantity, and Qgrad is a M-array with the calculated gradients for the quantity, with M being the number of force field parameters that are being fitted.
Definition at line 128 of file quantity.py.
def src.quantity.Quantity_Density.extract | ( | self, | |
engines, | |||
FF, | |||
mvals, | |||
h, | |||
pgrad, | |||
AGrad = True |
|||
) |
Definition at line 141 of file quantity.py.
src.quantity.Quantity_Density.engname |
Definition at line 154 of file quantity.py.
src.quantity.Quantity_Density.name |
Definition at line 139 of file quantity.py.
|
inherited |
Definition at line 95 of file quantity.py.
|
inherited |
Definition at line 94 of file quantity.py.