Installation¶
Installing the plugin¶
aiida-dlpoly is available on PyPI
and should be installed using pip or an
equivalent Python package manager:
pip install aiida-dlpoly
Requirements¶
To use this plugin a configured AiiDA profile and computer instance are required. See the AiiDA getting started guide for instructions on how to install and configure AiiDA, and running external codes for how to configure AiiDA to link to external software.
A working DL_POLY executable (DLPOLY.Z) is also required. See the
DL_POLY documentation for build and
installation instructions.
Configuring a DL_POLY code¶
Once the prerequisites above are in place, an AiiDA code instance needs to be configured for the DL_POLY executable.
The following is an example of a basic YAML configuration file for a DL_POLY code running with MPI on the local machine:
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: ''
The configuration options are:
Option |
Description |
|---|---|
|
The label used to refer to the code (e.g. |
|
A free-text description of the code. |
|
The label of a configured AiiDA computer instance the code runs on. |
|
The absolute path to the compiled DL_POLY executable. |
|
The AiiDA calculation plugin to associate with the code; use |
|
Whether command-line arguments are wrapped in double quotes. |
|
Whether the executable is launched with the computer’s MPI runner. |
|
Shell commands run before the executable (e.g. |
|
Shell commands run after the executable. |
Creating the code¶
Write the configuration to a file named dlpoly_config.yml, ensuring that 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. See Usage for
examples.