From 907f19cec1a1d072b3de844a0ab835c3a52bd5b8 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 10 Dec 2021 14:44:40 +0100 Subject: [PATCH] Minor restructuration --- .../SinglePhase/SinglePhase_2DWallHeatedChannel_ChangeSect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CoreFlows/examples/Python/SinglePhase/SinglePhase_2DWallHeatedChannel_ChangeSect.py b/CoreFlows/examples/Python/SinglePhase/SinglePhase_2DWallHeatedChannel_ChangeSect.py index 9097c8a..595d967 100755 --- a/CoreFlows/examples/Python/SinglePhase/SinglePhase_2DWallHeatedChannel_ChangeSect.py +++ b/CoreFlows/examples/Python/SinglePhase/SinglePhase_2DWallHeatedChannel_ChangeSect.py @@ -27,11 +27,11 @@ def SinglePhase_2DWallHeatedChannel_ChangeSect(): #taille d'une cellule dx = (xsup-xinf)/nx dy = (ysup-yinf)/ny; - for i in range(ny/2): + for i in range(ny%2): M.setGroupAtFaceByCoords((xsup-xinf)/4,(ysup-yinf)/4+(i+0.5)*dy,0,eps,"Wall");#Paroi verticale intérieure gauche M.setGroupAtFaceByCoords((xsup-xinf)*3/4,(ysup-yinf)/4+(i+0.5)*dy,0,eps,"Wall");#Paroi verticale intérieure droitee - for i in range(nx/4): + for i in range(nx%4): M.setGroupAtFaceByCoords((i+0.5)*dx,(ysup-yinf)/4,0,eps,"Wall");#paroi horizontale en bas à gauche M.setGroupAtFaceByCoords((i+0.5)*dx,(ysup-yinf)*3/4,0,eps,"Wall");#paroi horizontale en haut à gauche M.setGroupAtFaceByCoords((xsup-xinf)*3/4+(i+0.5)*dx,(ysup-yinf)/4,0,eps,"Wall");#paroi horizontale en bas à droite -- 2.39.2