About Forum Issues Tutorials Documentation
</span>
This notebook gets you started with MDT - you'll build a small molecule, visualize it, and run a basic calculation.
In [ ]:
import moldesign as mdt
import moldesign.units as u
In [ ]:
mdt.configure()
In [ ]:
molecule = mdt.read('data/butane.xyz')
Executing a notebook cell with just the molecule at the end will display some useful information:
In [ ]:
molecule
In [ ]:
molecule.draw()
In [ ]:
molecule.set_energy_model(mdt.models.RHF, basis='sto-3g')
properties = molecule.calculate()
In [ ]:
print properties.keys()
print 'Energy: ', properties['potential_energy']
In [ ]:
molecule.draw_orbitals()
In [ ]:
mintraj = molecule.minimize()
In [ ]:
mintraj.draw_orbitals()
In [ ]:
molecule.write('my_first_molecule.xyz')
In [ ]:
mintraj.write('my_first_minimization.P.gz')
In [ ]:
mdt.widgets.GeometryBuilder(molecule)
In [ ]:
molecule.calculate_potential_energy()