ase

Atomic Simulation Environment

37 个版本 Python >=3.10
安装
pip install ase
poetry add ase
pipenv install ase
conda install ase
描述

Atomic Simulation Environment

.. image:: https://gitlab.com/ase/ase/-/raw/master/doc/static/ase256.png :target: https://ase-lib.org/ :align: center

|

.. image:: https://badge.fury.io/py/ase.svg :target: https://pypi.org/project/ase/

.. image:: https://gitlab.com/ase/ase/badges/master/coverage.svg?job=coverage-combine :target: https://ase-lib.org/coverage-html/

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

Webpage: https://ase-lib.org/

Requirements

  • Python_ 3.10 or later
  • NumPy_ (base N-dimensional array package)
  • SciPy_ (library for scientific computing)
  • Matplotlib_ (2D Plotting)

Optional:

  • Flask_ (for ase.db web-interface)
  • spglib_ (for symmetry operations)

Installation

To install the latest release:

::

pip install ase

To install the development version:

::

pip install git+https://gitlab.com/ase/ase.git

Testing

Please run the tests::

$ ase test  # takes 1 min.

and send us the output if there are failing tests.

Contact

  • Mailing list: ase-users_

  • Chat: Join the #ase channel on Matrix_, also accessible via the Element_ webclient.

  • There is an ASE forum <https://matsci.org/c/ase/36>_ on the Materials Science Community Forum <https://matsci.org/>_.

Feel free to create Merge Requests and Issues on our GitLab page: https://gitlab.com/ase/ase

For regular support, please use the mailing list or chat rather than GitLab.

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

.. _Python: https://www.python.org/ .. _NumPy: https://numpy.org/doc/stable/ .. _SciPy: https://docs.scipy.org/doc/scipy/ .. _Matplotlib: https://matplotlib.org/ .. _flask: https://pypi.org/project/Flask/ .. _spglib: https://github.com/spglib/spglib .. _ase-users: https://listserv.fysik.dtu.dk/mailman/listinfo/ase-users .. _Matrix: https://matrix.to/#/!JEiuNJLuxedbohAOuH:matrix.org .. _Element: https://app.element.io/#/room/#ase:matrix.org

版本列表
3.29.0 2026-06-21
3.28.0 2026-03-17
3.27.0 2025-12-28
3.26.0 2025-08-12
3.25.0 2025-04-11
3.24.0 2024-12-28
3.23.0 2024-05-31
3.22.1 2021-12-01
3.22.0 2021-06-24
3.21.1 2021-01-24
3.21.0 2021-01-18
3.20.1 2020-08-11
3.20.0 2020-08-08
3.19.3 2020-08-11
3.19.2 2020-07-22
3.19.1 2020-04-03
3.19.0 2019-12-17
3.18.2 2019-12-15
3.18.1 2019-09-20
3.18.0 2019-07-19
3.17.0 2018-11-12
3.16.2 2018-06-05
3.16.1 2018-06-04
3.16.0 2018-03-21
3.15.0 2017-09-28
3.14.1 2017-06-28
3.14.0 2017-06-20
3.13.0 2017-02-07
3.13.0rc1 2017-01-17
3.13.0b1 2017-01-11
3.12.0 2016-10-24
3.11.0 2016-05-10
3.10.0 2016-03-17
3.9.1 2015-07-21
3.9.0 2015-05-28
3.8.2 2015-05-28