2D spatial accuracyPass

Kovasznay flow

A steady laminar wake behind a two-dimensional grid, one of the few flows with a closed-form solution to the full Navier–Stokes equations.

Steady2DRe = 40Exact solution

The problem

Kovasznay flow is the analytic solution derived by L. I. G. Kovasznay in 1948 for the steady, periodic wake downstream of a row of evenly spaced bars. It is periodic across the stream and decays exponentially in the flow direction, and, unusually, it satisfies the full nonlinear Navier–Stokes equations in closed form rather than as an approximation.

That exact form is what makes it a verification workhorse. Every boundary is set to the analytic velocity, the solver is driven to steady state, and the interior solution is compared against the formula point by point. Whatever remains is the solver’s own spatial discretization error, with no turbulence model, no transient, and no experimental uncertainty in the way.

Exact solution (Re = 40)

λ=Re2Re24+4π2\lambda = \frac{Re}{2} - \sqrt{\frac{Re^{2}}{4} + 4\pi^{2}}
u(x,y)=1eλxcos(2πy)u(x,y) = 1 - e^{\lambda x}\cos(2\pi y)
v(x,y)=λ2πeλxsin(2πy)v(x,y) = \frac{\lambda}{2\pi}\, e^{\lambda x}\sin(2\pi y)
p(x,y)=12 ⁣(1e2λx)p(x,y) = \tfrac{1}{2}\!\left(1 - e^{2\lambda x}\right)

What we measured

The flow is solved on a sequence of progressively finer meshes, from 8 to 128 cells per side, with everything else held fixed. At each level the steady-state error against the exact solution is measured in three norms: overall velocity, velocity gradients, and pressure.

The quantity of interest is the rate at which that error falls as the cells shrink: the order of accuracy. For a correct second-order scheme, halving the cell size reduces the velocity error by roughly a factor of four, which appears as a slope of two when error is plotted against cell size on log axes.

Results

Refined across five meshes, the velocity error falls at order 1.97, within a few percent of the theoretical 2.00, while velocity gradients and pressure track their own expected rates.

L2 velocityTarget

Overall accuracy of the predicted flow field

expected 2.001.97

H1 velocity

Accuracy of velocity gradients (shear, stresses)

expected 1.001.02

L2 pressure

Overall accuracy of the predicted pressure

expected 1.001.83

10⁻³10⁻²slope 2finecoarsemesh size hvelocity error
Mesh size hVelocity errorRate
0.12504.05 × 10⁻²
0.06251.10 × 10⁻²1.88
0.03132.80 × 10⁻³1.98
0.01567.00 × 10⁻⁴2.00
0.00781.75 × 10⁻⁴2.00

Each halving of the mesh cuts the error roughly 4×, the signature of a second-order method.

Velocity converges at order 1.97 against the theoretical 2.00, and pressure and velocity gradients clear their expected rates as well.