index.rst 6.53 KB

Atomic Simulation Environment

The Atomic Simulation Environment (ASE) is a set of tools and Python modules for setting up, manipulating, running, visualizing and analyzing atomistic simulations. The code is freely available under the :ref:`GNU LGPL license <license info>`.

>>> # Example: structure optimization of hydrogen molecule
>>> from ase import Atoms
>>> from ase.optimize import BFGS
>>> from ase.calculators.nwchem import NWChem
>>> from ase.io import write
>>> h2 = Atoms('H2',
               positions=[[0, 0, 0],
                          [0, 0, 0.7]])
>>> h2.calc = NWChem(xc='PBE')
>>> opt = BFGS(h2)
>>> opt.run(fmax=0.02)
BFGS:   0  19:10:49    -31.435229     2.2691
BFGS:   1  19:10:50    -31.490773     0.3740
BFGS:   2  19:10:50    -31.492791     0.0630
BFGS:   3  19:10:51    -31.492848     0.0023
>>> write('H2.xyz', h2)
>>> h2.get_potential_energy()
-31.492847800329216

Please go through this check-list to figure out if you need to convert your old ASE trajectory files to the modern file-format:

static/oldtraj.png

See how to identify and convert old trajectory files here: :ref:`convert`.

Supported :mod:`Calculators <ase.calculators>`:

abinit Asap Atomistica CASTEP CP2K deMon dftb elk exciting EMT fhi-aims fleur gpaw gromacs hotbit jacapo jdftx lammps nwchem octopus onetep siesta turbomole vasp :mod:`~ase.calculators.amber` Gaussian Grimme-D3 Mopac :mod:`~ase.calculators.tip3p`

News

Contents