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

Classes

class  AbInitio_TINKER
 Subclass of Target for force and energy matching using TINKER. More...
 
class  BindingEnergy_TINKER
 Binding energy matching using TINKER. More...
 
class  Interaction_TINKER
 Subclass of Target for interaction matching using TINKER. More...
 
class  Liquid_TINKER
 Condensed phase property matching using TINKER. More...
 
class  Moments_TINKER
 Subclass of Target for multipole moment matching using TINKER. More...
 
class  TINKER
 Engine for carrying out general purpose TINKER calculations. More...
 
class  Tinker_Reader
 Finite state machine for parsing TINKER force field files. More...
 
class  Vibration_TINKER
 Vibrational frequency matching using TINKER. More...
 

Functions

def write_key (fout, options, fin=None, defaults={}, verbose=False, prmfnm=None, chk=[])
 Create or edit a TINKER .key file. More...
 

Variables

list allp
 
list eckeys
 
 logger = getLogger(__name__)
 
dictionary pdict
 

Function Documentation

◆ write_key()

def src.tinkerio.write_key (   fout,
  options,
  fin = None,
  defaults = {},
  verbose = False,
  prmfnm = None,
  chk = [] 
)

Create or edit a TINKER .key file.

Parameters
[in]foutOutput file name, can be the same as input file name.
[in]optionsDictionary containing .key options. Existing options are replaced, new options are added at the end. Passing None causes options to be deleted. To pass an option without an argument, use ''.
[in]finInput file name.
[in]defaultsDefault options to add to the mdp only if they don't already exist.
[in]verbosePrint out all modifications to the file.
[in]prmfnmTINKER parameter file name.
[in]chkCrash if the key file does NOT have these options by the end.

Definition at line 184 of file tinkerio.py.

Here is the call graph for this function:

Variable Documentation

◆ allp

list src.tinkerio.allp
Initial value:
1 = ['atom', 'vdw', 'vdw14', 'vdwpr', 'hbond', 'bond', 'bond5', 'bond4',
2  'bond3', 'electneg', 'angle', 'angle5', 'angle4', 'angle3', 'anglef',
3  'strbnd', 'ureybrad', 'angang', 'opbend', 'opdist', 'improper', 'imptors',
4  'torsion', 'torsion5', 'torsion4', 'pitors', 'strtors', 'tortors', 'charge',
5  'dipole', 'dipole5', 'dipole4', 'dipole3', 'multipole', 'polarize', 'piatom',
6  'pibond', 'pibond5', 'pibond4', 'metal', 'biotype', 'mmffvdw', 'mmffbond',
7  'mmffbonder', 'mmffangle', 'mmffstrbnd', 'mmffopbend', 'mmfftorsion', 'mmffbci',
8  'mmffpbci', 'mmffequiv', 'mmffdefstbn', 'mmffcovrad', 'mmffprop', 'mmffarom']

Definition at line 39 of file tinkerio.py.

◆ eckeys

list src.tinkerio.eckeys
Initial value:
1 = ['Angle-Angle', 'Angle Bending', 'Atomic Multipoles', 'Bond Stretching', 'Charge-Charge',
2  'Charge-Dipole', 'Dipole-Dipole', 'Extra Energy Terms', 'Geometric Restraints', 'Implicit Solvation',
3  'Improper Dihedral', 'Improper Torsion', 'Metal Ligand Field', 'Out-of-Plane Bend', 'Out-of-Plane Distance',
4  'Pi-Orbital Torsion', 'Polarization', 'Reaction Field', 'Stretch-Bend', 'Stretch-Torsion',
5  'Torsional Angle', 'Torsion-Torsion', 'Urey-Bradley', 'Van der Waals']

Definition at line 49 of file tinkerio.py.

◆ logger

src.tinkerio.logger = getLogger(__name__)

Definition at line 56 of file tinkerio.py.

◆ pdict

dictionary src.tinkerio.pdict
Initial value:
1 = {'VDW' : {'Atom':[1], 2:'S',3:'T',4:'D'}, # Van der Waals distance, well depth, distance from bonded neighbor?
2  'BOND' : {'Atom':[1,2], 3:'K',4:'B'}, # Bond force constant and equilibrium distance (Angstrom)
3  'ANGLE' : {'Atom':[1,2,3], 4:'K',5:'B'}, # Angle force constant and equilibrium angle
4  'STRBND' : {'Atom':[1,2,3], 4:'K1',5:'K2'}, # Two stretch-bend force constants (usually same)
5  'OPBEND' : {'Atom':[1,2,3,4], 5:'K'}, # Out-of-plane bending force constant
6  'UREYBRAD' : {'Atom':[1,2,3], 4:'K',5:'B'}, # Urey-Bradley force constant and equilibrium distance (Angstrom)
7  'TORSION' : ({'Atom':[1,2,3,4], 5:'1K', 6:'1B',
8  8:'2K', 9:'2B', 11:'3K', 12:'3B'}), # Torsional force constants and equilibrium phi-angles
9  'PITORS' : {'Atom':[1,2], 3:'K'}, # Pi-torsion force constants (usually 6.85 ..)
10  'CHARGE' : {'Atom':[1], 2:''}, # Atomic partial charge (OPLS style)
11  # Note torsion-torsion (CMAP) not implemented at this time.
12  'MCHARGE' : {'Atom':[1,2,3], 4:''}, # Atomic charge
13  'DIPOLE' : {0:'X',1:'Y',2:'Z'}, # Dipole moment in local frame
14  'QUADX' : {0:'X'}, # Quadrupole moment, X component
15  'QUADY' : {0:'X',1:'Y'}, # Quadrupole moment, Y component
16  'QUADZ' : {0:'X',1:'Y',2:'Z'}, # Quadrupole moment, Y component
17  'POLARIZE' : {'Atom':[1], 2:'A',3:'T'}, # Atomic dipole polarizability
18  'BOND-CUBIC' : {'Atom':[], 0:''}, # Below are global parameters.
19  'BOND-QUARTIC' : {'Atom':[], 0:''},
20  'ANGLE-CUBIC' : {'Atom':[], 0:''},
21  'ANGLE-QUARTIC': {'Atom':[], 0:''},
22  'ANGLE-PENTIC' : {'Atom':[], 0:''},
23  'ANGLE-SEXTIC' : {'Atom':[], 0:''},
24  'DIELECTRIC' : {'Atom':[], 0:''},
25  'POLAR-SOR' : {'Atom':[], 0:''}
26  # Ignored for now: stretch/bend coupling, out-of-plane bending,
27  # torsional parameters, pi-torsion, torsion-torsion
28  }

Definition at line 58 of file tinkerio.py.