ForceBalance API  1.3
Automated optimization of force fields and empirical potentials
Classes | Functions | Variables
src.forcefield 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.forcefield.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 forcefield.py.

◆ rs_override()

def src.forcefield.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 1584 of file forcefield.py.

Variable Documentation

◆ FF_Extensions

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

Definition at line 125 of file forcefield.py.

◆ FF_IOModules

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

Definition at line 139 of file forcefield.py.

◆ logger

src.forcefield.logger = getLogger(__name__)

Definition at line 118 of file forcefield.py.