diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-11 17:27:59 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-11 17:27:59 +0100 |
| commit | 595cdfd51594af7cee4258a1ed92b06c6bf0171d (patch) | |
| tree | 9a71f60802d808678268bcbc843fd1cb7b83264a /lib/core/c++/particle.hpp | |
| parent | 8945f921d6393689c54133ec84ff79008e132685 (diff) | |
| download | libs-lbm-595cdfd51594af7cee4258a1ed92b06c6bf0171d.tar.gz | |
Fixing
Diffstat (limited to 'lib/core/c++/particle.hpp')
| -rw-r--r-- | lib/core/c++/particle.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/core/c++/particle.hpp b/lib/core/c++/particle.hpp new file mode 100644 index 0000000..f8a5cb0 --- /dev/null +++ b/lib/core/c++/particle.hpp @@ -0,0 +1,32 @@ +#pragma once + +#include "component.hpp" +#include "particle/particle.hpp" + +namespace kel { +namespace lbm { +namespace cmpt { +struct Particle {}; +} + +template<typename T, typename Descriptor, typename Encode> +class component<T, Descriptor, cmpt::Particle, Encode> { +public: + + template<typename ParticleSchema, typename MacroFieldSchema> + void apply(const saw::data<ParticleSchema, Encode>& particles, const saw::data<MacroFieldSchema,Encode>& macros, saw::data<sch::UInt64> index, saw::data<sch::UInt64> time_step) const { + + auto& p = particles.at(index); + + // Compute forces + + // Update particle velocity + verlet_step_lambda<T,Descriptor::D>(p,{1.0}); + + // Update porosity over lattice nodes + + + } +}; +} +} |
