A class to provide force field energy and minimization.
For simple cases the minimize_structure function can be used. Direct
use of this class is mostly useful for cases where multiple conformers
are to be minimized, as the updateCoordinates() method allows one to
avoid running atom-typing for every conformer.
|
__init__(self,
ffld_version=OPLS_2005,
struct=None,
cleanup=False,
**kwargs)
Initialize. |
|
|
|
__del__(self)
Clean up library resources. |
|
|
|
getStructure(self)
Return the current structure. |
|
|
|
updateCoordinates(self,
struct)
Update the coordinates of the current structure with the values from
the provided struct. |
|
|
|
minimize(self)
Minimize the provided Structure. |
|
|
|
getTotalEnergy(self)
get the total energy of the system |
|
|
|
getStretchEnergy(self)
get the stretch energy of the system |
|
|
|
getBendingEnergy(self)
get the beinding energy of the system |
|
|
|
getTorsionEnergy(self)
get the torsion energy of the system |
|
|
|
getImpTorsionEnergy(self)
get the imporoper torsion energy of the system |
|
|
|
get14LJEnergy(self)
get the 1,4-Lennard Jones energy of the system |
|
|
|
getLJEnergy(self)
get the Lennard Jones energy of the system |
|
|
|
get14EleEnergy(self)
get the 1,4-electrostatic energy of the system |
|
|
|
getEleEnergy(self)
get the electrostatic energy of the system |
|
|
|
getBondedEnergyComponents(self,
stretch_item_list,
bending_item_list,
torsion_item_list,
imp_torsion_item_list)
Get energy components for bonded terms given in an list of
stretches/bend/torsions/improper torsions (given as integer numbers)
in *_item_list. |
|
|
|
getNBEnergyComponents(self,
atom_list_i,
atom_list_j,
nb_energy_component_list)
TODO: this API should be eliminated. |
|
|
|
|
|
getTotalAtom(self)
get the total number of atoms |
|
|
|
getTotalStretch(self)
get the total number of stretch |
|
|
|
getStretch(self,
istr)
get the stretch type information and parameters |
|
|
|
getTotalBending(self)
get the total number of bending |
|
|
|
getBending(self,
ibnd)
get the bending type information and parameters |
|
|
|
getTotalTorsion(self)
get the total number of torsion |
|
|
|
getTorsion(self,
itor)
get the torsion type information and parameters |
|
|
|
getTotalImpTorsion(self)
get the total number of improper torsion |
|
|
|
getImpTorsion(self,
imp_tor)
get the improper torsion type information and parameters |
|
|
|
getTotal14Pair(self)
get the total number of 1,4-pairs |
|
|
|
getNB14Pairs(self,
i14pair)
get the 1,4-pair information |
|
|
|
getExcludedAtomList(self,
iatom,
excluded_atoms)
get the excluded atoms |
|
|
|
setStructure(self,
struct)
Change the structure to be minimized. |
|
|
|
getEnergy(self,
recalc=None)
Get the energy for the current structure from properties if possible,
otherwise run a zero-step minimization to calculate the energy. |
|
|
|
setOptions(self,
**kwargs)
Set Minimizer options by keyword. |
|
|
|
getOptions(self)
Return the values for all properties that control Minimizer behavior. |
|
|
|
setLigandCleanupOptions(self)
Obsolete. |
|
|
|
addTorsionRestraint(self,
i,
j,
k,
l,
force_constant,
target,
flat_bottom=0.0)
Define a torsional restraint. |
|
|
|
addAngleRestraint(self,
i,
j,
k,
force_constant,
target,
flat_bottom=0.0)
Define an angle restraint. |
|
|
|
addDistanceRestraint(self,
i,
j,
force_constant,
target,
flat_bottom=0.0)
Define a distance restraint. |
|
|
|
addPosRestraint(self,
i,
force_constant,
flat_bottom=0.0)
Define a positional restraint. |
|
|
|
|
|
deleteAllRestraints(self,
rest_type=mm.MMFfldAllRestType)
Delete all the restraints for a given type (default all types). |
|
|
|
printParameters(self)
Print all parameters for the entered molecules. |
|
|
|
min_converged(self)
Return 1 if last minimization converged, 0 if it didn't. |
|
|
|
|
|
min_energy(self)
Return the energy calculated in the last minimization. |
|
|
tuple
|
getBondedEnergies(self,
atom_subset)
Return bonded energies for bonded interactions within the given atom
subset. |
|
|
float
|
getBondedInteractionEnergy(self,
atomset1,
atomset2=None,
verbose=False)
Return the bonded component of the interaction energy between the two
given atom sets. |
|
|
tuple
|
getNonBondedEnergies(self,
atom_subset,
verbose=False)
Given a list of atoms representing a substructure (e.g. |
|
|
float
|
getSelfEnergy(self,
atom_subset,
include_intra_nb=True)
Return the internal energy of the the given atoms. |
|
|
float
|
getSubsetEnergy(self,
atom_subset,
include_intra_nb=True,
verbose=False)
Return the potential energy of the the given atoms. |
|
|
float
|
|
float
|
getInteractionEnergy(self,
subset_atoms,
consider_atoms=None,
include_bonded=False,
verbose=False)
Calculate the energy of interaction between the <subset_atoms>
and the <consider_atoms>. |
|
|