Skip to main content

Release PyPI

Docs status Pipeline Status Coverage Status

DOI

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.1

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

Source distribution (sdist)

Source distribution for aiida-chemshell 0.3.1
File Size Uploaded
aiida_chemshell-0.3.1.tar.gz 42.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aiida-chemshell 0.3.1
File Interpreter ABI Platform
aiida_chemshell-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 81.0 kB

Release files / aiida_chemshell-0.3.1.tar.gz

Download URL aiida_chemshell-0.3.1.tar.gz
Size 42.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5172f5b72cc420ad2237929d0f7e53f44ad8d6ca2b68d219a9546326b8de9877
BLAKE2b-256 checksum
How to use checksums
9951f1a889943f90b18daa1fd976c0a566c7065ba95e0023c6bcef7766c35077
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / aiida_chemshell-0.3.1-py3-none-any.whl

Download URL aiida_chemshell-0.3.1-py3-none-any.whl
Size 38.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b9c8ed7c8be3402e72e6d3438ea06f6ad6ef7e8038264a90583ec407c96d977
BLAKE2b-256 checksum
How to use checksums
f09a2cfc6ee2bc047bf2a5e151bf58eb9c441d3a13b03e7874120198b8c8482d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.14

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.13

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

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