porous-poiseuille2d¶
英語 | 日本語
D3Q19 Brinkman porous plane Poiseuille flow -- body-force-driven laminar channel through a uniform, isotropic porous medium. Clean-room reimplementation of the classic porous-channel verification case (the same problem the OpenLB gallery lists as porousMedia/porousPoiseuille2d); NO vendor source consulted or ported -- OpenLB is GPLv2, incompatible with this Apache-2.0 project. Only the choice of case (which problem, its geometry) is borrowed; the physics below is derived directly from the Brinkman equation and implemented from scratch.
概要: Brinkman 多孔質チャネル。Darcy 抗力を体積力として加え、解析 cosh 分布と比較する。Darcy 数を変えると境界層厚みが変わる。
Geometry¶

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


Build & run¶
cmake -S native -B native/build && cmake --build native/build -j
./native/build/orheo-porous-poiseuille2d
porous_poiseuille2d [N] [steps] [csv]
このページの図を作った計算のコスト(Miyabi-G Grace CPU (72 cores, -stdpar=multicore)): 19.8 s wall。
Validation¶
| Tier | T1 — 自動ゲートあり |
| QoI | velocity-L2-error(abs) |
| Reference | analytic Brinkman channel solution |
| Gate | 🧩 モジュールゲート (closures) |
Source & run details¶
| Item | Value |
|---|---|
| Target | orheo-porous-poiseuille2d |
| Source | native/benchmarks/porous_poiseuille2d.cpp |
| Lattice | D3Q19 |
| GPU twin | no |
| Modules | lbm_d3q19.hpp |
| Gallery run | 2026-07-27 @ 7628c0cf |
| Args | `` |
| Wall time | 19.84 s |
| CPU time | 700.03 s |
| Device | Miyabi-G Grace CPU (72 cores, -stdpar=multicore) |
Computation log¶
この計算の実際の出力(先頭と末尾)。
porous_poiseuille2d (Brinkman channel) N=64 nu=0.100 steps=200000
Da=1.0e+00 K=4096 sqrt(K)/H=1.0000 G=1.0785e-05 drag=nu/K=2.4414e-05 tau=0.8000
Da=1.0e-02 K=40.96 sqrt(K)/H=0.1000 G=1.2374e-04 drag=nu/K=2.4414e-03 tau=0.8000
Da=1.0e-03 K=4.096 sqrt(K)/H=0.0316 G=1.2207e-03 drag=nu/K=2.4414e-02 tau=0.8000
Da=1.0e-04 K=0.4096 sqrt(K)/H=0.0100 G=1.2207e-02 drag=nu/K=2.4414e-01 tau=0.8000
Da L2 umax_lbm umax_exact plug_GK/nu
1.0e+00 1.561e-04 0.049983 0.049988 0.441770
1.0e-02 4.314e-04 0.050001 0.049998 0.050683
1.0e-03 2.073e-03 0.050000 0.050000 0.050000
1.0e-04 9.004e-03 0.050000 0.050000 0.050000
Darcy-plug -> Stokes-parabola transition (u[H/4]/u[H/2]):
parabola limit = 0.750, plug limit -> 1.000