From 5fee9c698f5f1ebe6ef8bf07f5a75e04dab92681 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 9 Feb 2026 16:49:12 +0100 Subject: Add rar as dep and implement collision --- lib/core/c++/psm.hpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 lib/core/c++/psm.hpp (limited to 'lib/core/c++/psm.hpp') diff --git a/lib/core/c++/psm.hpp b/lib/core/c++/psm.hpp new file mode 100644 index 0000000..8e151c3 --- /dev/null +++ b/lib/core/c++/psm.hpp @@ -0,0 +1,35 @@ +#pragma once + +#include "macroscopic.hpp" +#include "component.hpp" +#include "equilibrium.hpp" + +namespace kel { +namespace lbm { +namespace cmpt { +struct PSM {}; +} + +/** + * HLBM collision operator for LBM + */ +template +class component { +private: +public: + component() = default; + + template + void apply(const saw::data& field, const saw::data& macros, saw::data> index, saw::data time_step) const { + + 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 = field.template get<"porosity">(); + + + } +}; + +} +} -- cgit v1.2.3