From 0a11f4fbdbdf62d153904c9ed7de6c82a8916b7d Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 26 Mar 2026 12:08:19 +0100 Subject: Dangling changes. Restructuring particle setup --- lib/core/c++/particle/particle.hpp | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'lib/core/c++/particle/particle.hpp') diff --git a/lib/core/c++/particle/particle.hpp b/lib/core/c++/particle/particle.hpp index a95a173..c0d115f 100644 --- a/lib/core/c++/particle/particle.hpp +++ b/lib/core/c++/particle/particle.hpp @@ -1,8 +1,10 @@ #pragma once -#include -#include #include +#include +#include + +#include "../iterator.hpp" namespace kel { namespace lbm { @@ -52,25 +54,20 @@ using Particle = Struct< template> using ParticleGroup = Struct< - Member, "mask">, + Member, "mask">, Member, Member, "mass">, Member>, "particles"> >; - -template -using ParticleGroupTuple = Tuple< - PartGroups... ->; - } template saw::data>> create_spheroid_particle_group( saw::data> rad_p, - saw::data> density_p + saw::data> density_p, + const saw::data& mask_resolution ){ - saw::data,sch::ParticleCollisionSpheroid> part; + saw::data>> part; auto& mask = part.template get<"mask">(); auto& collision = part.template get<"collision">(); @@ -92,6 +89,16 @@ saw::data>> create_sph static_assert(D == 0u or D > 3u, "Dimensions only supported for Dim 1,2 & 3."); } + saw::data> mask_dims; + for(uint64_t i = 0u; i < D; ++i){ + mask_dims.at({i}) = mask_resolution; + } + + mask = {mask_dims}; + iterator::apply([&](const auto& index){ + + },{},mask_dims); + return part; } -- cgit v1.2.3