Skip to main content

No project description provided

Project description

airsspy

Binder

Package to help working with the Ab initio Random Structure Searching (AIRSS) using Atomic simulation environment (ase). 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!

Requirements

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airsspy-0.1.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

airsspy-0.1.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file airsspy-0.1.0.tar.gz.

File metadata

  • Download URL: airsspy-0.1.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for airsspy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d1a4c3cab161e75962910e183bc918f1020a0c9165dd128bb47b9fa5613485fb
MD5 109792b515a7a775cde4474238d94892
BLAKE2b-256 c2c0a6df452d3c136fdccd5a5c9dc295389e44d04709af0f413cc698c6fda5a2

See more details on using hashes here.

File details

Details for the file airsspy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: airsspy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for airsspy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 148adaedd8941c2592f483b0001e6f9da437eda1463a8937a1bfea926544e9bc
MD5 eae08362820309f8a19d7628b22698bd
BLAKE2b-256 0a6f1b2e222993bf228b22be8e14b523dc81cd0b856a8425a05240acb71a09f3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page