Skip to content

Python interfaces to the Thole-type model (TTM) potential for water

License

Notifications You must be signed in to change notification settings

exalearn/python-ttm

Repository files navigation

TTM Potential for Python

CI

This directory contains a Python wrapper for the TTM interaction potential for water.

The TTM wrapper was originally developed by Joseph Heindel and packaged for distribution by Logan Ward.

Requirements

You must have Python with numpy installed and a Fortran compiler.

The installation instructions (below) assume that you have gFortran, though it should be possible to install with other Fortran compilers by editing Makefile.ttm.

Installation

The first step is to download and build the TTM library from UW/PNNL. If you are running Linux and have gFortran, calling

./get-ttm.sh

will download and build the library.

Once the library is compiled, install the package with

pip install -e .

Usage

We recommend using the TTM potential through the ASE Calculator interface provided by this package.

from ttm.ase import TTMCalculator
import ase

atoms = ase.Atoms()
calc = TTMCalculator()
energy = calc.get_potential_energy(atoms)

About

Python interfaces to the Thole-type model (TTM) potential for water

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published