|
25 | 25 | "cell_type": "markdown", |
26 | 26 | "metadata": {}, |
27 | 27 | "source": [ |
| 28 | + "$$\n", |
28 | 29 | "\\begin{equation}\n", |
29 | 30 | "\\begin{split}\n", |
30 | 31 | "\\phi(x, y) \n", |
31 | 32 | "&= \\phi_{uniform\\ flow}(x, y) \\\\ \n", |
32 | 33 | "&+ \\phi_{source\\ sheet}(x, y) + \\phi_{vortex\\ sheet}(x, y)\n", |
33 | 34 | "\\end{split}\n", |
34 | | - "\\end{equation}" |
| 35 | + "\\end{equation}\n", |
| 36 | + "$$" |
35 | 37 | ] |
36 | 38 | }, |
37 | 39 | { |
|
45 | 47 | "cell_type": "markdown", |
46 | 48 | "metadata": {}, |
47 | 49 | "source": [ |
| 50 | + "$$\n", |
48 | 51 | "\\begin{equation}\n", |
49 | 52 | "\\begin{split}\n", |
50 | 53 | "\\phi(x, y) &= xU_{\\infty}\\cos(\\alpha) + yU_{\\infty}\\sin(\\alpha) \\\\\n", |
|
53 | 56 | "&-\n", |
54 | 57 | "\\frac{1}{2\\pi} \\int_{sheet} \\gamma(s)\\tan^{-1} \\frac{y-\\eta(s)}{x-\\xi(s)}ds\n", |
55 | 58 | "\\end{split}\n", |
56 | | - "\\end{equation}" |
| 59 | + "\\end{equation}\n", |
| 60 | + "$$" |
57 | 61 | ] |
58 | 62 | }, |
59 | 63 | { |
|
83 | 87 | "source": [ |
84 | 88 | "If we discretize the sheet into $N$ panels, re-write the above equation using discretized integral. Assume $l_j$ represents the length of the panel $j$. And so that\n", |
85 | 89 | "\n", |
| 90 | + "$$\n", |
86 | 91 | "\\begin{equation}\n", |
87 | 92 | "\\left\\{\n", |
88 | 93 | "\\begin{array}{l}\n", |
|
93 | 98 | "0\\le s \\le l_j\n", |
94 | 99 | "\\right.\n", |
95 | 100 | "\\end{equation}\n", |
| 101 | + "$$\n", |
96 | 102 | "\n", |
97 | 103 | "The following figure shows the panel $j$:\n", |
98 | 104 | "\n", |
99 | 105 | "<center> <img src=\"resources/Lesson11_Exercise_Fig.1.png\" width=360> </center>\n", |
100 | 106 | "\n", |
101 | | - "HINT: for example, consider the integral $\\int_0^L f(x) dx$, if we discretize the domain $0\\sim L$ into 3 panels, the integral can be writen as: \n", |
102 | | - "$$\\int_0^L f(x) dx = \\int_0^{L/3} f(x)dx+\\int_{L/3}^{2L/3} f(x)dx+\\int_{2L/3}^{L} f(x)dx \\\\= \n", |
103 | | - "\\sum_{j=1}^3 \\int_{l_j}f(x)dx$$" |
| 107 | + "HINT: for example, consider the integral $\\int_0^L f(x) dx$, if we discretize the domain $0\\sim L$ into 3 panels, the integral can be writen as:\n", |
| 108 | + "\n", |
| 109 | + "$$\n", |
| 110 | + "\\int_0^L f(x) dx = \\int_0^{L/3} f(x)dx+\\int_{L/3}^{2L/3} f(x)dx+\\int_{2L/3}^{L} f(x)dx \\\\\n", |
| 111 | + "= \\sum_{j=1}^3 \\int_{l_j}f(x)dx\n", |
| 112 | + "$$" |
104 | 113 | ] |
105 | 114 | }, |
106 | 115 | { |
|
159 | 168 | "cell_type": "markdown", |
160 | 169 | "metadata": {}, |
161 | 170 | "source": [ |
| 171 | + "$$\n", |
162 | 172 | "\\begin{equation}\n", |
163 | 173 | "\\begin{split}\n", |
164 | 174 | "U_n &= \\frac{\\partial \\phi}{\\partial \\vec{n}} \\\\\n", |
|
175 | 185 | "+\n", |
176 | 186 | "\\frac{\\partial \\phi}{\\partial y}n_y\n", |
177 | 187 | "\\end{split}\n", |
178 | | - "\\end{equation}" |
| 188 | + "\\end{equation}\n", |
| 189 | + "$$" |
179 | 190 | ] |
180 | 191 | }, |
181 | 192 | { |
|
189 | 200 | "cell_type": "markdown", |
190 | 201 | "metadata": {}, |
191 | 202 | "source": [ |
| 203 | + "$$\n", |
192 | 204 | "\\begin{equation}\n", |
193 | 205 | "\\left\\{\n", |
194 | 206 | "\\begin{array}{l}\n", |
195 | 207 | "U_n(x, y)=\\frac{\\partial \\phi}{\\partial x}(x, y) n_x(x, y)+\\frac{\\partial \\phi}{\\partial y}(x, y) n_y(x, y) \\\\\n", |
196 | 208 | "U_t(x, y)=\\frac{\\partial \\phi}{\\partial x}(x, y) t_x(x, y)+\\frac{\\partial \\phi}{\\partial y}(x, y) t_y(x, y)\n", |
197 | 209 | "\\end{array}\n", |
198 | 210 | "\\right.\n", |
199 | | - "\\end{equation}" |
| 211 | + "\\end{equation}\n", |
| 212 | + "$$" |
200 | 213 | ] |
201 | 214 | }, |
202 | 215 | { |
|
245 | 258 | "cell_type": "markdown", |
246 | 259 | "metadata": {}, |
247 | 260 | "source": [ |
| 261 | + "$$\n", |
248 | 262 | "\\begin{equation}\n", |
249 | 263 | "\\begin{split}\n", |
250 | 264 | "U_n(x_{c,i}, y_{c,i}) &= U_{n,i} \\\\\n", |
251 | | - "&=\n", |
252 | | - "b^n_i \n", |
253 | | - "+ \n", |
254 | | - "\\left[\\begin{matrix} A^n_{i1} && A^n_{i2} && ... && A^n_{iN}\\end{matrix}\\right]\\left[\\begin{matrix} \\sigma_1 \\\\ \\sigma_2 \\\\ \\vdots \\\\ \\sigma_N \\end{matrix}\\right]\n", |
255 | | - "+\n", |
256 | | - "\\left(\\sum_{j=1}^N B^n_{ij}\\right)\\gamma \\\\\n", |
257 | | - "&=\n", |
258 | | - "b^n_i \n", |
259 | | - "+ \n", |
260 | | - "\\left[\\begin{matrix} A^n_{i1} && A^n_{i2} && ... && A^n_{iN} && \\left(\\sum_{j=1}^N B^n_{ij}\\right) \\end{matrix}\\right]\\left[\\begin{matrix} \\sigma_1 \\\\ \\sigma_2 \\\\ \\vdots \\\\ \\sigma_N \\\\ \\gamma \\end{matrix}\\right]\n", |
| 265 | + "&= b^n_i + \\left[\\begin{matrix} A^n_{i1} && A^n_{i2} && ... && A^n_{iN}\\end{matrix}\\right]\\left[\\begin{matrix} \\sigma_1 \\\\ \\sigma_2 \\\\ \\vdots \\\\ \\sigma_N \\end{matrix}\\right] + \\left(\\sum_{j=1}^N B^n_{ij}\\right)\\gamma \\\\\n", |
| 266 | + "&= b^n_i + \\left[\\begin{matrix} A^n_{i1} && A^n_{i2} && ... && A^n_{iN} && \\left(\\sum_{j=1}^N B^n_{ij}\\right) \\end{matrix}\\right]\\left[\\begin{matrix} \\sigma_1 \\\\ \\sigma_2 \\\\ \\vdots \\\\ \\sigma_N \\\\ \\gamma \\end{matrix}\\right]\n", |
261 | 267 | "\\end{split}\n", |
262 | | - "\\end{equation}" |
| 268 | + "\\end{equation}\n", |
| 269 | + "$$" |
263 | 270 | ] |
264 | 271 | }, |
265 | 272 | { |
266 | 273 | "cell_type": "markdown", |
267 | 274 | "metadata": {}, |
268 | 275 | "source": [ |
| 276 | + "$$\n", |
269 | 277 | "\\begin{equation}\n", |
270 | 278 | "\\begin{split}\n", |
271 | 279 | "U_t(x_{c,i}, y_{c,i}) &= U_{t,i} \\\\\n", |
272 | | - "&=\n", |
273 | | - "b^t_i \n", |
274 | | - "+ \n", |
275 | | - "\\left[\\begin{matrix} A^t_{i1} && A^t_{i2} && ... && A^t_{iN}\\end{matrix}\\right]\\left[\\begin{matrix} \\sigma_1 \\\\ \\sigma_2 \\\\ \\vdots \\\\ \\sigma_N \\end{matrix}\\right]\n", |
276 | | - "+\n", |
277 | | - "\\left(\\sum_{j=1}^N B^t_{ij}\\right)\\gamma \\\\\n", |
278 | | - "&=\n", |
279 | | - "b^t_i \n", |
280 | | - "+ \n", |
281 | | - "\\left[\\begin{matrix} A^t_{i1} && A^t_{i2} && ... && A^t_{iN} && \\left(\\sum_{j=1}^N B^t_{ij}\\right) \\end{matrix}\\right]\\left[\\begin{matrix} \\sigma_1 \\\\ \\sigma_2 \\\\ \\vdots \\\\ \\sigma_N \\\\ \\gamma \\end{matrix}\\right]\n", |
| 280 | + "&= b^t_i + \\left[\\begin{matrix} A^t_{i1} && A^t_{i2} && ... && A^t_{iN}\\end{matrix}\\right]\\left[\\begin{matrix} \\sigma_1 \\\\ \\sigma_2 \\\\ \\vdots \\\\ \\sigma_N \\end{matrix}\\right] + \\left(\\sum_{j=1}^N B^t_{ij}\\right)\\gamma \\\\\n", |
| 281 | + "&= b^t_i + \\left[\\begin{matrix} A^t_{i1} && A^t_{i2} && ... && A^t_{iN} && \\left(\\sum_{j=1}^N B^t_{ij}\\right) \\end{matrix}\\right]\\left[\\begin{matrix} \\sigma_1 \\\\ \\sigma_2 \\\\ \\vdots \\\\ \\sigma_N \\\\ \\gamma \\end{matrix}\\right]\n", |
282 | 282 | "\\end{split}\n", |
283 | | - "\\end{equation}" |
| 283 | + "\\end{equation}\n", |
| 284 | + "$$" |
284 | 285 | ] |
285 | 286 | }, |
286 | 287 | { |
|
303 | 304 | "source": [ |
304 | 305 | "Given the fact that (from the Fig. 1) \n", |
305 | 306 | "\n", |
| 307 | + "$$\n", |
306 | 308 | "\\begin{equation}\n", |
307 | 309 | "\\left\\{\\begin{matrix} \\vec{n}_i=n_{x,i}\\vec{i}+n_{y,i}\\vec{j} = \\cos(\\beta_i)\\vec{i}+\\sin(\\beta_i)\\vec{j} \\\\ \\vec{t}_i=t_{x,i}\\vec{i}+t_{y,i}\\vec{j} = -\\sin(\\beta_i)\\vec{i}+\\cos(\\beta_i)\\vec{j} \\end{matrix}\\right.\n", |
308 | 310 | "\\end{equation}\n", |
| 311 | + "$$\n", |
309 | 312 | "\n", |
310 | 313 | "we have\n", |
311 | 314 | "\n", |
| 315 | + "$$\n", |
312 | 316 | "\\begin{equation}\n", |
313 | 317 | "\\left\\{\n", |
314 | 318 | "\\begin{matrix}\n", |
|
323 | 327 | "t_{y,i}=n_{x,i}\n", |
324 | 328 | "\\end{matrix}\n", |
325 | 329 | "\\right.\n", |
326 | | - "\\end{equation}" |
| 330 | + "\\end{equation}\n", |
| 331 | + "$$" |
327 | 332 | ] |
328 | 333 | }, |
329 | 334 | { |
|
395 | 400 | "source": [ |
396 | 401 | "In our problem, there are $N+1$ unknowns, that is, $\\sigma_1, \\sigma_2, ..., \\sigma_N, \\gamma$. We'll need $N+1$ linear equations to solve the unknowns. The first $N$ linear equations can be obtained from the non-penetration condition on the center of each panel. That is\n", |
397 | 402 | "\n", |
| 403 | + "$$\n", |
398 | 404 | "\\begin{equation}\n", |
399 | 405 | "\\begin{split}\n", |
400 | 406 | "U_{n,i} &= 0 \\\\\n", |
401 | | - "&=\n", |
402 | | - "b^n_i \n", |
403 | | - "+ \n", |
404 | | - "\\left[\\begin{matrix} A^n_{i1} && A^n_{i2} && ... && A^n_{iN} && \\left(\\sum_{j=1}^N B^n_{ij}\\right) \\end{matrix}\\right]\\left[\\begin{matrix} \\sigma_1 \\\\ \\sigma_2 \\\\ \\vdots \\\\ \\sigma_N \\\\ \\gamma \\end{matrix}\\right] \\\\\n", |
405 | | - "&,\\ \\ for\\ \n", |
406 | | - "i=1\\sim N\n", |
| 407 | + "&= b^n_i + \\left[\\begin{matrix} A^n_{i1} && A^n_{i2} && ... && A^n_{iN} && \\left(\\sum_{j=1}^N B^n_{ij}\\right) \\end{matrix}\\right]\\left[\\begin{matrix} \\sigma_1 \\\\ \\sigma_2 \\\\ \\vdots \\\\ \\sigma_N \\\\ \\gamma \\end{matrix}\\right] \\\\\n", |
| 408 | + "&,\\ \\ for\\ i=1\\sim N\n", |
407 | 409 | "\\end{split}\n", |
408 | 410 | "\\end{equation}\n", |
| 411 | + "$$\n", |
409 | 412 | "\n", |
410 | 413 | "or\n", |
411 | 414 | "\n", |
| 415 | + "$$\n", |
412 | 416 | "\\begin{equation}\n", |
413 | 417 | "\\begin{split}\n", |
414 | | - "&\\left[\\begin{matrix} A^n_{i1} && A^n_{i2} && ... && A^n_{iN} && \\left(\\sum_{j=1}^N B^n_{ij}\\right) \\end{matrix}\\right]\\left[\\begin{matrix} \\sigma_1 \\\\ \\sigma_2 \\\\ \\vdots \\\\ \\sigma_N \\\\ \\gamma \\end{matrix}\\right]\n", |
415 | | - "=-b^n_i \\\\\n", |
416 | | - "&,\\ \\ for\\ \n", |
417 | | - "i=1\\sim N\n", |
| 418 | + "&\\left[\\begin{matrix} A^n_{i1} && A^n_{i2} && ... && A^n_{iN} && \\left(\\sum_{j=1}^N B^n_{ij}\\right) \\end{matrix}\\right]\\left[\\begin{matrix} \\sigma_1 \\\\ \\sigma_2 \\\\ \\vdots \\\\ \\sigma_N \\\\ \\gamma \\end{matrix}\\right] =-b^n_i \\\\\n", |
| 419 | + "&,\\ \\ for\\ i=1\\sim N\n", |
418 | 420 | "\\end{split}\n", |
419 | | - "\\end{equation}" |
| 421 | + "\\end{equation}\n", |
| 422 | + "$$" |
420 | 423 | ] |
421 | 424 | }, |
422 | 425 | { |
|
425 | 428 | "source": [ |
426 | 429 | "For the last equation, we use Kutta-condition to obtain that.\n", |
427 | 430 | "\n", |
| 431 | + "$$\n", |
428 | 432 | "\\begin{equation}\n", |
429 | 433 | "U_{t,1} = - U_{t,N}\n", |
430 | | - "\\end{equation}" |
| 434 | + "\\end{equation}\n", |
| 435 | + "$$" |
431 | 436 | ] |
432 | 437 | }, |
433 | 438 | { |
|
574 | 579 | " margin-bottom: 0.5em;\n", |
575 | 580 | " margin-top: 0.5em;\n", |
576 | 581 | " display: block;\n", |
577 | | - "}\t\n", |
| 582 | + "}\n", |
| 583 | + "\n", |
578 | 584 | ".text_cell_render h2 {\n", |
579 | 585 | " font-family: 'Fenix', serif;\n", |
580 | 586 | " font-size: 22pt;\n", |
581 | 587 | " line-height: 100%;\n", |
582 | 588 | " margin-bottom: 0.1em;\n", |
583 | 589 | " margin-top: 0.3em;\n", |
584 | 590 | " display: block;\n", |
585 | | - "}\t\n", |
| 591 | + "}\n", |
586 | 592 | "\n", |
587 | 593 | ".text_cell_render h3 {\n", |
588 | 594 | " font-family: 'Fenix', serif;\n", |
589 | 595 | " margin-top:12px;\n", |
590 | | - "\tfont-size: 16pt;\n", |
| 596 | + " font-size: 16pt;\n", |
591 | 597 | " margin-bottom: 3px;\n", |
592 | 598 | " font-style: regular;\n", |
593 | 599 | "}\n", |
|
622 | 628 | " margin-top: 1px;\n", |
623 | 629 | "}\n", |
624 | 630 | "\n", |
625 | | - " .CodeMirror{\n", |
626 | | - " font-family: \"Source Code Pro\";\n", |
627 | | - "\t\t\tfont-size: 90%;\n", |
| 631 | + ".CodeMirror{\n", |
| 632 | + " font-family: \"Source Code Pro\";\n", |
| 633 | + " font-size: 90%;\n", |
| 634 | + "}\n", |
| 635 | + "\n", |
| 636 | + ".warning{\n", |
| 637 | + " color: rgb( 240, 20, 20 )\n", |
628 | 638 | " }\n", |
629 | | - "/* .prompt{\n", |
630 | | - " display: None;\n", |
631 | | - " }*/\n", |
632 | | - "\t\n", |
633 | | - " \n", |
634 | | - " .warning{\n", |
635 | | - " color: rgb( 240, 20, 20 )\n", |
636 | | - " } \n", |
637 | 639 | "</style>\n", |
| 640 | + "\n", |
638 | 641 | "<script>\n", |
639 | 642 | " MathJax.Hub.Config({\n", |
640 | 643 | " TeX: {\n", |
641 | 644 | " extensions: [\"AMSmath.js\"], \n", |
642 | 645 | " equationNumbers: { autoNumber: \"AMS\", useLabelIds: true}\n", |
643 | 646 | " },\n", |
644 | | - " tex2jax: {\n", |
645 | | - " inlineMath: [ ['$','$'], [\"\\\\(\",\"\\\\)\"] ],\n", |
646 | | - " displayMath: [ ['$$','$$'], [\"\\\\[\",\"\\\\]\"] ]\n", |
647 | | - " },\n", |
648 | | - " displayAlign: 'center', // Change this to 'center' to center equations.\n", |
649 | | - " \"HTML-CSS\": {\n", |
650 | | - " styles: {'.MathJax_Display': {\"margin\": 4}}\n", |
651 | | - " }\n", |
652 | | - " });\n", |
| 647 | + " tex2jax: {\n", |
| 648 | + " inlineMath: [ ['$','$'], [\"\\\\(\",\"\\\\)\"] ],\n", |
| 649 | + " displayMath: [ ['$$','$$'], [\"\\\\[\",\"\\\\]\"] ]\n", |
| 650 | + " },\n", |
| 651 | + " displayAlign: 'center', // Change this to 'center' to center equations.\n", |
| 652 | + " \"HTML-CSS\": {\n", |
| 653 | + " styles: {'.MathJax_Display': {\"margin\": 4}}\n", |
| 654 | + " }\n", |
| 655 | + " });\n", |
| 656 | + " MathJax.Hub.Queue(\n", |
| 657 | + " [\"resetEquationNumbers\", MathJax.InputJax.TeX],\n", |
| 658 | + " [\"PreProcess\", MathJax.Hub],\n", |
| 659 | + " [\"Reprocess\", MathJax.Hub]\n", |
| 660 | + " );\n", |
653 | 661 | "</script>\n" |
654 | 662 | ], |
655 | 663 | "text/plain": [ |
|
686 | 694 | "name": "python", |
687 | 695 | "nbconvert_exporter": "python", |
688 | 696 | "pygments_lexer": "ipython3", |
689 | | - "version": "3.6.3" |
| 697 | + "version": "3.6.1" |
690 | 698 | } |
691 | 699 | }, |
692 | 700 | "nbformat": 4, |
|
0 commit comments