summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-06-27 23:54:56 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-06-27 23:54:56 +0200
commitb4ef729dcb170091695397a33fc6de99b0f42ca7 (patch)
tree3a0cb4ed48de30e72047ab53c6121e7bcd2b52d3
parente6e9cc9ce84539813e7e14fae5cdf3d4466fdeaf (diff)
downloadlibs-lbm-b4ef729dcb170091695397a33fc6de99b0f42ca7.tar.gz
Helper component which resets the field porosity
-rw-r--r--lib/core/c++/particle/particle_opa.hpp30
1 files changed, 30 insertions, 0 deletions
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<typename T, typename Descriptor, typename Encode>
+
+class component<T,Descriptor,cmpt::OneParticleAt, Encode> final {
+private:
+public:
+ component() = default;
+
+ template<typename MacroFieldSchema>
+ void apply(const saw::data<MacroFieldSchema, Encode>& macros, const saw::data<sch::FixedArray<sch::UInt64,Descriptor::D>> index, saw::data<sch::UInt64> time_step) const {
+ using dfi = df_info<T,Descriptor>;
+
+ auto& porous_f = macros.template get<"porosity">();
+
+ auto& porous = porous_f.at(index);
+
+
+ }
+};
+}
+}