From 24847cbb2567f508a7c30b39c6fb7ba6379d1adc Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 2 Nov 2019 17:18:32 +0100 Subject: Restructure LBM model / lattice distinction --- boltzgen/lbm/lattice/D3Q7.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 boltzgen/lbm/lattice/D3Q7.py (limited to 'boltzgen/lbm/lattice/D3Q7.py') diff --git a/boltzgen/lbm/lattice/D3Q7.py b/boltzgen/lbm/lattice/D3Q7.py new file mode 100644 index 0000000..04e16a3 --- /dev/null +++ b/boltzgen/lbm/lattice/D3Q7.py @@ -0,0 +1,18 @@ +from sympy import * + +q = 7 +d = 3 + +c = [ Matrix(x) for x in [ + ( 0, 0, 1), + ( 0, 1, 0), (-1, 0, 0), ( 0, 0, 0), ( 1, 0, 0), ( 0, -1, 0), + ( 0, 0,-1) +]] + +w = [Rational(*x) for x in [ + (1,8), + (1,8), (1,8), (1,4), (1,8), (1,8), + (1,8) +]] + +c_s = sqrt(Rational(1,4)) -- cgit v1.2.3