libcfd2lcs is a numerical library that performs the calculations needed to extract and visualize Lagrangian Coherent Structures (LCS) from time dependent flows. It is designed to work with two or three dimensional hydrodynamic datasets generated from either computational fluid dynamics (CFD) simulations or experimental measurements. Its core algorithms allow for on-the-fly extraction of LCS during a distributed memory simulation, removing the need for expensive and inacurate post-processing.

This work was funded under the embedded CSE programme of the ARCHER UK National Supercomputing Service ( The library is installed as a module on the ARCHER system, and available for use there. You can also download the latest version of the software, including the user's manual and several example codes here. The library is distributed under the terms of the GNU public licence. If you find this software useful in your own work, please cite the article below in any resulting publications.
ARCHER Technical Report(pdf)
libcfd2lcs manual (pdf)
libcfd2lcs source code and examples (tar.gz)

Virtual Tutorial

I gave a vitual tutorial on libcfd2lcs on June 22, 2016, thanks everyone who participated! You can find an archived recording of the presentation on the ARCHER training site. A pdf of the slides makes a good companion to the libcfd2lcs user's manual.


Romain Watteaux (Stazione Zoologica Anton Dohrn, Naples), Andrew Lawrie (University of Bristol)


[1] Justin Finn and Sourabh V. Apte. Integrated computation of finite time Lyapunov exponent fields during direct numerical simulation of unsteady flows. Chaos, 23(1):013145, 2013.
[2] Justin Finn, Romain Watteaux and Andrew Lawrie. libcfd2lcs:A general purpose library for computation of Lagrangian coherent structures during CFD simulation. ARCHER Tecnhical Report , February 16, 2017.(pdf).

SP-MGI: The sphere-pack mesh generation interface

SP-MGI is an add on for the commercial mesh generation software, Pointwise. It allows automated generation of high quality, unstructured meshes for studying flows through packed beds of spheres.
sp-mgi (tar.gz)


[1] Justin Finn and Sourabh V. Apte. Relative performance of body-fitted and fictitious- domain simulations of flow through packed beds. International Journal of Multiphase Flow, 56:54–71, 2013. (doi)
[2] Justin Finn. Automating porous flow meshing with Glyph. The Pointwise Connector, March/April 2011. (link)