stko.MMFFEnergy
- class stko.MMFFEnergy(ignore_inter_interactions=True)[source]
Bases:
objectUses the MMFF force field to calculate energies.
Examples
import stk import stko # Create a molecule whose energy we want to know. mol1 = stk.BuildingBlock('CCCNCCCN') # Create the energy calculator. mmff = stko.MMFFEnergy() # Calculate the energy. results = mmff.get_results(mol1) energy = results.get_energy() unit_string = results.get_unit_string()
Methods
Calculate the energy of mol.
Calculate the energy of mol.
- Parameters:
ignore_inter_interactions (bool)
- get_energy(mol)[source]
Calculate the energy of mol.
- Parameters:
mol (Molecule) – The
stk.Moleculewhose energy is to be calculated.- Returns:
The energy.
- Return type: