Journal of Fluid Mechanics · JFM Notebooks · Sagebrush

Interactive JFM figures that run entirely in the reader's browser

These are the vortex structures from a published JFM Notebook. The notebook itself runs here unmodified: k3d, scipy.io.loadmat and numpy. It runs on Sagebrush, a Python and Sage environment compiled to WebAssembly. Nothing is computed on a server. The page loads the published data, builds a mesh of half a million triangles, and you can turn it, zoom into it, and fly through it.

U vortices

495,026 triangles colored by the published attribute (color range ±50, the seismic color map).

D vortices

708,446 triangles, color range ±100. This is the larger of the two scenes.

The figures of “Introducing JFM Notebooks”

The notebooks of Meneveau & Caulfield, J. Fluid Mech. 952, E1 (2022), as published, run here unchanged. Each loads its data from the article's supplementary material and draws its figure in the page. Change a parameter and run it again.

Figure 1: mean velocity

DNS of turbulent channel flow at Reτ = 1000 and 5200 against the composite model. Try other values of κ, B and c₁.

Figure 3: stratified shear flow

Density in three simulations at four times: 12 filled-contour panels from 75 MB of data (Lewin & Caulfield 2022). Try another colormap or range.

Figure 4: isotropic turbulence in 3D

The Q = 500 isosurface (marching cubes) and a volume rendering of the kinetic energy on a 128³ grid. Turn it, fly through it, or change the threshold.

Figure 2 of the article is a screenshot of figure 1's notebook. The notebooks and data are the article's supplementary material (CC BY 4.0).

Moving around

Why this matters for publishing