From 80deace4d4b2c93945feeec42a8269f3ba2443d2 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 4 Aug 2026 19:52:08 +0200 Subject: Asking myself how I had a stable implementation before --- examples/moving_poiseulle_particles_2d_fplbm_gpu/sim.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'examples/moving_poiseulle_particles_2d_fplbm_gpu/sim.cpp') diff --git a/examples/moving_poiseulle_particles_2d_fplbm_gpu/sim.cpp b/examples/moving_poiseulle_particles_2d_fplbm_gpu/sim.cpp index f6c09e9..09b2616 100644 --- a/examples/moving_poiseulle_particles_2d_fplbm_gpu/sim.cpp +++ b/examples/moving_poiseulle_particles_2d_fplbm_gpu/sim.cpp @@ -141,7 +141,7 @@ saw::error_or init( rad.at({}) = dim_y * 0.1f; saw::data> dense; dense.at({}) = 1.0f; - particles = create_spheroid_particle_group(rad,dense,{16u}); + particles = create_spheroid_particle_group(rad,dense,{1u}); { auto& rb = particles.template get<"particles">().at({0u}).template get<"rigid_body">(); auto& rbp = rb.template get<"position">(); @@ -179,7 +179,7 @@ saw::error_or step( for(uint64_t i = 0u; i < Desc::D; ++i){ index.at({{i}}).set(idx[i]); } - + fplbm_reset.apply(fields,macros,index,t_i); }); }).wait(); @@ -193,12 +193,13 @@ saw::error_or step( index.at({{i}}).set(idx[i]); } - fplbm_one_part.apply(fields,macros,particles,index,t_i,{1u}); + fplbm_one_part.apply(fields,macros,particles,index,t_i,{16u}); }); }).wait(); // auto coll_ev = q.submit([&](acpp::sycl::handler& h){ + component> bgk{0.8}; component> collision{0.8}; component> bb; @@ -232,11 +233,11 @@ saw::error_or step( break; case 3u: flow_in.apply(fields,index,t_i); - collision.apply(fields,macros,index,t_i); + bgk.apply(fields,macros,index,t_i); break; case 4u: flow_out.apply(fields,index,t_i); - collision.apply(fields,macros,index,t_i); + bgk.apply(fields,macros,index,t_i); break; default: break; -- cgit v1.2.3