LAMMPS
  • About
    • LAMMPS News
    • Features
    • Developers
    • Contributors
    • Governance
    • Charter
    • Funding
    • History
    • Citing LAMMPS
  • Download
    • GitHub repository
    • Download LAMMPS
    • Latest releases
    • External Packages
    • External Libraries
  • Documentation
    • Manual
    • Commands
    • Packages
    • Programmer guide
    • Tutorials
    • Books
  • Gallery
    • Overview
    • Journal Covers
    • Pictures
    • Movies (Publications)
    • Movies (Examples)
  • Ecosystem
    • LAMMPS-GUI
    • LAMMPS.js
    • Pre/Post processing
    • External Tools
    • ML & Interoperability
    • Other MD Codes
    • Visualization
  • Community
    • User Support
    • Report bugs / request features
    • Contribute
    • Workshops
    • YouTube Videos
    • Papers citing LAMMPS
  • GitHub repo
  • MatSci forum

← back to the examples

Viscosity of 2d LJ fluid via different methods

Three ways to measure the viscosity of a 2d Lennard-Jones fluid via non-equilibrium MD: moving walls (left), NEMD box deformation (middle), and the Muller-Plathe algorithm (right). Atoms are colored blue to red by increasing x-velocity.


Input files: VISCOSITY/in.wall.2d, VISCOSITY/in.nemd.2d and VISCOSITY/in.mp.2d

LAMMPS is distributed under the GPLv2. Funding is acknowledged here.
Website last updated on: Mon Aug 3 17:30:00 EDT 2026 — git hash: 8aa11a309786bff930c37600af6cfbecbd2b8fd7