summaryrefslogtreecommitdiff
path: root/examples/moving_poiseulle_particles_2d_hlbm_gpu
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-07-16 17:23:34 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-07-16 17:23:34 +0200
commit879188f7c55b4f8383002b6bf09ef32dd592ab90 (patch)
tree32e8e1c4816337fa6457f30c51ddf996e888aeb0 /examples/moving_poiseulle_particles_2d_hlbm_gpu
parent91f75c895fb2c344805ddcb91439b93bba0293c4 (diff)
parentbd9f266756849a7381d7a4ff575d5f1ccc6e28bb (diff)
downloadlibs-lbm-879188f7c55b4f8383002b6bf09ef32dd592ab90.tar.gz
Merge branch 'dev'
Diffstat (limited to 'examples/moving_poiseulle_particles_2d_hlbm_gpu')
-rw-r--r--examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp b/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp
index 75dd666..749c951 100644
--- a/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp
+++ b/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp
@@ -150,6 +150,14 @@ saw::error_or<void> setup_initial_conditions(
saw::data<sch::Scalar<T>> dense;
dense.at({}) = 1.0f;
particles = create_spheroid_particle_group<T,Desc::D,1u>(rad,dense,{16u});
+ {
+ auto& rb = particles.template get<"particles">().at({0u}).template get<"rigid_body">();
+ auto& rbp = rb.template get<"position">();
+ rbp.at({0u}) = 0.25 * dim_x;
+ rbp.at({1u}) = 0.5 * dim_y;
+ auto& rbp_old = rbp;
+
+ }
return saw::make_void();
}
@@ -177,8 +185,6 @@ saw::error_or<void> step(
hlbm_one_part.apply(fields,macros,particles,index,t_i);
- // auto aabb = particle_aabb<>::cacl();
-
});
}).wait();