diff options
Diffstat (limited to 'c++/particle')
-rw-r--r-- | c++/particle/particle.hpp | 25 |
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"> +>; +} +} +} |