|
124 | 124 | "source": [
|
125 | 125 | "using PotentialFlow\n",
|
126 | 126 | "using Plots\n",
|
127 |
| - "\n", |
| 127 | + "using Compat\n", |
128 | 128 | "using Interact\n",
|
129 | 129 | "\n",
|
130 | 130 | "clibrary(:colorbrewer);\n",
|
|
749 | 749 | ],
|
750 | 750 | "source": [
|
751 | 751 | "freestream = Freestream(1.0);\n",
|
752 |
| - "ψ_levels = collect(linspace(-5, 5, 31))\n", |
753 |
| - "X = Y = linspace(-3.5, 3.5, 100)\n", |
| 752 | + "ψ_levels = collect(Compat.linspace(-5, 5, 31))\n", |
| 753 | + "X = Y = Compat.linspace(-3.5, 3.5, 100)\n", |
754 | 754 | "streamlines(X, Y, freestream, levels = ψ_levels, color = streamline_colors)\n",
|
755 | 755 | "plot!(cos.(0:0.1:2π), sin.(0:0.1:2π), linestyle = :dash)"
|
756 | 756 | ]
|
|
2171 | 2171 | }
|
2172 | 2172 | ],
|
2173 | 2173 | "source": [
|
2174 |
| - "@manipulate for Δy in linspace(0, 1, 10)\n", |
| 2174 | + "@manipulate for Δy in Compat.linspace(0, 1, 10)\n", |
2175 | 2175 | "point = Vortex.Point.(0.5Δy*[im, -im], [-2π, 2π])\n",
|
2176 | 2176 | "streamlines(X, Y, (point, freestream), levels = ψ_levels, color = streamline_colors)\n",
|
2177 | 2177 | "plot!(cos.(0:0.1:2π), sin.(0:0.1:2π), linestyle = :dash)\n",
|
|
2889 | 2889 | }
|
2890 | 2890 | ],
|
2891 | 2891 | "source": [
|
2892 |
| - "@manipulate for Δy = slider(linspace(0, 2, 10), value = 1.0)\n", |
| 2892 | + "@manipulate for Δy = slider(Compat.linspace(0, 2, 10), value = 1.0)\n", |
2893 | 2893 | "points = Vortex.Point.(0.5Δy*[im, -im], [-2π, 2π]./Δy)\n",
|
2894 | 2894 | "streamlines(X, Y, (points, freestream), levels = ψ_levels, color = streamline_colors)\n",
|
2895 | 2895 | "plot!(cos.(0:0.1:2π), sin.(0:0.1:2π), linestyle = :dash)\n",
|
|
4116 | 4116 | "source": [
|
4117 | 4117 | "Γ₁ = 1.0\n",
|
4118 | 4118 | "zs = [1 + im, -1 + im, -1 - im, 1 - im]\n",
|
4119 |
| - "@manipulate for Γ₂ in linspace(-Γ₁, Γ₁, 51),\n", |
4120 |
| - " Γ₃ in linspace(-Γ₁, Γ₁, 51),\n", |
4121 |
| - " Γ₄ in linspace(-Γ₁, Γ₁, 51)\n", |
| 4119 | + "@manipulate for Γ₂ in Compat.linspace(-Γ₁, Γ₁, 51),\n", |
| 4120 | + " Γ₃ in Compat.linspace(-Γ₁, Γ₁, 51),\n", |
| 4121 | + " Γ₄ in Compat.linspace(-Γ₁, Γ₁, 51)\n", |
4122 | 4122 | " points = Vortex.Point.(zs, [Γ₁, Γ₂, Γ₃, Γ₄])\n",
|
4123 | 4123 | " streamlines(X, Y, points, color = streamline_colors)\n",
|
4124 | 4124 | " plot!(points, markersize = 10, color = :RdBu)\n",
|
|
8514 | 8514 | }
|
8515 | 8515 | ],
|
8516 | 8516 | "source": [
|
8517 |
| - "@manipulate for x in linspace(-2, 2, 21)\n", |
| 8517 | + "@manipulate for x in Compat.linspace(-2, 2, 21)\n", |
8518 | 8518 | "point = Vortex.Point(x + 1.2im, 10)\n",
|
8519 | 8519 | "image = Vortex.Point(conj(1/point.z), -10)\n",
|
8520 | 8520 | "streamlines(X, Y, (freestream, PotentialFlow.Doublets.Doublet(0.0im, π), point, image), levels = ψ_levels, color = streamline_colors)\n",
|
|
8526 | 8526 | "metadata": {
|
8527 | 8527 | "celltoolbar": "Slideshow",
|
8528 | 8528 | "kernelspec": {
|
8529 |
| - "display_name": "Julia 0.6.0-pre.beta", |
| 8529 | + "display_name": "Julia 0.6.3-pre", |
8530 | 8530 | "language": "julia",
|
8531 | 8531 | "name": "julia-0.6"
|
8532 | 8532 | },
|
|
0 commit comments