diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-06-27 23:54:56 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-06-27 23:54:56 +0200 |
| commit | b4ef729dcb170091695397a33fc6de99b0f42ca7 (patch) | |
| tree | 3a0cb4ed48de30e72047ab53c6121e7bcd2b52d3 | |
| parent | e6e9cc9ce84539813e7e14fae5cdf3d4466fdeaf (diff) | |
| download | libs-lbm-b4ef729dcb170091695397a33fc6de99b0f42ca7.tar.gz | |
Helper component which resets the field porosity
| -rw-r--r-- | lib/core/c++/particle/particle_opa.hpp | 30 |
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); + + + } +}; +} +} |
