From 1693f8ccb3fbdbc8a1bd35a5ffde684ca4c68a3f Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sat, 18 Jul 2026 21:45:14 +0200 Subject: Dangling --- modules/core/c++/psm.hpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'modules/core/c++/psm.hpp') diff --git a/modules/core/c++/psm.hpp b/modules/core/c++/psm.hpp index 30a00da..02db1e1 100644 --- a/modules/core/c++/psm.hpp +++ b/modules/core/c++/psm.hpp @@ -8,6 +8,7 @@ namespace kel { namespace lbm { namespace cmpt { struct PSM {}; +struct PsmOneParticle {}; } /** @@ -79,5 +80,29 @@ public: } }; +/** + * PSM collision operator for LBM + */ +template +class component final { +private: +public: + component() = default; + + template + void apply(const saw::data& field, const saw::data& macros, const saw::data& particles, saw::data> index, saw::data time_step) const { + + using dfi = df_info; + bool is_even = ((time_step.get() % 2) == 0); + + auto& dfs_old_f = (is_even) ? field.template get<"dfs_old">() : field.template get<"dfs">(); + auto& porous_f = macros.template get<"porosity">(); + + auto& rho_f = macros.template get<"density">(); + auto& vel_f = macros.template get<"velocity">(); + + } +}; + } } -- cgit v1.2.3