dseams 2.14.0

Safe Rust wrapper for the d-SEAMS C API: ice, clathrate and ring analysis of molecular simulations
Documentation

dseams

Safe Rust calls into d-SEAMS: CHILL and CHILL+ ice labels, Steinhardt order parameters, primitive rings, cages, RDFs, hydrogen bonds and topological fingerprints for molecular simulation frames.

The crates.io name seams belongs to an unrelated project, so the package is dseams. The library is still called seams:

[dependencies]
dseams = "2.14.0"
fn main() -> Result<(), seams::Error> {
    let a = 2.75 * 4.0 / 3.0_f64.sqrt();
    let sites = [
        (0.0, 0.0, 0.0), (0.5, 0.5, 0.0), (0.5, 0.0, 0.5), (0.0, 0.5, 0.5),
        (0.25, 0.25, 0.25), (0.75, 0.75, 0.25), (0.75, 0.25, 0.75), (0.25, 0.75, 0.75),
    ];
    let mut xyz = Vec::new();
    for (x, y, z) in sites {
        xyz.extend([x * a, y * a, z * a]);
    }
    let mut sys = seams::System::new()?;
    sys.set_ortho(&xyz, a, a, a)?;
    let ice = sys.chill_plus(&seams::ChillOptions::default())?;
    assert_eq!(ice.labels.len(), 8);
    Ok(())
}

dseams-sys links an installed libseams: the directory in SEAMS_LIBDIR, or the seams pkg-config module. The bundled feature compiles one from the pinned seams-core sources instead (x86_64, C++20 and OpenMP); see the dseams-sys README.

Licensed under MIT.