pysimm.forcefield.gaff2 module

class pysimm.forcefield.gaff2.Gaff2(db_file=None)[source]

Bases: pysimm.forcefield.forcefield.Forcefield

Forcefield object with typing rules for Gaff2 model. By default reads data file in forcefields subdirectory.

ff_name

gaff2

pair_style

lj

bond_style

harmonic

angle_style

harmonic

dihedral_style

fourier

improper_style

cvff

ff_class

1

assign_atypes(s)[source]

Gaff2 specific angle typing rules. Requires System object Particle objects have bonds, type and type.name defined. * use after assign_ptypes *

Parameters:sSystem
Returns:None
assign_btypes(s)[source]

Gaff2 specific bond typing rules. Requires System object Particle objects have bonds, type and type.name defined. * use after assign_ptypes *

Parameters:sSystem
Returns:None
assign_charges(s, charges='gasteiger')[source]

Charge assignment. Gasteiger is default for now.

Parameters:
  • sSystem
  • charges – gasteiger
Returns:

None

assign_dtypes(s)[source]

Gaff2 specific dihedral typing rules. Requires System object Particle objects have bonds, type and type.name defined. * use after assign_ptypes *

Parameters:sSystem
Returns:None
assign_itypes(s)[source]

Gaff2 specific improper typing rules.

Parameters:sSystem
Returns:None
assign_ptypes(s)[source]

Gaff2 specific particle typing rules. Requires System object Particle objects have bonds defined. * use System.add_particle_bonding() to ensure this *

* Not entirely inclusive - some atom types not used *

Parameters:sSystem
Returns:None