summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
+
+
+ }
+};
+}
+}