Leon Górecki Aerospace / Mechanical Engineering
CFD · Simulation · C++

LG-FLOW: 2D CFD Solver

LG-FLOW project thumbnail

What it is

Technical stack

Language
C++20 (GCC 11+, Clang 14+, MSVC 19.29+)
Method
Finite Volume Method · SIMPLE pressure-velocity coupling
Libraries
Eigen3 (linear algebra) · GoogleTest (unit testing)
Build
CMake 3.20+
Convection schemes
Upwind · Central difference · Adaptive CFL clamping
Output
VTK snapshots · Centerline velocity profiles · L2/L∞ error metrics · CSV residuals

Validation — Ghia et al. lid-driven cavity

Case Re Reference Status
Lid-driven cavity 100 Ghia et al. 1982 PASS
Lid-driven cavity 1000 Ghia et al. 1982 PASS

Implementation highlights

  • 01Staggered grid with collocated pressure — avoids pressure-velocity decoupling
  • 02SIMPLE pressure-correction loop with configurable multi-pass solving
  • 03Stencil-consistent discretisation — same interpolation scheme throughout
  • 04Automated validation suite: machine-readable pass/fail with configurable exit codes
  • 05VTK export for post-processing in ParaView or similar tools