cavOTF.py Package
Project description
cavOTF
Sachith Wickramasinghe, Amir H. Amini
Development code: https://github.com/msachithpw/cavityDFTB
cavOTF is a highly customizable molecular dynamics package based on DFTB+ (Density Functional Tight Binding) for simulating cavity systems. Due to the computational intensity and long runtimes, this package is designed for use on High Performance Computing (HPC) systems.
Installation
Before installing cavOTF, ensure that you have a clean DFTB+ installation in your environment. For instructions, refer to the DFTB+ Installation Guide. We recommend installing DFTB+ using the Anaconda package manager within a separate environment dedicated solely to DFTB+. Avoid using pre-compiled DFTB+ binaries as they may significantly reduce the performance of your calculations. cavOTF has been tested with the no MPI version of DFTB+, so it is advisable to use this version, as numpy and/or scipy may have compatibility issues with some MPI installations.
The package uses the setuptools build system and includes most required Python modules and resource templates. Ensure you have an up-to-date version of setuptools before installation.
To install cavOTF, clone the repository and run:
pip install .
Alternatively, you can install directly from the repository:
pip install git+https://github.com/mandalgrouptamu/cavOTF.git
Available Entry Points
Once installed, you can use the following commands:
cavotf --config input.txt validate— Perform a dry-run validation without submitting jobs.cavotf --config input.txt run— Execute the full workflow, including sbatch job submissions.python -m cavotf --config input.txt ...— Invoke the module programmatically, equivalent to the CLI.
Quickstart
- Copy the
input.txt.examplefile and modify the paths and parameters according to your system. Detailed descriptions of input options are provided within the file. - Ensure your geometry directory contains one subfolder per trajectory seed, with corresponding coordinate (
init_xyz_file) and velocity (init_vel_file) files. - Run the following command to validate the sbatch scripts and ensure that the run directories will be created correctly:
cavotf --config input.txt validate
- Execute the full workflow with:
cavotf --config input.txt run
This will create the necessary run folders, initialize the cavity coordinates, and submit the required jobs through Slurm. - Optionally, modify the provided sbatch template to fit your cluster’s requirements. We recommend using the maximum allowable wall time to ensure the simulations run smoothly.
Configuration Overview
The input.txt.example file provides an example configuration, including all supported keys. Key sections include:
- [general] — Specifies the geometry path, initial coordinate/velocity filenames and optional overrides for bundled
DFTB_cleantemplates. Modifications to theDFTB_cleanfolder should be done cautiously. - [physics] — Defines the number of clients (
nk), cavity parameters (beta,lambda,omega_c,eta_b), thermostat controls, dipole derivative options, and thermalization steps for cavity initialization. - [outputs] — Controls for logfile and results generation, k-space tracking, and client-side outputs such as
qt.datand trajectory histograms. - [dftb] — Override ASE DFTB+ calculator settings. Set values to
offornoneto omit default lines. The provided defaults are configured for a 99-atom water simulation, so modify these as needed. - [hpc] — Slurm integration details, including CPUs per task, partition/account, DFTB+ prefix/command, sbatch template path, walltime, and memory requirements. Ensure sufficient memory allocation to prevent out-of-memory (OOM) issues.
Authors:
Sachith Wickramasinghe, Amir H. Amini, Arkajit Mandal
November 2025, Chemistry Department, Texas A&M University
Project details
Release history Release notifications | RSS feed
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 cavotf-0.1.7.12.25.tar.gz.
File metadata
- Download URL: cavotf-0.1.7.12.25.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f859e3223b5513669e1b037a83870d028c166394652615ff3d40a2d7af5f9da2
|
|
| MD5 |
aac23607f7f874e9bbdca5b701cbf1cd
|
|
| BLAKE2b-256 |
19e16d9e3847eb0fe9a4fcfd627aa1b3662d41ced5e1a756bffdb8b058f72d5d
|
File details
Details for the file cavotf-0.1.7.12.25-py3-none-any.whl.
File metadata
- Download URL: cavotf-0.1.7.12.25-py3-none-any.whl
- Upload date:
- Size: 33.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
564eedd40e4fd8d82acd6841dd8b48725958689590e6195931a954b60c2a748a
|
|
| MD5 |
f9f65843580886764aac999e4ff49a39
|
|
| BLAKE2b-256 |
dbc9ec47bb6d48b7050bf25720711bb1f70fdd2ab5147a8e6c713846b01d061a
|