aiida-dlpoly
An AiiDA plugin for the DL_POLY molecular/particle dynamics software.
Installation
This plugin is available through PyPI and should be installed using pip python package manager.
pip install aiida-dlpoly
At present due to a outdated dependency this package requires the distutils module which will cause issues with certain environments running python >= 3.12. This is being addressed and should be resolved in a future release.
Requirements
To use this plugin a configured AiiDA profile and computer instance are required, see the AiiDA documentation for instructions on how to install and configure AiiDA and AiiDA code setup for how to configure AiiDA to link to external software.
Setup
To configure the DL_POLY plugin, an AiiDA code instance needs to be configured for the DL_POLY executable. The following is an example of a basic YAML configuration file:
label: dlpoly
description: DL_POLY
computer: localhost
filepath_executable: /absolute/path/to/DLPOLY.Z
default_calc_job_plugin: dlpoly
use_double_quotes: false
with_mpi: true
prepend_text: ''
append_text: ''
Write this to a file named dlpoly_config.yml ensuring the value for computer matches the label of your
configured computer instance and the filepath_executable entry is the absolute path to a compiled DL_POLY executable.
The code can then be configured by running:
verdi code create core.code.installed --config dlpoly_config.yml -n
If successful this will have created a code with the label dlpoly which can then be used to run DL_POLY jobs
within the AiiDA workflow.
Examples
An example script for running an simple molecular dynamics simulation with existing CONTROL, FIELD and CONFIG input
files is given below.
from aiida.engine import run
from aiida.orm import SinglefileData
from aiida import load_profile
load_profile("username") # Replace with your own AiiDA username
build.load_code("dlpoly").get_builder()
builder.control = SinglefileData(file="/absolute/path/to/CONTROL") # Change these to the absolute paths to input files
builder.field = SinglefileData(file="/absolute/path/to/FIELD")
builder.configuration = SinglefileData(file="/absolute/path/to/CONFIG")
results, node = run.get_node(builder)
By default the calculation will produce three output nodes, a SinglefileData node containing the generated OUTPUT file
from DL_POLY, an ArrayData node containing the calculated statistics from the simulation and another SinglefileData
node containing the
DL_POLY formatted REVCON file.
Additionally the following optional output nodes are supported by the aiida-dlpoly plugin:
- Trajectory history (TrajectoryData)
- Radial distribution function (SinglefileData)
These will be generated if the relevant input keys are present in the DL_POLY CONTROL file. Further information on
AiiDA data types and how to interact with them can be found in the
AiiDA documentation.
The aiida-dlpoly plugin additionally allows alternative input methods for the CONTROL and CONFIG inputs,
which can both be optionally specified as a Dict or StructureData node respectively. The plugin itself will
then handle the relevant file formatting for to be compatible with DL_POLY. An example showing these alternative
inputs methods is shown below, it assumes an AiiDA StructureData node already exists in the user's database.
from aiida.engine import run
from aiida.orm import Dict, load_node, SinglefileData
from aiida import load_profile
load_profile("username") # Replace with your own AiiDA username
build.load_code("dlpoly").get_builder()
builder.field = SinglefileData(file="/absolute/path/to/FIELD") # Change these to the absolute paths to input file
builder.configuration = load_node(pk=10) # Replace with the pk of the StructureData node or create a new StructureData node
builder.control = Dict({
"title": "DL_POLY example MD simulation",
"temperature": (295.0, "K"),
"coul_method": "OFF",
"print_frequency": (100, "steps"),
"stats_frequency": (10, "steps"),
"padding": (0.2, "ang"),
"cutoff": (7.5, "ang"),
"ensemble": "nve",
"time_run": (2000, "steps"),
"time_equilibration": (1000, "steps"),
"time_job": (3000.0, "s"),
"time_close": (100.0, "s"),
"timestep": (0.001, "ps"),
"rescale_frequency": (5, "steps"),
})
results, node = run.get_node(builder)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiida_dlpoly-0.1.0.tar.gz.
File metadata
- Download URL: aiida_dlpoly-0.1.0.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fca7db92b5af074c61651a1acfe49d544140c2047b35bc7b7be492d8fe5e39b7
|
|
| MD5 |
c9e59e298abf14e4759168322f7c77aa
|
|
| BLAKE2b-256 |
8ea21d28800bb58847d8c79b0233309d3db05b19f7bf2c70b187d6feb49b3890
|
File details
Details for the file aiida_dlpoly-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aiida_dlpoly-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bc242f6108cd2b4ee906f17a7e96f3ca6f6440608f6d4c2a51a97b080d3d16d
|
|
| MD5 |
966d4ae2c530404e252e7177e9e7768d
|
|
| BLAKE2b-256 |
5bdbd9f4af8ecce4a4109456dadb7f2f6d5fe0b47880acde956cd1931c40ea87
|