跳转到主要内容

原子模拟环境

项目描述

ASE 是一套用于设置、操作、运行、可视化和分析原子模拟的工具和 Python 模块。

网页: http://wiki.fysik.dtu.dk/ase

需求

可选

  • Flask(用于ase.db网络界面)

  • spglib(用于对称操作)

安装

要安装最新版本

pip install ase

安装开发版本

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

测试

请运行测试

$ ase test  # takes 1 min.

如果有失败的测试,请将输出发送给我们。

联系方式

请随意在我们的GitLab页面上创建合并请求和问题:https://gitlab.com/ase/ase

对于常规支持,请使用邮件列表或聊天,而不是GitLab。

示例

使用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

此示例需要安装NWChem。

$ ase gui h2.traj

项目详情


下载文件

下载适合您平台文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分发

ase-3.23.0.tar.gz (2.3 MB 查看哈希值)

上传时间

构建分发

ase-3.23.0-py3-none-any.whl (2.9 MB 查看哈希值)

上传时间 Python 3

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面