dseams
Safe Rust calls into d-SEAMS: CHILL and CHILL+ labels, Steinhardt order, neighbour lists, rings, cages, RDF and coordination, hydrogen bonds, density, fingerprints, contacts, domains, prisms, monolayer statistics, symmetry and planar brine fronts. Readers cover LAMMPS and XYZ, plus CON and chemfiles formats when available.
The crates.io name seams belongs to an unrelated project, so the
package is dseams. The library is still called seams.
Install
The bundled feature compiles the d-SEAMS engine from source, so no
separate install is needed. It needs Rust 1.85 or newer and a C++20
compiler with OpenMP on x86_64. It reads LAMMPS dumps and XYZ files and
enables chemfiles and readcon-core when pkg-config finds them.
To link a libseams you built instead, leave the feature off and set
SEAMS_LIBDIR, or put a seams.pc file on PKG_CONFIG_PATH. The
link how-to has the
commands.
Example
Coordinates and cutoffs are in angstroms. This program classifies the
eight-atom cubic ice cell that diamond8 returns:
cubic atoms: 8
A System holds one frame, filled by set_ortho, set_frame,
set_atoms or read. Analyses are methods on it. Those with several
settings take an options struct with a Default. Calls that can fail
return Result<_, seams::Error>, and handles free their native object when
dropped.
Documentation
- The book has a getting-started page, seven tutorials on real frames and how-to pages.
- The API reference describes every type and function.
- The engine book covers the science behind each analysis.
Licensed under MIT.