d-SEAMS

Molecular dynamics - Ice, clathrates & rings

Classify ice and cages in MD trajectories.

One C++ engine (seams-core) has native bindings across Python, Rust, Julia, R, Lua, Fortran, and PLUMED. Use the CHILL+ local-structure algorithm to label ice phases. Isolate hexagonal and double-diamond cages, and trace primitive rings.

Reads LAMMPS, GROMACS, OpenMM, the .xyz format, and .con via readcon-core; adapters support MDAnalysis, Open Visualization Tool (OVITO), and ASE.

interface_f0.lammpstrj - 864 waters (23 by 22 by 53 A) Raw O / CHILL+
Unclassified 864-water molecular dynamics frame rendered as uniform oxygen spheres
Same 864-water interface classified by CHILL+ into 352 hexagonal, 434 water, 49 interfacial, 25 interclathrate, 3 clathrate, and 1 cubic molecules
hexagonal 352 water 434 interfacial 49 cubic 1 clathrate 3 interclathrate 25

One engine - Seven install paths

Install and run in your language

Select a front for its install command, minimal working call, and reference book.

Python (pydseamslib)

Frame API, NumPy arrays, Steinhardt features, and adapters for MDAnalysis, OVITO, and ASE.

Open Python book
pip install pydseamslib
import pydseams as ds

frame = ds.read("water.lammpstrj")
print(frame.chill_plus())
print(frame.cages())

Libraries - Standalone neighbour search

linkcell

d-SEAMS uses linkcell for neighbour search, but it stands alone as an independent library.

Periodic kNN and cutoff pair lists (linkcell)

Periodic linked-cell k-nearest neighbours and cutoff pair lists for orthogonal and triclinic cells, in Rust, C, C++, and Python, usable on its own.

Open linkcell book
pip install linkcell numpy
cargo add linkcell
import linkcell, numpy as np
xyz = np.array([[0.2, 0.0, 0.0], [9.4, 0.0, 0.0]])
cell = np.array([10.0, 10.0, 10.0])
nn, d2 = linkcell.knearest(xyz, cell, 1)

linkcell and vesin

linkcell is a drop-in replacement for vesin with the same i, j, S layout. NeighborList.compute takes points, the cell, periodic, and quantities.

vesin linkcell
Answers who is inside radius r. Does cutoff pair lists (pairs_within, in the same i, j, S layout), and also answers who are the k nearest with the periodic image without a cutoff by growing shells until the k-th neighbour is certified.
Python NeighborList and C libvesin.so. Python linkcell.NeighborList(cutoff, full_list, ...) returning i, j, P, S, d, D, and C include/linkcell_vesin.h with vesin's struct layout and lc_vesin_neighbors.
Handles non-periodic axes and CUDA devices as well as periodic CPU boxes. Builds fully periodic CPU lists itself, and forwards a non-periodic axis or a CUDA device to libvesin.so when that library is present.
# Swap `from vesin import NeighborList` for:
from linkcell import NeighborList
import numpy as np

xyz = np.array([[0.2, 0.0, 0.0], [9.4, 0.0, 0.0]])
box = np.diag([10.0, 10.0, 10.0])
i, j, S, d = NeighborList(cutoff=1.5, full_list=True, sorted=True).compute(
    xyz, box, periodic=True, quantities="ijSd"
)

Code to structure

Real output alongside its render

Exact cage and phase counts computed directly on bundled hydrate and interface trajectories.

Hydrate cage census - genice_sII & genice_sH (136 waters, cutoff 3.5 A)
$ ./bbdir/seams cages input/traj/genice_sII.lammpstrj --cutoff 3.5 --type 1 --graph cutoff --signature 512+51264
nop 136 graph cutoff signature 5:12 cages 16 atoms 136
nop 136 graph cutoff signature 5:12,6:4 cages 8 atoms 128

$ ./bbdir/seams cages input/traj/genice_sH.lammpstrj --cutoff 3.5 --type 1 --graph cutoff --signature 512+sh+51268
nop 136 graph cutoff signature 5:12 cages 12 atoms 136
nop 136 graph cutoff signature 4:3,5:6,6:3 cages 8 atoms 112
nop 136 graph cutoff signature 5:12,6:8 cages 4 atoms 120

$ ./bbdir/seams chill-plus input/traj/interface_f0.lammpstrj --cutoff 3.5 --type 1 --layers --axis 2
nop 864 clathrate 3 cubic 1 hexagonal 352 interClathrate 25 interfacial 49 water 434
phi-c 0.00283286 stack HHHHHHHH....C.

One sII unit cell resolves 16 pentagonal dodecahedra (512) and 8 hexakaidecahedra (51264). An sH host resolves 12 small (512), 8 medium (435663), and 4 large (51268) cages across the triclinic tilt.

Structure II clathrate hydrate render showing 16 orange 5^12 cages and 8 blue 5^12 6^4 cages
sII hydrate unit cell: 512 cages (amber) and 51264 cages (blue), matching the 16 : 8 census.

Topological & local order methods

What d-SEAMS resolves

Combine four-neighbour local parameters with full ring and polyhedral graph topology.

Cubic, hexagonal, and interfacial ice layers forming against liquid water

CHILL+ & Ice Interfaces

Classify cubic (Ic), hexagonal (Ih), interfacial, clathrate, interclathrate, and liquid water molecules using bond-orientational correlations and basal-layer stacking profiles.

Interface tutorial
4096-molecule cubic ice ring network showing 8192 six-membered primitive rings

Primitive Rings

Enumerate shortest-path primitive rings over periodic cutoff graphs (8,192 six-rings in a 4,096-water cubic-ice frame) and separate strained geometries from bulk ice.

Rings tutorial
Structure II clathrate water ring network showing small and large cages

HC, DDC & Clathrate Cages

Isolate hexagonal cages (HC), double-diamond cages (DDC), and sI / sII / sH polyhedral hydrate cages with guest occupancy and brine-front ion tracking.

Cages reference

Citation & provenance

Cite d-SEAMS

Published reference to cite now

Goswami, R.; Goswami, A.; Singh, J. K. d-SEAMS: Deferred Structural Elucidation Analysis for Molecular Simulations. J. Chem. Inf. Model. 2020, 60 (4), 2169-2177.

BibTeX
@Article{Goswami2020,
  author  = {Goswami, Rohit and Goswami, Amrita and Singh, Jayant Kumar},
  title   = {{d-SEAMS}: Deferred Structural Elucidation Analysis for Molecular Simulations},
  journal = {Journal of Chemical Information and Modeling},
  year    = {2020},
  volume  = {60},
  number  = {4},
  pages   = {2169--2177},
  doi     = {10.1021/acs.jcim.0c00031}
}