diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-11 17:17:22 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-11 17:17:22 +0200 |
| commit | 1dda51f5a95d7dc6e8bcf617f53cb763753db0a7 (patch) | |
| tree | 41d4aef165021b55c6bafdcaf91248b48cf99419 /examples/moving_poiseulle_particles_2d_hlbm_gpu | |
| parent | 9f11c44b15d90bb676206894beca7d4c2a057a6b (diff) | |
| download | libs-lbm-1dda51f5a95d7dc6e8bcf617f53cb763753db0a7.tar.gz | |
moving test
Diffstat (limited to 'examples/moving_poiseulle_particles_2d_hlbm_gpu')
| -rw-r--r-- | examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp b/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp index ce93d3e..daa397a 100644 --- a/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp +++ b/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp @@ -144,28 +144,6 @@ saw::error_or<void> setup_initial_conditions( df_f.get_dims(), {{1u,1u}} ); - /* Technically the particle group should handle this case - iterator<Desc::D>::apply( - [&](auto& index){ - saw::data<sch::Vector<T,Desc::D>> middle, ind_vec; - middle.at({{0u}}) = dim_x * 0.25; - middle.at({{1u}}) = dim_y * 0.5; - - ind_vec.at({{0u}}) = index.at({{0u}}).template cast_to<T>(); - ind_vec.at({{1u}}) = index.at({{1u}}).template cast_to<T>(); - - auto dist = middle - ind_vec; - auto dist_2 = saw::math::dot(dist,dist); - if(dist_2.at({}).get() < dim_y*dim_y*0.01){ - porous_f.at(index).at({}) = 0.0; - } - }, - {},// 0-index - df_f.get_dims() - ); - */ - - return saw::make_void(); } |
