From b4ef729dcb170091695397a33fc6de99b0f42ca7 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sat, 27 Jun 2026 23:54:56 +0200 Subject: Helper component which resets the field porosity --- lib/core/c++/particle/particle_opa.hpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lib/core/c++/particle/particle_opa.hpp diff --git a/lib/core/c++/particle/particle_opa.hpp b/lib/core/c++/particle/particle_opa.hpp new file mode 100644 index 0000000..470c4e9 --- /dev/null +++ b/lib/core/c++/particle/particle_opa.hpp @@ -0,0 +1,30 @@ +#pragma once + +#include "component.hpp" + +namespace kel { +namespace lbm { +namespace cmpt { +struct OneParticleAt {}; +} + +template + +class component final { +private: +public: + component() = default; + + template + void apply(const saw::data& macros, const saw::data> index, saw::data time_step) const { + using dfi = df_info; + + auto& porous_f = macros.template get<"porosity">(); + + auto& porous = porous_f.at(index); + + + } +}; +} +} -- cgit v1.2.3