summaryrefslogtreecommitdiff
path: root/c++/descriptor.h
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-08-14 03:55:48 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-08-14 03:55:48 +0200
commit0ba2bc42e7ffaf71983dc9a8a1c59853c50a2cc2 (patch)
tree5e27fd07eb9c93c07493b34121f0b5c2036d9d9e /c++/descriptor.h
parenta8f3da04b7d924d6bc8a38b15c7f0def4240a76a (diff)
c++: Going into the area of simple BGK Dynamics
Diffstat (limited to 'c++/descriptor.h')
-rw-r--r--c++/descriptor.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/c++/descriptor.h b/c++/descriptor.h
index c09b312..4d29831 100644
--- a/c++/descriptor.h
+++ b/c++/descriptor.h
@@ -27,5 +27,29 @@ using CellData = Struct<
template<typename T, size_t D>
using Lattice = Array<T, D>;
}
+
+template<typename T>
+class df_info{};
+
+template<typename T>
+class df_info<Descriptor<T, 2, 5>> {
+ static constexpr std::array<std::array<int32_t, 2>, 5> directions = {
+ { 0, 0},
+ {-1, 0},
+ { 0,-1},
+ { 0, 1},
+ { 1, 0}
+ };
+
+ static constexpr std::array<std::ratio<int32_t>,5> weights = {
+ {1,3},
+ {1,6},
+ {1,6},
+ {1,6},
+ {1,6}
+ };
+
+ static constexpr std::ratio<int32_t> cs2 = {1,3};
+};
}
}