From 182af68a4a199a4b3aaa9568619561814558b072 Mon Sep 17 00:00:00 2001 From: "Lorena A. Barba" Date: Sun, 11 Nov 2018 19:27:39 -0500 Subject: [PATCH] fix #57 : typo in BC comment --- lessons/14_Step_11.ipynb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lessons/14_Step_11.ipynb b/lessons/14_Step_11.ipynb index 7dcbe833..81ce5f30 100644 --- a/lessons/14_Step_11.ipynb +++ b/lessons/14_Step_11.ipynb @@ -304,10 +304,10 @@ " dx**2 * dy**2 / (2 * (dx**2 + dy**2)) * \n", " b[1:-1,1:-1])\n", "\n", - " p[:, -1] = p[:, -2] ##dp/dy = 0 at x = 2\n", - " p[0, :] = p[1, :] ##dp/dy = 0 at y = 0\n", - " p[:, 0] = p[:, 1] ##dp/dx = 0 at x = 0\n", - " p[-1, :] = 0 ##p = 0 at y = 2\n", + " p[:, -1] = p[:, -2] # dp/dx = 0 at x = 2\n", + " p[0, :] = p[1, :] # dp/dy = 0 at y = 0\n", + " p[:, 0] = p[:, 1] # dp/dx = 0 at x = 0\n", + " p[-1, :] = 0 # p = 0 at y = 2\n", " \n", " return p" ] @@ -359,13 +359,13 @@ " dt / dy**2 *\n", " (vn[2:, 1:-1] - 2 * vn[1:-1, 1:-1] + vn[0:-2, 1:-1])))\n", "\n", - " u[0, :] = 0\n", - " u[:, 0] = 0\n", + " u[0, :] = 0\n", + " u[:, 0] = 0\n", " u[:, -1] = 0\n", - " u[-1, :] = 1 #set velocity on cavity lid equal to 1\n", - " v[0, :] = 0\n", - " v[-1, :]=0\n", - " v[:, 0] = 0\n", + " u[-1, :] = 1 # set velocity on cavity lid equal to 1\n", + " v[0, :] = 0\n", + " v[-1, :] = 0\n", + " v[:, 0] = 0\n", " v[:, -1] = 0\n", " \n", " \n", @@ -660,7 +660,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.1" + "version": "3.6.5" } }, "nbformat": 4,