AiiDA ChemShell
An AiiDA plugin for the ChemShell multiscale computational chemistry software package.
Installation
This plugin is available through PyPI and should be installed using pip python package manager.
pip install aiida-chemshell
Requirements
To use this plugin a configured AiiDA profile and computer configuration are required, see the AiiDa documentation for instructions on how to install and configure AiiDA.
Setup
To configure the ChemShell plugin an AiiDA code instance needs to be configured for the ChemShell executable. The following is an example of a basic YAML configuration file:
label: chemsh
description: ChemShell
computer: localhost
filepath_executable: /absolute/path/to/chemsh
default_calc_job_plugin: chemshell
use_double_quotes: false
with_mpi: false
prepend_text: ''
append_text: ''
Write this to a file named chemshell.yml ensuring the value for computer matches the label of your computer configured in the previous
step. The code can then be configured by running:
verdi code create core.code.installed --config chemshell.yml -n
If successful this will have created a code with the label chemsh which can then be used to run ChemShell jobs within the AiiDA workflow.
ChemShell with MPI
It is important to note that the configuration of an MPI enabled ChemShell code differs slightly depending on whether the code instance uses
the chemsh or chemsh.x executable. If you have a parallel (MPI enabled) build of ChemShell but are using the chemsh wrapper executable
please set with_mpi: false as the underlying plugin will handle how to call the mpi runtime. If you are calling the chemsh.x executable
directly then with_mpi: true is required to run parallel jobs.
Examples
QM Based Single Point Energy
The following is a python script that will run a Quantum Mechanics based single point energy calculation using the NWChem ChemShell interface.
The associated structure file can be found in the tests/data/ folder.
from aiida.engine import run
from aiida.orm import load_code, SinglefileData, Dict
from aiida import load_profile
# This is not required if running in a verdi shell environment
load_profile("user_profile")
builder = load_code("chemsh").get_builder()
builder.structure = SinglefileData(file="/absolute/path/to/water.cjson")
builder.qm_parameters = Dict({"theory": "NWChem", "method": "HF", "basis": "3-21G"})
builder.calculation_parameters = Dict({"gradients": False, "hessian": False})
results, node = run.get_node(builder)
print("Final Energy = ", results.get("energy"))
This can either be run as a script or as directly within a verdi shell python environment.
QM/MM Based Geometry Optimisation
The following is a python script that will run a combined QM/MM based geometry optimisation using the NWChem and DL_POLY ChemShell interfaces.
The associated structure and force field files can be found in the tests/data/ folder.
from aiida.engine import run
from aiida.orm import load_code, SinglefileData, Dict
from aiida import load_profile
# This is not required if running in a verdi shell environment
load_profile("user_profile")
builder = load_code("chemsh").get_builder()
builder.structure = SinglefileData(file="/absolute/path/to/h2o_dimer.cjson")
builder.qm_parameters = Dict({"theory": "NWChem", "method": "DFT", "basis": "6-31G"})
builder.mm_parameters = Dict({"theory": "DL_POLY"})
builder.force_field_file = SinglefileData(file="/absolute/path/to/h2o_dimer.ff")
builder.optimisation_parameters = Dict({"algorithm": "lbfgs", "maxcyle": 100})
results, node = run.get_node(builder)
print("Final Energy = ", result.get("energy"))
This can either be run as a script or as directly within a verdi shell python environment.
Metadata
Release files for aiida-chemshell 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiida_chemshell-0.3.2.tar.gz | 40.2 kB | Without provenance | Details for aiida_chemshell-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiida_chemshell-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for aiida_chemshell-0.3.2-py3-none-any.whl |
Total release size: 73.1 kB
Release files / aiida_chemshell-0.3.2.tar.gz
| Download URL | aiida_chemshell-0.3.2.tar.gz |
|---|---|
| Size | 40.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac1c401a19003ea1dc587ddf08cecb837ad960516e111f120cc2c639ca6cac6c
|
|
BLAKE2b-256 checksum How to use checksums |
7b3779bd755ed42c6fa94d1fcf7c6ab5a54b76b4126373ae687abcfc1e7d9a2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Release files / aiida_chemshell-0.3.2-py3-none-any.whl
| Download URL | aiida_chemshell-0.3.2-py3-none-any.whl |
|---|---|
| Size | 32.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a29d4c5004df8de7c48f56824bdd19be6080d4aab9cc51b63bef75e34e518c5a
|
|
BLAKE2b-256 checksum How to use checksums |
ed1e7c478e94d590ffd7f11f5e41b4fac4c83cc04f731341c6733e867cf91775
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Security for aiida-chemshell 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.