summaryrefslogtreecommitdiff
path: root/c++/particle/particle.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-03-31 16:01:20 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-03-31 16:01:20 +0200
commit7b0dc7f7003c07cca984fd49b5c18af9dafd4675 (patch)
treeee75667a055f89724356d91dca28fbeec9144dfb /c++/particle/particle.hpp
parenta958e098431af9a19b587fe5dcc32cd01d525d04 (diff)
wip
Diffstat (limited to 'c++/particle/particle.hpp')
-rw-r--r--c++/particle/particle.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/c++/particle/particle.hpp b/c++/particle/particle.hpp
new file mode 100644
index 0000000..fd0ff59
--- /dev/null
+++ b/c++/particle/particle.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+#include <forstio/codec/data.hpp>
+
+namespace kel {
+namespace lbm {
+namespace sch {
+using namespace saw::schema;
+
+template<typename T, uint64_t D>
+using ParticleRigidBody = Struct<
+ Member<FixedArray<T,D>, "position">,
+ Member<FixedArray<T,D>, "velocity">,
+ Member<FixedArray<T,D>, "acceleration">,
+ Member<FixedArray<T,D>, "rotate_velocity">,
+ Member<FixedArray<T,D>, "rotate_acceleration">
+>;
+
+template<typename T, uint64_t D>
+using ParticleMask = Struct<
+ Member<Array<T,D>, "mask">
+>;
+}
+}
+}