From 0c0087ef9482634273ec1a23d3a915754f94926d Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 11 Nov 2026 01:16:44 +0100 Subject: Snapshot. Migration to Lbm Unit --- examples/cavity_2d_gpu/cavity_2d_gpu.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'examples/cavity_2d_gpu') diff --git a/examples/cavity_2d_gpu/cavity_2d_gpu.cpp b/examples/cavity_2d_gpu/cavity_2d_gpu.cpp index ab1ab40..55225d1 100644 --- a/examples/cavity_2d_gpu/cavity_2d_gpu.cpp +++ b/examples/cavity_2d_gpu/cavity_2d_gpu.cpp @@ -46,7 +46,7 @@ using CellStruct = CellFieldStruct< template using MacroStruct = Struct< - Member, "momentum">, + Member, "velocity">, Member >; @@ -309,7 +309,9 @@ int main(){ {0.1} }; - print_lbm_meta(conv, {1e-3}); + // Lid driven cavity: the lid velocity and the cavity height are the + // characteristic scales. + print_lbm_meta(conv, {1e-3}, {0.1}, {dim_y}); auto eo_lbm_dir = output_directory(); if(eo_lbm_dir.is_error()){ @@ -361,7 +363,7 @@ int main(){ auto dfs_field = even_step ? dfs_old : dfs; auto& rho = macros.at(index).template get<"pressure">(); - auto& vel = macros.at(index).template get<"momentum">(); + auto& vel = macros.at(index).template get<"velocity">(); compute_rho_u(dfs_field[j],rho,vel); }, {{0u,0u}}, meta); std::string vtk_f_name{"tmp/cavity_2d_gpu_"}; -- cgit v1.3.1