Command line¶
seams reads a trajectory and prints one result. The small cell used by
the runnable example is input/traj/genice_sI.lammpstrj, 46 oxygens in a
cube of edge 12.0034886 Å.
seams read input/traj/genice_sI.lammpstrj
seams cn input/traj/genice_sI.lammpstrj --cutoff 3.5
seams steinhardt input/traj/genice_sI.lammpstrj --cutoff 3.5 --l 6
seams chill-plus input/traj/genice_sI.lammpstrj --cutoff 3.5
seams rings input/traj/genice_sI.lammpstrj --cutoff 3.5
read prints the atom count and the box. cn is the cutoff coordination.
steinhardt prints the mean local q6. chill-plus prints the label
census. rings prints the primitive-ring histogram. On this cell those
lines are nop 46, coordination over 46 oxygens, q6 0.595, clathrate 46,
and 6 54.
docs/examples/minimal_cli.sh runs those five
commands. meson test docs_examples runs it.
require("dseams") is the Lua module over seams.h. examples/chill-plus.lua is the options table passed as the CHILL+ rule.
#!/bin/sh
# Copyright (c) d-SEAMS developers
# Read the GenIce sI cell with the seams CLI.
# Usage: minimal_cli.sh SEAMS FIXTURE
set -eu
SEAMS=$1
FIXTURE=$2
NO_COLOR=1 "$SEAMS" read "$FIXTURE" | grep -q "nop 46"
NO_COLOR=1 "$SEAMS" cn "$FIXTURE" --cutoff 3.5 | grep -q "nI 46"
NO_COLOR=1 "$SEAMS" steinhardt "$FIXTURE" --cutoff 3.5 --l 6 | grep -q "q6 0.595"
NO_COLOR=1 "$SEAMS" chill-plus "$FIXTURE" --cutoff 3.5 | grep -q "clathrate 46"
NO_COLOR=1 "$SEAMS" rings "$FIXTURE" --cutoff 3.5 | grep -q "^6 54"
echo "cli example ok"