Skip to main content

SEAMM Liquid Structure Plug-in

GitHub pull requests Build Status Code Coverage Code Quality Documentation Status PyPi VERSION

A SEAMM plug-in for the structure of liquids and solutions from molecular dynamics: radial distribution functions, coordination numbers, ion pairing and solvation shells.

Features

  • Partial radial distribution functions with errors, their first peaks and minima, and coordination numbers, with fixed cutoffs where the minima mislead.

  • The pairing of ions: free, solvent-separated (SSIP), contact (CIP) and aggregated (AGG) pairs, also for clusters.

  • Solvation shells: coordination numbers per solvent, the most common shells, pairing, and residence times.

  • Analyzes the MD earlier in the flowchart – independent runs in a Loop – or the H5MD files of earlier runs, with 95% confidence intervals from the runs or from blocks of one run, and reports the state of the runs (temperature, pressure, density).

Acknowledgements

This package was created with the molssi-seamm/cookiecutter-seamm-plugin tool, which is based on the excellent Cookiecutter.

Developed by the Molecular Sciences Software Institute (MolSSI), which receives funding from the National Science Foundation under award CHE-2136142.

History

2026.10.21.1 – Bugfix: values without an error are rounded in the tables
  • A value that was the same in every run, such as the fraction of a few ions that are paired, was printed to six significant figures (0.349206); it is now given to four, like a value without an error estimate.

2026.10.21 – Bugfix: the first minimum of overlapping shells
  • When g(r) stayed above 1 past its first shell – as for an ion and all the heavy atoms of a solvent molecule – the first minimum was taken from a later shell, so a solvation-shell cutoff could be far too large (Li+ in EC:DMC: 9.57 Å for EC, giving 19 EC in the shell, rather than about 2.8 Å). When the minimum found lies far beyond the peak, the first clear dip after the peak is now used. This also affects the coordination numbers and the ion-pairing cutoffs of such pairs.

  • A solvation-shell cutoff that is still far beyond its peak is now noted, with a suggested fixed cutoff, as it already was for the coordination numbers.

2026.10.20.1 – Bugfix: an empty structure is refused at once
  • Without a structure (no atoms in the current configuration), the step now stops at once with a clear message, before reading the MD files.

2026.10.20 – About ten times faster for large liquids
  • Finding the pairs of atoms within the range of the radial distribution functions, and for the ion pairing and solvation shells, now uses a periodic k-d tree for rectangular cells, about ten times faster than before. For a 9,436-atom electrolyte with every pair of elements to 12 Å, a frame took about 5 s, so 20,000 frames took more than a day; now about 2 hours. Triclinic cells are handled as before. Distances are now computed in double precision, so a pair exactly at the edge of a bin can rarely fall in the next one.

2026.10.19.1 – Scaled ion charges
  • The cations and anions of MD with scaled charges (LAMMPS’s ‘Scale the charges of ions by’) are found from their formal charges, for any factor.

2026.10.19 – Bugfix: long runs were very slow and used too much memory
  • Every frame’s g(r) was kept, about 10 kB per pair of sites per frame, so long runs ran out of memory: four 3 ns runs of 1 m NaCl(aq) with positions every 0.1 ps (120,000 frames) took 10.6 hours, mostly swapping. Only the sums over each run or block are kept now, with the same results. The same analysis now takes 17 minutes in 1 GB (an hour with the radial distribution functions from every 0.1 ps frame, as before, which reproduces the earlier results exactly).

  • The residence times took a time growing as the cube of the length of the runs; they are now found with FFTs, with the same results, in seconds.

  • The radial distribution functions use frames about every ‘Longest interval between frames’ even when residence times are computed; only the ion pairing and solvation shells use the frames every 0.1 ps. The ion pairing and all the shells are found in one pass over the frames, and each frame is binned faster.

2026.10.18 – Bugfix: frames more often than needed were all analyzed
  • The step analyzed every frame the MD wrote, so positions written every 0.1 ps were all used even when nothing needed them: a 1000-atom argon run spent half of a 12-minute job here. Frames are now skipped down to the interval needed: every 0.1 ps when residence times are computed, which needs solutes, else about every ‘Longest interval between frames’.

2026.10.17 – Analyze MD run before the step; labelled errors for every table
  • The step analyzes MD run before it in the flowchart – the runs of a Loop around the MD, as independent replicas (“the last MD run of each loop iteration”, the default) – or md.h5md files; it no longer runs its own MD in a sub-flowchart. Older flowcharts that stored its settings for that can still be read; the check before the job runs says what replaces them.

  • The check before the job runs also warns when the analysis is inside the loop holding its MD, when the loop changes the temperature or pressure, and when the thermostat does not suit the analysis, with fixes; the step warns before the MD when the system is small.

  • Errors are the 95% confidence interval, Student’s t for the number of runs or blocks, and the output says so; stored errors are standard errors.

  • The state of the runs – temperature, pressure, volume and density with their errors, and the equilibrium density where an NPT run before them gives the bulk modulus – is reported and stored. The values of each run or block are in step.out.

  • The peaks and minima of g(r), coordination numbers, ion pairing, solvation shells and residence times have 95% intervals from the runs (or blocks); residence times are computed per run.

  • Bugfix: the description claimed residence times, ion pairing or shells even when they were turned off.

2026.10.16 – First release: the structure of liquids and solutions
  • Radial distribution functions of pairs of sites, with errors, their first peaks and minima, and coordination numbers, with fixed cutoffs where the minima mislead.

  • The pairing of ions: each cation free, in a solvent-separated (SSIP) or contact (CIP) pair, or in an aggregate (AGG).

  • The solvation shells of solutes: the coordination number of each solvent, the most common shells, pairing, and residence times.

  • Runs its own MD or analyzes the MD earlier in the flowchart, and checks before the job runs that the MD samples the positions often enough.

Metadata

Release files for liquid-structure-step 2026.10.21.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for liquid-structure-step 2026.10.21.1
File Size Uploaded Provenance Actions
liquid_structure_step-2026.10.21.1.tar.gz 342.8 kB Without provenance Details for liquid_structure_step-2026.10.21.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for liquid-structure-step 2026.10.21.1
File Interpreter ABI Platform Actions
liquid_structure_step-2026.10.21.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for liquid_structure_step-2026.10.21.1-py2.py3-none-any.whl

Total release size: 383.5 kB

Release files / liquid_structure_step-2026.10.21.1.tar.gz

Download URL liquid_structure_step-2026.10.21.1.tar.gz
Size 342.8 kB
Tags Source
SHA-256 checksum
How to use checksums
149362ce875158b51000dc1d675614d441b956cd9c5eb2004ca2ee8bf7ef76d0
BLAKE2b-256 checksum
How to use checksums
3c2322d06506ec6466370288f1dd7e68843a040c0ececde72e17d77c43667277
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / liquid_structure_step-2026.10.21.1-py2.py3-none-any.whl

Download URL liquid_structure_step-2026.10.21.1-py2.py3-none-any.whl
Size 40.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
32f9cd35788873f76daf7ed36aa7f950be8612c61925d8f37cc4f51efb1d2f92
BLAKE2b-256 checksum
How to use checksums
256e8f8b3c47bda556307918e8eeb50f7fdd61373dfae71c60b0be11d8bc1334
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for liquid-structure-step 2026.10.21.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page