diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-20 17:46:58 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-20 17:46:58 +0100 |
| commit | b330a03a1088d5cdeaa6dd7893b38e5c4ef0a9e7 (patch) | |
| tree | 9188d9bca15917b5e1ded0a9f3d0f335381d9ccf /examples/poiseulle_particles_2d_gpu/sim.cpp | |
| parent | cb514e099515934322d9400d559a65b831cf4c5f (diff) | |
| download | libs-lbm-b330a03a1088d5cdeaa6dd7893b38e5c4ef0a9e7.tar.gz | |
Adding PSM component to default include. Porosity in HLBM reset turned
off
Diffstat (limited to 'examples/poiseulle_particles_2d_gpu/sim.cpp')
| -rw-r--r-- | examples/poiseulle_particles_2d_gpu/sim.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/examples/poiseulle_particles_2d_gpu/sim.cpp b/examples/poiseulle_particles_2d_gpu/sim.cpp index 8e522b4..ae197f9 100644 --- a/examples/poiseulle_particles_2d_gpu/sim.cpp +++ b/examples/poiseulle_particles_2d_gpu/sim.cpp @@ -89,7 +89,7 @@ saw::error_or<void> setup_initial_conditions( info_f.at(index).set(3u); }, {{0u,0u}}, - {{1u, dim_y}}, + {{1u,dim_y}}, {{0u,1u}} ); @@ -129,7 +129,7 @@ saw::error_or<void> setup_initial_conditions( auto& rho = rho_f.at(index); rho.at({}) = {1}; auto& vel = vel_f.at(index); - vel.at({{0u}}) = 0.1; + vel.at({{0u}}) = 0.0; auto eq = equilibrium<T,Desc>(rho,vel); df = eq; @@ -202,7 +202,8 @@ saw::error_or<void> step( q.submit([&](acpp::sycl::handler& h){ // Need nicer things to handle the flow. I see improvement here // component<T,Desc,cmpt::BGK, encode::Sycl<saw::encode::Native>> collision{0.6}; - component<T,Desc,cmpt::HLBM,encode::Sycl<saw::encode::Native>> collision{0.6}; + // component<T,Desc,cmpt::HLBM,encode::Sycl<saw::encode::Native>> collision{0.6}; + component<T,Desc,cmpt::PSM,encode::Sycl<saw::encode::Native>> collision{0.6}; component<T,Desc,cmpt::BounceBack,encode::Sycl<saw::encode::Native>> bb; saw::data<sch::Scalar<T>> rho_b; @@ -378,7 +379,7 @@ saw::error_or<void> lbm_main(int argc, char** argv){ } } sycl_q.wait(); - saw::data<sch::UInt64> time_steps{1024ul}; + saw::data<sch::UInt64> time_steps{8096ul}; for(saw::data<sch::UInt64> i{0u}; i < time_steps and krun; ++i){ { @@ -401,12 +402,6 @@ saw::error_or<void> lbm_main(int argc, char** argv){ return eov; } } - { - auto eov = dev.copy_to_host(lbm_sycl_data,*lbm_data_ptr); - if(eov.is_error()){ - return eov; - } - } wait.poll(); if(print_status){ |
