CFD · Numerical methods · HPC
MatteoBarbieri
MSc Aeronautical Engineering @ Politecnico di Milano. I build and optimise simulation pipelines, from OpenFOAM internals to neural operators.
Explore the work ↓smoke visualisation · potential flow + turbulent wake · move the pointer
Index
Projects, newest first.
Checkerboards, Rhie-Chow and Spurious Currents
Storing velocity and pressure in the same place makes a solver simple, and lets a zig-zag pressure field pass completely unnoticed. A small collocated solver shows the checkerboard, how Rhie-Chow interpolation removes it, and why interFoam needs one more trick to avoid spurious currents.
Moving Data Between Cores
A parallel CFD run is as fast as its slowest core and as cheap as the data it exchanges. Measuring MPI messages, halo exchange and domain decomposition on a 4-core laptop.
Data Locality in CFD
Same equations, same compiler, same machine, up to 20× difference in runtime. A small 2D Navier-Stokes solver shows why scientific codes must be designed around how data sits in memory.
Same Case, More Cores, Different Answer
Run the same turbulent simulation on 1, 2, 4 and 8 processes and you get four different flows. Nothing is wrong: the last bit of a parallel sum changes, and chaos does the rest. A small 2D turbulence solver shows how fast, why it only happens in turbulent flows, and what can and cannot be compared.
Nothing matches. Try another term.