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 --- .../poiseulle_particles_channel_2d.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/poiseulle_particles_channel_2d') diff --git a/examples/poiseulle_particles_channel_2d/poiseulle_particles_channel_2d.cpp b/examples/poiseulle_particles_channel_2d/poiseulle_particles_channel_2d.cpp index aadeb12..44d874d 100644 --- a/examples/poiseulle_particles_channel_2d/poiseulle_particles_channel_2d.cpp +++ b/examples/poiseulle_particles_channel_2d/poiseulle_particles_channel_2d.cpp @@ -67,7 +67,7 @@ using CellStruct = Struct< template using MacroStruct = Struct< - Member, "momentum">, + Member, "velocity">, Member, Member, Member, "force"> @@ -368,7 +368,7 @@ void couple_particles_to_lattice( // Interpolate this from close U cells. // For now pick the closest U - auto& closest_u = macros.at(p_cell_pos).template get<"momentum">(); + auto& closest_u = macros.at(p_cell_pos).template get<"velocity">(); // auto p_shift = closest_u; // p_pos - p_pos_old @@ -720,7 +720,7 @@ kel::lbm::error_or real_main(int argc, char** argv){ auto& macro_cell = macros.at(index); auto& rho = macro_cell.template get<"pressure">(); - auto& vel = macro_cell.template get<"momentum">(); + auto& vel = macro_cell.template get<"velocity">(); auto& force = macro_cell.template get<"force">(); auto& part_mask = macro_cell.template get<"particle">(); -- cgit v1.3.1