Skip to content

pmx_forcefield.md

dseeliger edited this page Mar 31, 2015 · 1 revision

Classes and functions to handle topologies and itp file. Only tested for amber forcefields

class forcefield.Topology():

Constructors:

>>> top = Topology("topol.top")
>>> for atom in top.atoms: print atom.q, atom.atomtype         # print charge and atomtype
>>> top.write_top("new.top")                 # output new topology
Clone this wiki locally