summaryrefslogtreecommitdiff
path: root/examples/poiseulle_particles_2d_gpu/init.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-06-28 19:41:33 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-06-28 19:41:33 +0200
commit78e8a621beff8ccd410f2e2c0b6df7f3931b52eb (patch)
tree080672eb1e183fff0ef628dfc3ae6628cb8d10f5 /examples/poiseulle_particles_2d_gpu/init.hpp
parent3a27bca74e7645874e52f101d467aff8ff7d78f4 (diff)
parent283ff837896c805bddf4962caaa54c26aa8bab1f (diff)
downloadlibs-lbm-78e8a621beff8ccd410f2e2c0b6df7f3931b52eb.tar.gz
Merge branch 'dev'
Diffstat (limited to 'examples/poiseulle_particles_2d_gpu/init.hpp')
-rw-r--r--examples/poiseulle_particles_2d_gpu/init.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/poiseulle_particles_2d_gpu/init.hpp b/examples/poiseulle_particles_2d_gpu/init.hpp
index 70d59fc..617b296 100644
--- a/examples/poiseulle_particles_2d_gpu/init.hpp
+++ b/examples/poiseulle_particles_2d_gpu/init.hpp
@@ -7,10 +7,13 @@ namespace lbm {
template<typename T, typename Desc>
saw::error_or<void> setup_initial_conditions(
+ const converter<T>& conv,
saw::data<sch::ChunkStruct<T,Desc>>& fields,
saw::data<sch::MacroStruct<T,Desc>>& macros,
saw::data<sch::ParticleSpheroidGroup<T,Desc>>& particles
){
+ (void) conv;
+
auto& info_f = fields.template get<"info">();
auto& porous_f = macros.template get<"porosity">();
// Set everything as walls
@@ -110,9 +113,11 @@ saw::error_or<void> setup_initial_conditions(
);
{
+ saw::data<sch::Scalar<T>> radius_p;
+ radius_p.at({}).set(2);
saw::data<sch::Scalar<T>> dense_p;
dense_p.at({}).set(1);
- particles = create_spheroid_particle_group<T,Desc::D,2.0f>(dense_p, {{16u}});
+ particles = create_spheroid_particle_group<T,Desc::D>(radius_p, dense_p, {{16u}});
}
return saw::make_void();