Each TermTable is intended to describe a specific type of interaction,
e.g. stretch, angle, Lennard-Jones, constraint_hoh, etc. A TermTable has
an arity (given by the natoms property) which specifies how many atoms
are involved in each interaction: one for nonbonded terms, two for
stretch terms, etc. Each interaction instance is described by a `Term`.
Each Term references the appropriate number of atoms, and exactly one
Param, which lives in a ParamTable owned (or possible shared) by the
TermTable.
The functional form described by a TermTable is not part of msys; all
msys does is represent the forcefield parameters in a generic way.
|
__init__(self,
_ptr)
Construct from TermTablePtr. |
|
|
|
|
|
|
|
|
|
remove(self)
Remove this table from its parent system |
|
|
|
coalesce(self)
Reassign param for each Term in this Table to a member of the
distinct set of Params used by those Terms. |
|
|
|
|
|
delTermsWithAtom(self,
atom)
remove all terms whose atoms list contains the given Atom |
|
|
|
findWithAll(self,
atoms)
return the terms that contain all the given atoms in any order |
|
|
|
findWithAny(self,
atoms)
return the terms that contain at least one of the given atoms |
|
|
|
findWithOnly(self,
atoms)
return the terms that contain only the given atoms |
|
|
|
findExact(self,
atoms)
return the terms that contain precisely the given atoms in the given
order. |
|
|
|
term(self,
id)
returns the Term in the table with the given id |
|
|
|
hasTerm(self,
id)
Does a Term with the given id exist in the table? |
|
|
|
addTermProp(self,
name,
type)
add a custom Term property of the given type |
|
|
|
delTermProp(self,
name)
remove the custom Term property |
|
|
|
termPropType(self,
name)
type of the given Term property |
|
|
|
addTerm(self,
atoms,
param=None)
Add a Term to the table, with given initial param. |
|
|
|
overrides(self)
return a mapping from pairs of Params in self.params to a Param in
self.override_params. |
|
|
|
setOverride(self,
pi,
pj,
op)
override the interaction between params pi and pj with the
interaction given by op. |
|
|
|
getOverride(self,
pi,
pj)
get override for given pair of params, or None if not present. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|