Documentation Index
Fetch the complete documentation index at: https://compflowlab.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Roe Flux Scheme
CompFlowLab uses second-order spatial reconstruction for the Roe flux scheme. The Roe scheme is an approximate Riemann solver widely used in computational fluid dynamics for solving hyperbolic conservation laws, particularly the Euler and Navier-Stokes equations. Developed by Philip Roe in 1981, it provides an exact solution to a locally linearized Riemann problem at each cell interface. At each interface, the Roe scheme replaces the nonlinear system of conservation laws: with a locally linearized system: where is the vector of conserved variables (density, momentum, energy) and is the Roe-averaged Jacobian matrix evaluated at interface-averaged states.Limiter
Reconstruction is performed with slope limiters to maintain monotonicity and prevent spurious oscillations near discontinuities. Two limiter methods are available:minmod: A classic slope limiter that selects the minimum slope among neighboring cells, providing robust but slightly dissipative behavior.barth: A less dissipative limiter based on Barth-Jespersen’s approach, which preserves monotonicity while maintaining higher accuracy in smooth regions.