Skip to main content

AiiDA plugin for zeo++

Project description

[![Build Status](https://travis-ci.org/ltalirz/aiida-zeopp.svg?branch=master)](https://travis-ci.org/ltalirz/aiida-zeopp)
[![Coverage Status](https://coveralls.io/repos/github/ltalirz/aiida-zeopp/badge.svg?branch=master)](https://coveralls.io/github/ltalirz/aiida-zeopp?branch=master)
[![Docs status](https://readthedocs.org/projects/aiida-zeopp/badge)](http://aiida-zeopp.readthedocs.io/)
[![PyPI version](https://badge.fury.io/py/aiida-zeopp.svg)](https://badge.fury.io/py/aiida-zeopp)

# aiida-zeopp

AiiDA plugin for [Zeo++](http://www.zeoplusplus.org/)

## Installation

```shell
git clone https://github.com/ltalirz/aiida-zeopp aiida-zeopp
cd aiida-zeopp
pip install -e . # also installs aiida, if missing (but not postgres)
reentry scan
verdi quicksetup # better to set up a new profile
verdi calculation plugins # should now show your calclulation plugins
```

## Usage

```shell
verdi daemon start # make sure the daemon is running
cd examples
verdi run submit.py # submit test calculation
verdi calculation list -a # check status of calculation
```

See `examples/submit.py` for an example of how to set up a calculation:

* Use `CifData` to specify input structure.
* (optional) Use `SinglefileData` to specify atomic radii file.
* Use `NetworkParameters` dictionary to specify other command line options.
For a complete list of supported command line options, see [here](aiida_zeopp/data/parameters.py)

## Tests

The following will discover and run all unit test:
```shell
pip install -e .[testing]
python manage.py
```

## Analyzing output

```shell
$ verdi calculation show 88
----------- ------------------------------------------------------------------------------
type NetworkCalculation
pk 88
uuid deb63433-4dcd-4ca1-9165-cb97877496b3
label aiida_zeopp example calculation
description Converts .cif to .cssr format, computes surface area, pore volume and channels
ctime 2018-11-19 09:12:55.259776+00:00
mtime 2018-11-19 09:15:15.708275+00:00
computer [1] localhost
code network
----------- ------------------------------------------------------------------------------
##### INPUTS:
Link label PK Type
------------ ---- -----------------
parameters 87 NetworkParameters
structure 86 CifData
##### OUTPUTS:
Link label PK Type
----------------- ---- --------------
remote_folder 89 RemoteData
retrieved 90 FolderData
structure_cssr 91 SinglefileData
output_parameters 92 ParameterData

$ verdi calculation res 88
{
"ASA_A^2": 3532.09,
"ASA_m^2/cm^3": 1932.13,
"ASA_m^2/g": 2197.86,
"Channel_surface_area_A^2": 3532.09,
"Channels": {
"Dimensionalities": [
3
],
"Largest_free_spheres": [
6.74621
],
"Largest_included_free_spheres": [
13.1994
],
"Largest_included_spheres": [
13.1994
]
},
"Density": 0.879097,
"Input_chan": 1.2,
"Input_cssr": true,
"Input_sa": [
1.82,
1.82,
1000
],
"Input_structure_filename": "HKUST-1.cif",
"Input_volpo": [
1.82,
1.82,
1000
],
"NASA_A^2": 0.0,
"NASA_m^2/cm^3": 0.0,
"NASA_m^2/g": 0.0,
"Number_of_channels": 1,
"Number_of_pockets": 0,
"POAV_A^3": 9049.01,
"POAV_Volume_fraction": 0.495,
"POAV_cm^3/g": 0.563078,
"PONAV_A^3": 0.0,
"PONAV_Volume_fraction": 0.0,
"PONAV_cm^3/g": 0.0,
"Pocket_surface_area_A^2": 0.0,
"Unitcell_volume": 18280.8
}

$ verdi calculation outputls 88
_scheduler-stderr.txt
_scheduler-stdout.txt
out.chan
out.cssr
out.sa
out.volpo

$ verdi calculation outputcat 88 -p out.sa
@ out.sa Unitcell_volume: 18280.8 Density: 0.879097 ASA_A^2: 3532.09 ASA_m^2/cm^3: 1932.13 ASA_m^2/g: 2197.86 NASA_A^2: 0 NASA_m^2/cm^3: 0 NASA_m^2/g: 0
Number_of_channels: 1 Channel_surface_area_A^2: 3532.09
Number_of_pockets: 0 Pocket_surface_area_A^2:
```

## License

MIT

## Contact
leopold.talirz@gmail.com


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

aiida-zeopp-0.2.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

aiida_zeopp-0.2.0-py2-none-any.whl (21.5 kB view details)

Uploaded Python 2

File details

Details for the file aiida-zeopp-0.2.0.tar.gz.

File metadata

  • Download URL: aiida-zeopp-0.2.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/2.7.14

File hashes

Hashes for aiida-zeopp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 456cba1313b86026155318deac0d55dba9d1cc8e58a84287c886e53d8cb68953
MD5 75dd04041b301825df23ab607bff5b63
BLAKE2b-256 8136a2086e3f7e45e05fb90c3e02e0a317f683eaaa5c20b93304b2732d8d3ff6

See more details on using hashes here.

Provenance

File details

Details for the file aiida_zeopp-0.2.0-py2-none-any.whl.

File metadata

  • Download URL: aiida_zeopp-0.2.0-py2-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/2.7.14

File hashes

Hashes for aiida_zeopp-0.2.0-py2-none-any.whl
Algorithm Hash digest
SHA256 e426a39137e87dc8c5e301f187a9c9ccb06f83cb5b7b60693570878bc6c0d389
MD5 f1576f2efea549384f8ddba6afe4e7c9
BLAKE2b-256 726397ed7dc99650a683ca65cbb251ef751ed542afb63bdf5fc88d0801415f0e

See more details on using hashes here.

Provenance

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