Skip to main content

dlpoly4 python module for file manipulation

Project description

this contains tools to read input and output for DL_POLY it can also produce inputs and be mixed with other python packages like ASE, MDAnalysis, MDAnse or pymatgen

install

  • via pip

pip install dlpoly-py
#or
pip3 install dlpoly-py
  • in a virtual environment

# create virtual env
virtualenv3 venv/dlpoly
source venv/dlpoly/bin/activate
pip3 install dlpoly-py

usage

Examples can be found in https://gitlab.com/drFaustroll/dlpoly-py/-/tree/devel/examples

sime run using Ar data from above folder.

from dlpoly import DLPoly

dlp="/home/drFaustroll/playground/dlpoly/dl-poly-alin/build-yaml/bin/DLPOLY.Z"

dlPoly = DLPoly(control="Ar.control", config="Ar.config",
                field="Ar.field", workdir="argon")
dlPoly.run(executable=dlp,numProcs = 4)

# change temperature and rerun, from previous termination
dlPoly = DLPoly(control="Ar.control", config="argon/REVCON", destconfig="Ar.config",
             field="Ar.field", workdir="argon-T310")
dlPoly.control['temp'] = 310.0
dlPoly.run(executable=dlp,numProcs = 4)

alternatively you can set the environment variable DLP_EXE to point to DL_POLY_4 executable and remove the executable parameter from run.

export DLP_EXE="/home/drFaustroll/playground/dlpoly/dl-poly-alin/build-yaml/bin/DLPOLY.Z"
from dlpoly import DLPoly

dlPoly = DLPoly(control="Ar.control", config="Ar.config",
                field="Ar.field", workdir="argon")
dlPoly.run(numProcs = 4)

# change temperature and rerun, from previous termination
dlPoly = DLPoly(control="Ar.control", config="argon/REVCON", destconfig="Ar.config",
             field="Ar.field", workdir="argon-T310")
dlPoly.control['temp'] = 310.0
dlPoly.run(numProcs = 4)

authors

  • Alin M Elena, Daresbury Laboratory, UK

  • Jacob Wilkins, University of Oxford, UK

contact

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

dlpoly-py-0.1.3.tar.gz (10.4 MB view details)

Uploaded Source

Built Distribution

dlpoly_py-0.1.3-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

Details for the file dlpoly-py-0.1.3.tar.gz.

File metadata

  • Download URL: dlpoly-py-0.1.3.tar.gz
  • Upload date:
  • Size: 10.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for dlpoly-py-0.1.3.tar.gz
Algorithm Hash digest
SHA256 97fea67ea7436542a48f00f797e876a5eb75bae6ed6c7fbe7b036413aea99ea6
MD5 a5537b9e6131af78399da4c73a446379
BLAKE2b-256 c404bb9dede79ab98d0dfe62bb03849fb672305c32e8877b8cd5a58dc0000c77

See more details on using hashes here.

Provenance

File details

Details for the file dlpoly_py-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: dlpoly_py-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 37.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for dlpoly_py-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b9e1990026a1753705b60f8f46d199c4112f4cc3ef4aa69c71e7d5deb0ae703e
MD5 453a620820d3b259dcfa54bc20a60954
BLAKE2b-256 2b0a309d0363680e562e3b630cf8e291e2ff2f2b89ee8732333705ae19e17ac2

See more details on using hashes here.

Provenance

Supported by

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