aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-06-16 13:08:02 +0200
committerAdrian Kummerlaender2019-06-16 13:08:02 +0200
commit54a45dbec3e046b3e3c333aa1fde68244d0d2a51 (patch)
tree9225a30485c22100ce8e52e4d5a9b4f599ebf95b
parent63163ebbbced363fde788c560b479569470705bd (diff)
downloadsymlbm_playground-54a45dbec3e046b3e3c333aa1fde68244d0d2a51.tar
symlbm_playground-54a45dbec3e046b3e3c333aa1fde68244d0d2a51.tar.gz
symlbm_playground-54a45dbec3e046b3e3c333aa1fde68244d0d2a51.tar.bz2
symlbm_playground-54a45dbec3e046b3e3c333aa1fde68244d0d2a51.tar.lz
symlbm_playground-54a45dbec3e046b3e3c333aa1fde68244d0d2a51.tar.xz
symlbm_playground-54a45dbec3e046b3e3c333aa1fde68244d0d2a51.tar.zst
symlbm_playground-54a45dbec3e046b3e3c333aa1fde68244d0d2a51.zip
Add D3Q27 descriptor
-rw-r--r--symbolic/D3Q27.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/symbolic/D3Q27.py b/symbolic/D3Q27.py
new file mode 100644
index 0000000..6a81de5
--- /dev/null
+++ b/symbolic/D3Q27.py
@@ -0,0 +1,18 @@
+from sympy import *
+
+q = 27
+d = 3
+
+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)
+]]
+
+w = [Rational(*x) for x in [
+ (1, 216), (1,54), (1,216), (1,54), (2,27), (1,54), (1,216), (1,54), (1,216),
+ (1, 54), (2,27), (1, 54), (2,27), (8,27), (2,27), (1, 54), (2,27), (1, 54),
+ (1, 216), (1,54), (1,216), (1,54), (2,27), (1,54), (1,216), (1,54), (1,216)
+]]
+
+c_s = sqrt(Rational(1,3))