================== Atomization energy ================== .. note:: We are currently moving to a new way to display our examples. For this example we have an updated version, which you can find :ref:`here `. The example on this page is deprecated and will be removed once all examples have been moved to the new format. The following script will calculate the atomization energy of a nitrogen molecule: .. literalinclude:: N2.py First, an ``Atoms`` object containing one nitrogen is created and a fast EMT calculator is attached to it simply as an argument. The total energy for the isolated atom is then calculated and stored in the ``e_atom`` variable. The ``molecule`` object is defined, holding the nitrogen molecule at the experimental bond length. The EMT calculator is then attached to the molecule and the total energy is extracted into the ``e_molecule`` variable. Running the script will produce the output:: Nitrogen atom energy: 5.10 eV Nitrogen molecule energy: 0.44 eV Atomization energy: 9.76 eV