From 0ba2bc42e7ffaf71983dc9a8a1c59853c50a2cc2 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 14 Aug 2023 03:55:48 +0200 Subject: c++: Going into the area of simple BGK Dynamics --- c++/descriptor.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'c++/descriptor.h') 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 using Lattice = Array; } + +template +class df_info{}; + +template +class df_info> { + static constexpr std::array, 5> directions = { + { 0, 0}, + {-1, 0}, + { 0,-1}, + { 0, 1}, + { 1, 0} + }; + + static constexpr std::array,5> weights = { + {1,3}, + {1,6}, + {1,6}, + {1,6}, + {1,6} + }; + + static constexpr std::ratio cs2 = {1,3}; +}; } } -- cgit v1.2.3