Skip to main content

SEAMM Viscosity Plug-in

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

A SEAMM plug-in for the shear viscosity of liquids from equilibrium molecular dynamics.

Features

  • The shear viscosity by Green-Kubo and from the Helfand moments, averaging the five independent shear components of the pressure tensor.

  • Analyzes MD run earlier in the flowchart – independent runs in a Loop – or in other jobs, from the md.h5md files the LAMMPS step writes.

  • Gives the 95% confidence interval from Student’s t, checks that the components agree, and reports the state (temperature, pressure, volume and density).

  • Checks before the job runs that the MD samples the pressure tensor often enough.

  • Passes its result to a later Diffusivity step for the Yeh-Hummer correction.

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.17 – Analyze MD run before the step; labelled errors and a component check
  • 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 95% interval was 2 × the standard error, too small for few runs; the viscosity passed to later steps, e.g. for Diffusivity’s box-size correction, carries the standard error, labelled as such.

  • One line checks that the five shear components agree; the components are given in full for a run that is not isotropic.

2026.10.15.1 – Internal: a regression test against SPC/E water
  • regression/spce holds a flowchart computing the viscosity and diffusion coefficient of rigid SPC/E water, and a script checking them against published values. It is run by hand after changes that could affect the results; the new “Regression” page in the developer guide describes it and records its results.

2026.10.15 – First release: the shear viscosity from MD
  • Calculates the shear viscosity of a liquid from equilibrium MD by Green-Kubo and from the Helfand moments, averaging the five independent shear components of the pressure tensor.

  • Runs its own MD several times, or analyzes MD run earlier in the flowchart, in each iteration of a loop, or in other jobs, from the md.h5md files the LAMMPS step writes. A single run is divided into blocks to estimate the errors.

  • Checks before the job runs that the MD samples the pressure tensor at least every 5 fs, and turns it on when it runs its own MD.

  • The result is stored as a property, can be saved in variables and tables, and is used by a following Diffusivity step for its finite-size correction.

Metadata

Release files for viscosity-step 2026.10.17

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

Source distribution (sdist)

Source distribution for viscosity-step 2026.10.17
File Size Uploaded Provenance Actions
viscosity_step-2026.10.17.tar.gz 319.7 kB Without provenance Details for viscosity_step-2026.10.17.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for viscosity-step 2026.10.17
File Interpreter ABI Platform Actions
viscosity_step-2026.10.17-py2.py3-none-any.whl Python 3, Python 2 none any Details for viscosity_step-2026.10.17-py2.py3-none-any.whl

Total release size: 342.0 kB

Release files / viscosity_step-2026.10.17.tar.gz

Download URL viscosity_step-2026.10.17.tar.gz
Size 319.7 kB
Tags Source
SHA-256 checksum
How to use checksums
02453684693db8bc3b9fc7512fbe963a9fbdd6997fa6f0f497d8d82ac18ce65d
BLAKE2b-256 checksum
How to use checksums
a5138bb111af25d2bb4d10f1954966534549f1175d9c8defa9edecc4a1ad0323
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / viscosity_step-2026.10.17-py2.py3-none-any.whl

Download URL viscosity_step-2026.10.17-py2.py3-none-any.whl
Size 22.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
cc5f0cec7d408b7a50b7df8bc9281ee0cd746047e22256223405b2c6510c407a
BLAKE2b-256 checksum
How to use checksums
5ae49d15d39c5f870b2b992b01d8ca96a3a85a688d0f0aafea756dbcf961f69b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for viscosity-step 2026.10.17

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