コンテンツにスキップ

cavity-d3q19

英語 | 日本語

« Home · « 層流・解析解による検証

D3Q19 lid-driven cavity -- the D3Q19 counterpart of cavity3d_d3q27, with the IDENTICAL setup (2D span-periodic or 3D, halfway bounce-back walls, moving lid, Re=U_lid*N/nu) so the two are directly comparable. Collision operators: BGK, central-moment (cascaded, De Rosis 2017), cumulant (D3Q19 4th-order variant). The point of the comparison: on D3Q19 the "cumulant" degenerates to the cascaded operator and loses the corner-speed stability the D3Q27 cumulant has.

概要: 同じキャビティ流れを BGK / 中心モーメント / キュムラントで解き分け、衝突演算子の安定性と精度を横並びで見る。低粘性側でどの演算子が破綻するかが分かる。

Geometry

cavity-d3q19 geometry

Animation

Fields

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

cavity-d3q19 umag

cavity-d3q19 ux

Build & run

cmake -S native -B native/build && cmake --build native/build -j
./native/build/orheo-cavity-d3q19

cavity_d3q19 N Re steps [bgk|cm|cum] [2d|3d]

このページの図を作った計算のコスト(Miyabi-G Hopper GPU (GH200, -stdpar=gpu)): 186.1 s wall。

Validation

Tier T2 — 単点比較
QoI u_min_centerline
Reference Ghia et al. (1982)
Gate — ゲートなし

Source & run details

View source

Item Value
Target orheo-cavity-d3q19
Source native/benchmarks/cavity_d3q19.cpp
Lattice D3Q19
GPU twin yes (orheo-cavity-d3q19-gpu)
Modules lbm_d3q19.hpp
Gallery run 2026-08-30 @ 38ad1eaa
Args ``
Wall time 186.06 s
CPU time 185.94 s
Device Miyabi-G Hopper GPU (GH200, -stdpar=gpu)

Computation log

この計算の実際の出力(先頭と末尾)。

cavity_d3q19 N=128 Ny=128 Re=1000 U_lid=0.050 tau=0.51920  op=cumulant  3D
  step 0: u_mid=0.00000 d=1.00e+09 rho=1.00000
  step 2000: u_mid=-0.00140 d=1.40e-03 rho=1.00000
  step 4000: u_mid=-0.00169 d=2.90e-04 rho=1.00000
  step 6000: u_mid=-0.00223 d=5.45e-04 rho=1.00002
  step 8000: u_mid=-0.00291 d=6.74e-04 rho=1.00003
  step 10000: u_mid=-0.00398 d=1.07e-03 rho=1.00002
  step 12000: u_mid=-0.00540 d=1.42e-03 rho=0.99995
  step 14000: u_mid=-0.00671 d=1.31e-03 rho=0.99975
  step 16000: u_mid=-0.00759 d=8.81e-04 rho=0.99627
  step 18000: u_mid=-0.00643 d=1.16e-03 rho=1.00310
  step 20000: u_mid=-0.00691 d=4.79e-04 rho=1.00406
  step 22000: u_mid=-0.00261 d=4.30e-03 rho=0.99849
  step 24000: u_mid=-0.00709 d=4.48e-03 rho=1.00024
...

  0.566 : -0.0832
  0.629 : -0.3394
  0.691 : +0.0327
  0.754 : +0.0372
  0.816 : +0.0801
  0.879 : -0.0081
  0.941 : +0.1588
  0.996 : +1.0362
Re=1000 op=cumulant STABLE. u_min/U_lid=-0.3576 at z/N=0.113