freud

Trajectory analysis for soft matter and local order, from the Glotzer group.

Tool 046 of 100 in the MolForge directory of open-source tools. Every fact below was read from the repository's host on 2026-11-28.

freud, open-source tool for trajectory analysis and Markov state models: Trajectory analysis for soft matter and local order, from the Glotzer group.

What freud is

freud is a Python library with a C++ core for analysing particle simulations, developed in the Glotzer group alongside HOOMD-blue. Where biomolecular analysis tools think in residues and selections, freud thinks in points, boxes and neighbours: given arrays of positions and a periodic simulation box, it finds neighbours efficiently and computes quantities that characterise structure and local order in soft matter and materials.

The input is any NumPy array of positions, optionally with orientations, together with a Box object, so freud works with HOOMD-blue GSD files, LAMMPS dumps read through MDAnalysis, or synthetic data. Modules compute radial distribution functions, static structure factors and diffraction patterns, Steinhardt bond-order parameters, hexatic and nematic order, Voronoi tessellations, local density, cluster analysis, correlation functions, potentials of mean force and torque, mean-squared displacement, and environment matching to identify crystal structures. Neighbour lists are built once and reused across calculations, and the C++ code is multithreaded.

freud has no concept of molecules, bonds or residues and does not read trajectory formats itself. Protein-style analyses belong in MDAnalysis or MDTraj.

Features

What it is for

Verified facts

FamilyTrajectory analysis and Markov state models
Language or basisPython, C++
Repositoryhttps://github.com/glotzerlab/freud (GitHub)
LicenceBSD-3-Clause (SPDX identifier as declared in the repository)
Main language on GitHubC++
Last commit2026-11-26
Latest releasev3.6.1 (2026-09-22)
Stars336 on 2026-11-28
Open issues and pull requests14 on 2026-11-28
Repository created2019-01-23
Verified2026-11-28 by MolForge's checking script, against the host's API

Where freud fits

Turn molecular-dynamics output into observables: RMSD, radial distributions, diffusion, kinetics.

freud appears in this chain of the directory: A learned interatomic potential.

Our comments on freud

MolForge does not run freud in production. This page is a verified pointer, not a review: the facts above come from the repository on the date shown, the description is ours, and we make no claim about accuracy or speed that we have not measured. If you maintain freud and something here is wrong or out of date, write to hello@molforge.ai and we will correct the source file.

Test status

Not tested by MolForge. To check freud yourself: clone the repository, follow the installation section of its README, and run the test suite the project ships before trusting a result; the last-commit date and the open issue count above tell you how alive the project is.

Questions people ask

What input does freud need?
Positions as an N by 3 NumPy array and a Box describing the periodic cell, plus orientations as quaternions where an analysis needs them. freud does not parse trajectory files; you load frames with gsd, MDAnalysis or your own reader and pass the arrays. The same calls work frame by frame or accumulated over a trajectory.
How is freud different from MDAnalysis?
MDAnalysis is organised around molecular topology: atoms, residues, selections and biomolecular observables. freud is organised around points in a box and local order, with no notion of bonds or residues. freud is the usual choice for colloids, nanoparticles and crystals, and MDAnalysis can serve as its file reader.
Can freud be used with LAMMPS or GROMACS output?
Yes, indirectly. Read the trajectory with MDAnalysis, MDTraj or another reader, then pass the position arrays and box dimensions to freud. The documentation shows this pattern, and freud's Box class accepts the triclinic parameters that these engines write.
Is freud open source?
Yes. The repository declares the BSD-3-Clause licence (SPDX identifier read from the host on 2026-11-28). Read the licence text in the repository before redistributing or embedding it.
Where is the freud source code?
At https://github.com/glotzerlab/freud (GitHub). This is the address the host reported on the day of verification; renamed repositories are followed to their new home.
Is freud still maintained?
The last commit was pushed on 2026-11-26 and the latest tagged release is v3.6.1 from 2026-09-22; the repository had 14 open issues and pull requests on 2026-11-28.
Does MolForge use freud?
No. MolForge runs nine of the hundred tools in this directory (RDKit, OpenMM, AutoDock Vina, Open Babel, MDTraj, pymbar and NGL, plus PySCF and xTB in MFsig); freud is listed because of its place in trajectory analysis and Markov state models, not because we run it.

Guides that explain the methods

Other tools in trajectory analysis and Markov state models