From 45ebf7411d687ab5530431ab1bcc74edb0499c69 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 22 Apr 2026 16:48:50 +0200 Subject: Working on equalizing poiseulle_particle channel methods --- examples/poiseulle_particles_2d_bgk_gpu/sim.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'examples/poiseulle_particles_2d_bgk_gpu') diff --git a/examples/poiseulle_particles_2d_bgk_gpu/sim.cpp b/examples/poiseulle_particles_2d_bgk_gpu/sim.cpp index 69e94c3..b8ac35e 100644 --- a/examples/poiseulle_particles_2d_bgk_gpu/sim.cpp +++ b/examples/poiseulle_particles_2d_bgk_gpu/sim.cpp @@ -183,11 +183,11 @@ saw::error_or step( component,encode::Sycl> flow_in{ [&](){ - uint64_t target_t_i = 64u; + uint64_t target_t_i = 32u; if(t_i.get() < target_t_i){ - return 1.0 + (0.0015 / target_t_i) * t_i.get(); + return 1.0 + (0.0002 / target_t_i) * t_i.get(); } - return 1.0015; + return 1.0002; }() }; component,encode::Sycl> flow_out{1.0}; @@ -212,6 +212,7 @@ saw::error_or step( break; case 3u: flow_in.apply(fields,index,t_i); + //equi.apply(fields,index,t_i); collision.apply(fields,macros,index,t_i); break; case 4u: @@ -266,7 +267,7 @@ saw::error_or lbm_main(int argc, char** argv){ {{1.0}} }; - print_lbm_meta(conv,{0.05},{0.01},{0.4 * dim_y}); + print_lbm_meta(conv,{0.1},{1e-4},{0.4 * dim_y}); // saw::data> meta{{dim_x,dim_y}}; auto lbm_data_ptr = saw::heap>>(); @@ -340,7 +341,8 @@ saw::error_or lbm_main(int argc, char** argv){ } } sycl_q.wait(); - { + /* + if(i.get() % 128u == 0u){ { auto eov = dev.copy_to_host(lbm_sycl_macro_data,*lbm_macro_data_ptr); if(eov.is_error()){ @@ -354,6 +356,7 @@ saw::error_or lbm_main(int argc, char** argv){ } } } + */ /* { { -- cgit v1.2.3