Skip to main content

airsspy

Binder

A package to help working with the Ab initio Random Structure Searching (AIRSS) using Atomic simulation environment (ase). Supports building a search seed for AIRSS in a interactive python environments. One of the important steps for performing a successful search with AIRSS is to have sensible seed for generating random structures, which are subsequently relaxed using the method of choice. In general, AIRSS only relies on a few simple parameters to generate random structure, such as numbers of atoms, numbers of species and cell volume. However, for complicated search involving surfaces and/or interfaces, hand-building seed files becomes a tedious or impossible job to do. ASE has a suite of tools for manipulate atomic structure which can be very helpful for building structures, and here, for building search seeds.

AIRSS is a open source code licensed under GPLv2, this package does not contain any source code of AIRSS nor links to it.

What this does

  • Allow preparing seed for AIRSS using ASE's atoms interface
  • Allow ase's calculators to be used in AIRSS to do relaxations

Try interactively

Interactive jupyter notebook examples can be found in the examples folder. Click the binder badge above to launch these examples in a pre-built environment and try it in your browser!

Dependences

  • ase: The atomic simulation environment
  • castepinput: A light weight writer/reader for the input files of CASTEP.

Installation

The package can be installed from pypi together with the dependencies:

pip install airsspy

Alternative, one can also install directly from the repository (defaults to the master branch):

pip install git+https://github.com/zhubonan/airsspy

Usage

Assuming you are familiar with ase, python and has some basic knowledge of AIRSS. To prepare a seed for generating a sensible random structure:

from airsspy import SeedAtoms
seed = SeedAtoms('C6')
seed.buiid.varvol = 20
seed.build.symmops = (2, 4)

# Can also access per `atom` tags/ketwords just like in ASE
for i in range(0, 6, 2):
    atom = seed[i]
    atom.tagname = 'CX'
    atom.posamp = 2

To write the seed file onto the disk:

atoms.write_seed('C6.cell')
# With IPython
# Use the buildcell executable to generate the file
!buildcell < C6.cell > C6-rand.cell

To generate a cell we can create a Buildcell instance, which is helping wrapper to the buildcell program of AIRSS:

from airsspy import Buildcell
buidcell = Buildcell(seed)
random_atoms = builcell.generate()

A shortcut is also available as an method of the SeedAtoms:

random_atoms = seed.build_random_atoms()

Limitations

Due to the lack of timeout argument of Popen.communicate in python 2.7, communication with the buildcell is not available. Hence, direct generation and retrieval of the random structure are not supported in python. However, it is still possible to write the seed out and call the program externally.

Metadata

Release files for airsspy 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for airsspy 0.1.3
File Size Uploaded
airsspy-0.1.3.tar.gz 14.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for airsspy 0.1.3
File Interpreter ABI Platform
airsspy-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 39.5 kB

Release files / airsspy-0.1.3.tar.gz

Download URL airsspy-0.1.3.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e923424f6050d4c5e70325cdec6ddce8330f7f10f83e2c17c0bb2a50ea0bccfb
BLAKE2b-256 checksum
How to use checksums
51592e3ecadffa4eba6d06c28f6fb1c73b503edc324d1a243d8caf5ae4cdc8ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

Release files / airsspy-0.1.3-py3-none-any.whl

Download URL airsspy-0.1.3-py3-none-any.whl
Size 25.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19cb338a5e97643ca72bfc4af7379837e17829bebe1dc82d97720000c4c19f34
BLAKE2b-256 checksum
How to use checksums
280be01e47df1f0f293b6088f5ac8929eec6d2d739c257b6859406a5522afaaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

1 release file

0.1.1

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page