From 5c708bb3a0c9faec82a0deb32478370f9d780ea8 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 9 Nov 2026 15:13:37 +0100 Subject: Throat Clog is shit --- examples/throat_clog_2d/step.hpp | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'examples/throat_clog_2d/step.hpp') diff --git a/examples/throat_clog_2d/step.hpp b/examples/throat_clog_2d/step.hpp index 840f8ba..5bb889e 100644 --- a/examples/throat_clog_2d/step.hpp +++ b/examples/throat_clog_2d/step.hpp @@ -116,9 +116,24 @@ kel::lbm::error_or step( }); }).wait(); + /** + * Particle step, split so contact lands between the fluid gather and + * the integration. With 20 particles in a converging throat they jam + * against one another, so without a contact pass they would simply + * pass through each other and through the walls. + */ q.submit([&](acpp::sycl::handler& h){ - kel::lbm::data> grav; - component> fplbm_one_part{grav}; + component> p_reset; + component> p_gather; + component> p_integrate; + + /** + * Stiffness is sized so an impact at the inflow speed stays well + * under a tenth of a radius of overlap; see dem_stiffness_for. + */ + dem_params p_dem{2.0e-2, 0.4, 0.0, 0.0}; + kel::lbm::data> p_extent{{dim_x,dim_y}}; + component> p_contact{p_dem,p_extent}; h.parallel_for(acpp::sycl::range<1u>{particle_amount}, [=](acpp::sycl::id<1u> idx){ kel::lbm::data> index; @@ -126,7 +141,10 @@ kel::lbm::error_or step( index.at({{i}}).set(idx[i]); } - fplbm_one_part.apply(fields,macros,particles,index,t_i,{4u}); + p_reset.apply(particles,index,t_i); + p_gather.apply(fields,macros,particles,index,t_i,{4u}); + p_contact.apply(particles,index,t_i,{4u}); + p_integrate.apply(particles,index,t_i,{4u}); }); }).wait(); -- cgit v1.3.1