kbc-cavity2d¶
英語 | 日本語
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:
概要: KBC(エントロピック)演算子の安定限界を測る。BGK/MRT が発散する領域でも有界に留まるかを確認する。
Geometry¶

Animation¶
Fields¶
この計算が最後の出力ステップで書き出した場をそのまま描いたもの。3D ケースは中央断面。


Build & run¶
kbc_cavity2d [n] [re] [steps] [collision] [tag] [tau_override]
このページの図を作った計算のコスト(Miyabi-G Grace CPU (72 cores, -stdpar=multicore)): 122.4 s wall。
Validation¶
| Tier | T2 — 単点比較 |
| QoI | 中心線 u(y), 安定限界 |
| Reference | Ghia et al. (1982) |
| Gate | — ゲートなし |
Source & run details¶
| 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¶
この計算の実際の出力(先頭と末尾)。
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