ForceBalance API  1.3
Automated optimization of force fields and empirical potentials
Classes | Functions | Variables
src.ffyapf Namespace Reference

Classes

class  BackedUpDict
 
class  FF
 Force field class. More...
 

Functions

def determine_fftype (ffname, verbose=False)
 Determine the type of a force field file. More...
 
def rs_override (rsfactors, termtype, Temperature=298.15)
 This function takes in a dictionary (rsfactors) and a string (termtype). More...
 

Variables

 logger = getLogger(__name__)
 
dictionary FF_Extensions
 
dictionary FF_IOModules
 

Function Documentation

◆ determine_fftype()

def src.ffyapf.determine_fftype (   ffname,
  verbose = False 
)

Determine the type of a force field file.

It is possible to specify the file type explicitly in the input file using the syntax 'force_field.ext:type'. Otherwise this function will try to determine the force field type by extension.

Definition at line 156 of file ffyapf.py.

◆ rs_override()

def src.ffyapf.rs_override (   rsfactors,
  termtype,
  Temperature = 298.15 
)

This function takes in a dictionary (rsfactors) and a string (termtype).

If termtype matches any of the strings below, rsfactors[termtype] is assigned to one of the numbers below.

This is LPW's attempt to simplify the rescaling factors.

Parameters
[out]rsfactorsThe computed rescaling factor.
[in]termtypeThe interaction type (corresponding to a physical unit)
[in]TemperatureThe temperature for computing the kT energy scale

Definition at line 1668 of file ffyapf.py.

Variable Documentation

◆ FF_Extensions

dictionary src.ffyapf.FF_Extensions
Initial value:
1 = {
2  "itp": "gmx",
3  "top": "gmx",
4  "in": "qchem",
5  "prm": "tinker",
6  "gen": "custom",
7  "xml": "openmm",
8  "offxml": "smirnoff",
9  "frcmod": "frcmod",
10  "mol2": "mol2",
11  "gbs": "gbs",
12  "grid": "grid"
13 }

Definition at line 123 of file ffyapf.py.

◆ FF_IOModules

dictionary src.ffyapf.FF_IOModules
Initial value:
1 = {
2  "gmx": gmxio.ITP_Reader,
3  "qchem": qchemio.QCIn_Reader,
4  "tinker": tinkerio.Tinker_Reader,
5  "custom": custom_io.Gen_Reader,
6  "openmm": openmmio.OpenMM_Reader,
7  "smirnoff": smirnoffio.SMIRNOFF_Reader,
8  "frcmod": amberio.FrcMod_Reader,
9  "mol2": amberio.Mol2_Reader,
10  "gbs": psi4io.GBS_Reader,
11  "grid": psi4io.Grid_Reader
12 }

Definition at line 137 of file ffyapf.py.

◆ logger

src.ffyapf.logger = getLogger(__name__)

Definition at line 116 of file ffyapf.py.