Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.24 KB

File metadata and controls

46 lines (30 loc) · 1.24 KB

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)