diff options
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 + + + } +}; +} +} |
