Skip to content

Commit

Permalink
fix #57 : typo in BC comment
Browse files Browse the repository at this point in the history
  • Loading branch information
labarba committed Nov 12, 2018
1 parent 5eb3231 commit 182af68
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lessons/14_Step_11.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -660,7 +660,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.1"
"version": "3.6.5"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 182af68

Please sign in to comment.