Fluid Mechanics

A family of worked Navier-Stokes examples in examples/fluid/, from the lid-driven cavity benchmark (2D and 3D) to a Rayleigh-Bénard convection problem coupling momentum and energy. They all share the same underlying recipe — a custom NavierStokesAssembler (or its transient cousin) defined in the example file, SUPG/PSPG stabilization for equal-order P1-P1 elements, Picard linearization for steady solves, implicit Euler for transient ones — so once you have read Lid-Driven Cavity the rest are essentially geometry and boundary-condition variations.

The NavierStokesAssembler itself lives in the example folder, not in tensormesh.assemble. It is intentionally example-grade: the production-quality version will move into the core library when the assembler API for vector-valued problems stabilizes.

Lid-Driven Cavity

Steady NS at Re=100, SUPG/PSPG stabilization, Picard iteration — in 2D and 3D with one dimension-generic assembler.

Lid-Driven Cavity
Cylinder Flow (Vortex Shedding)

Transient DFG benchmark, implicit Euler, drag/lift/Strouhal post-processing.

Cylinder Flow (Vortex Shedding)
Flow Past Multiple Obstacles

Steady channel flow at Re=150 around six circular obstacles via MeshGen CSG.

Flow Past Multiple Obstacles
Rayleigh-Bénard Convection

Boussinesq-coupled momentum + heat transport, buoyancy-driven flow.

Rayleigh-Bénard Convection
Taylor-Green Vortex

Decaying vortex with exact solution — the convergence-study showcase.

Taylor-Green Vortex (Convergence Study)