diff options
Diffstat (limited to 'symbolic/D3Q27.py')
-rw-r--r-- | symbolic/D3Q27.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/symbolic/D3Q27.py b/symbolic/D3Q27.py index d63aad8..6fb1f80 100644 --- a/symbolic/D3Q27.py +++ b/symbolic/D3Q27.py @@ -1,10 +1,7 @@ -from sympy import * +from sympy import Matrix +from itertools import product -q = 27 d = 3 +q = 27 -c = [ Matrix(x) for x in [ - (-1, 1, 1), ( 0, 1, 1), ( 1, 1, 1), (-1, 0, 1), ( 0, 0, 1), ( 1, 0, 1), (-1,-1, 1), ( 0, -1, 1), ( 1, -1, 1), - (-1, 1, 0), ( 0, 1, 0), ( 1, 1, 0), (-1, 0, 0), ( 0, 0, 0), ( 1, 0, 0), (-1,-1, 0), ( 0, -1, 0), ( 1, -1, 0), - (-1, 1,-1), ( 0, 1,-1), ( 1, 1,-1), (-1, 0,-1), ( 0, 0,-1), ( 1, 0,-1), (-1,-1,-1), ( 0, -1,-1), ( 1, -1,-1) -]] +c = [ Matrix(x) for x in product([-1,0,1], repeat=d) ] |