From 3d355b66fe231837e0051cf289d8a0f72dec798c Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 13 Jun 2019 21:45:49 +0200 Subject: Further the separation between descriptor and lattice --- lid_driven_cavity.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lid_driven_cavity.py') 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), -- cgit v1.2.3