Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • cleanup-fluff
  • less-pickle
  • psi4-factory
  • blindfix-file-handling-in-calculators
  • vibrations-without-pickle
  • gpfp
  • precon-neb-v2
  • bondmin
  • rmsd_comparison
  • code-quality-ci-check
  • remove-unused-ase.optimize.test
  • deprecate-crystal-structure-from-cell
  • 761-bug-reading-of-vasprun-xml-fails-if-any-eigenvalue-equals
  • calculator-no-more-shellcommand
  • fix-reciprocal-cli-1d-test
  • cherrypick-datadriven
  • rename-dos-plot
  • ase-config-file
  • more-qmmm-coverage
  • 3.20.1
  • 3.19.3
  • 3.20.0
  • 3.19.2
  • 3.19.1
  • 3.19.0
  • 3.18.2
  • 3.18.1
  • 3.18.0
  • 3.17.0
  • 3.16.2
  • 3.16.0
  • 3.15.0
  • 3.14.1
  • 3.14.0
  • 3.13.0
  • 3.12.0
  • 3.11.0
  • 3.10.0
  • 3.9.1
40 results

ase

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Ask Hjorth Larsen authored
    # Conflicts:
    #   ase/calculators/amber.py
    25599d06
    History

    Atomic Simulation Environment

    ASE is a set of tools and Python modules for setting up, manipulating, running, visualizing and analyzing atomistic simulations.

    Webpage: http://wiki.fysik.dtu.dk/ase

    Requirements

    • Python 3.6 or later
    • NumPy (base N-dimensional array package)
    • SciPy (library for scientific computing)

    Optional:

    • For ASE's GUI: Matplotlib (2D Plotting)
    • tkinter (for ase.gui)
    • Flask (for ase.db web-interface)

    Installation

    Add ~/ase to your $PYTHONPATH environment variable and add ~/ase/bin to $PATH (assuming ~/ase is where your ASE folder is).

    Testing

    Please run the tests:

    $ ase test  # takes 1 min.

    and send us the output if there are failing tests.

    Contact

    Please send us bug-reports, patches, code, ideas and questions.

    Example

    Geometry optimization of hydrogen molecule with NWChem:

    >>> 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, trajectory='h2.traj')
    >>> 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()  # ASE's units are eV and Ang
    -31.492847800329216
    

    This example requires NWChem to be installed.

    $ ase gui h2.traj