Skip to content

kbc-cavity2d

English | Japanese

« Home · « Laminar flow and analytic verification

KBC entropic-collision validation on the lid-driven cavity (S1 gate, docs/design/kbc-entropic-design.md §7①). Drives the dense D3Q19 solver (lbm_d3q19.hpp step) on a cubic cavity with a moving Top lid and no-slip on the other five faces -- the SAME setup as ghia_re1000.cpp -- for a chosen collision operator (bgk | mrt | kbc). Two things it measures:

Geometry

kbc-cavity2d geometry

Animation

Fields

The fields this computation wrote at its last output step, plotted as they are. 3D cases show the mid-plane.

kbc-cavity2d umag

kbc-cavity2d ux

Build & run

cmake -S native -B native/build && cmake --build native/build -j
./native/build/orheo-kbc-cavity2d

kbc_cavity2d [n] [re] [steps] [collision] [tag] [tau_override]

Cost of the computation that made the figures on this page (Miyabi-G Grace CPU (72 cores, -stdpar=multicore)): 122.4 s wall.

Validation

Tier T2 — single-point comparison
QoI Centreline u(y), stability limit
Reference Ghia et al. (1982)
Gate — no gate

Source & run details

View source

Item Value
Target orheo-kbc-cavity2d
Source native/benchmarks/kbc_cavity2d.cpp
Lattice D3Q19
GPU twin no
Modules lbm_d3q19.hpp
Gallery run 2026-07-27 @ 7628c0cf
Args ``
Wall time 122.39 s
CPU time 4321.64 s
Device Miyabi-G Grace CPU (72 cores, -stdpar=multicore)

Computation log

The actual output of this computation (head and tail).

KBC-cavity: n=64 Re=1000 coll=kbc tau=0.51920 steps=20000 tag=run
  step 2000/20000: max|rho-1|=2.8124e-02  centerline u_min/U=-0.0688
  step 4000/20000: max|rho-1|=2.8760e-02  centerline u_min/U=-0.1941
  step 6000/20000: max|rho-1|=2.9415e-02  centerline u_min/U=-0.2480
  step 8000/20000: max|rho-1|=2.9684e-02  centerline u_min/U=-0.2532
  step 10000/20000: max|rho-1|=2.9731e-02  centerline u_min/U=-0.2582
  step 12000/20000: max|rho-1|=2.9674e-02  centerline u_min/U=-0.2605
  step 14000/20000: max|rho-1|=2.9667e-02  centerline u_min/U=-0.2612
  step 16000/20000: max|rho-1|=2.9646e-02  centerline u_min/U=-0.2618
  step 18000/20000: max|rho-1|=2.9626e-02  centerline u_min/U=-0.2613
  step 20000/20000: max|rho-1|=2.9622e-02  centerline u_min/U=-0.2606
RESULT tag=run coll=kbc Re=1000 tau=0.51920 : STABLE max|rho-1|=2.9622e-02
wrote run_uy.csv run_vx.csv run_vort.csv