aboutsummaryrefslogtreecommitdiff
path: root/lid_driven_cavity.py
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-06-13 21:45:49 +0200
committerAdrian Kummerlaender2019-06-13 21:55:18 +0200
commit3d355b66fe231837e0051cf289d8a0f72dec798c (patch)
treed7b41d4373e664a97feea8b8fe127fa8085207c7 /lid_driven_cavity.py
parent61cd3b6bc53c151863bd99fb2a03b29157a876ca (diff)
downloadsymlbm_playground-3d355b66fe231837e0051cf289d8a0f72dec798c.tar
symlbm_playground-3d355b66fe231837e0051cf289d8a0f72dec798c.tar.gz
symlbm_playground-3d355b66fe231837e0051cf289d8a0f72dec798c.tar.bz2
symlbm_playground-3d355b66fe231837e0051cf289d8a0f72dec798c.tar.lz
symlbm_playground-3d355b66fe231837e0051cf289d8a0f72dec798c.tar.xz
symlbm_playground-3d355b66fe231837e0051cf289d8a0f72dec798c.tar.zst
symlbm_playground-3d355b66fe231837e0051cf289d8a0f72dec798c.zip
Further the separation between descriptor and lattice
Diffstat (limited to 'lid_driven_cavity.py')
-rw-r--r--lid_driven_cavity.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lid_driven_cavity.py b/lid_driven_cavity.py
index a4de67d..2bfdb7a 100644
--- a/lid_driven_cavity.py
+++ b/lid_driven_cavity.py
@@ -5,7 +5,7 @@ import matplotlib
import matplotlib.pyplot as plt
matplotlib.use('AGG')
-from D2Q9 import Lattice
+from lbm import Lattice
import symbolic.D2Q9 as D2Q9
@@ -52,6 +52,7 @@ moments = []
print("Initializing simulation...\n")
lattice = Lattice(
+ descriptor = D2Q9,
nX = 256, nY = 256,
geometry = cavity,
moments = D2Q9.moments(optimize = False),