Skip to main content

AiiDA workflow plugin for the ChemShell chemical modelling software package

Project description

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.

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 

load_profile("user_profile")  # This is not required if running in a verdi shell environment 

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 

load_profile("user_profile")  # This is not required if running in a verdi shell environment 

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.

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_chemshell-0.1.5.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiida_chemshell-0.1.5-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file aiida_chemshell-0.1.5.tar.gz.

File metadata

  • Download URL: aiida_chemshell-0.1.5.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for aiida_chemshell-0.1.5.tar.gz
Algorithm Hash digest
SHA256 dbdcdb63a14c2cb36f087ddec7201ec1b78957b1ed1174c2e78df20e6b380b95
MD5 da53cbf5b65e0c79af503eafad0d8ff4
BLAKE2b-256 0e3e8a480c1e0dbbf1cfcacf4d4b57e781634a6d5692f061a39ef96908b092d2

See more details on using hashes here.

File details

Details for the file aiida_chemshell-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: aiida_chemshell-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for aiida_chemshell-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5a22e3cdcf0d4ae4183e61a9a9b5ed46a8e0c97208f99eef90ed033148c702e4
MD5 79f52f636f0880d79ec1375c8c68f799
BLAKE2b-256 4f8a4a03f2d3d3561b32cc38e1dfe60a50f5ebc16942bbd8804f9b770a2603be

See more details on using hashes here.

Supported by

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