Skip to content

Commit

Permalink
Release check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Satoki TSUJINO committed Apr 2, 2024
1 parent 7fbe152 commit 85f9dec
Show file tree
Hide file tree
Showing 6 changed files with 2,061 additions and 49 deletions.
704 changes: 704 additions & 0 deletions Lilly1966/.ipynb_checkpoints/OSE_solve-checkpoint.ipynb

Large diffs are not rendered by default.

602 changes: 602 additions & 0 deletions Lilly1966/.ipynb_checkpoints/OSE_solve_Orszag1971-checkpoint.ipynb

Large diffs are not rendered by default.

731 changes: 731 additions & 0 deletions Lilly1966/.ipynb_checkpoints/OSE_solve_finite-checkpoint.ipynb

Large diffs are not rendered by default.

65 changes: 20 additions & 45 deletions Lilly1966/OSE_solve.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": 3,
"id": "7e7d6392",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -614,58 +614,33 @@
"Dcal = F.α ./ F.β\n",
"for i in 1:Ntot\n",
" println(\"Schur(Eig): \", Dcal[i])\n",
"end\n",
"\n"
"end\n"
]
},
{
"cell_type": "code",
"execution_count": 35,
"id": "1255c473",
"execution_count": 4,
"id": "d6476cfa",
"metadata": {},
"outputs": [
{
"data": {
"text/latex": [
"The analogue of IPython's \\texttt{\\%matplotlib} in Julia is to use the \\href{https://github.com/stevengj/PyPlot.jl}{PyPlot package}, which gives a Julia interface to Matplotlib including inline plots in IJulia notebooks. (The equivalent of \\texttt{numpy} is already loaded by default in Julia.)\n",
"\n",
"Given PyPlot, the analogue of \\texttt{\\%matplotlib inline} is \\texttt{using PyPlot}, since PyPlot defaults to inline plots in IJulia.\n",
"\n",
"To enable separate GUI windows in PyPlot, analogous to \\texttt{\\%matplotlib}, do \\texttt{using PyPlot; pygui(true)}. To specify a particular gui backend, analogous to \\texttt{\\%matplotlib gui}, you can either do \\texttt{using PyPlot; pygui(:gui); using PyPlot; pygui(true)} (where \\texttt{gui} is \\texttt{wx}, \\texttt{qt}, \\texttt{tk}, or \\texttt{gtk}), or you can do \\texttt{ENV[\"MPLBACKEND\"]=backend; using PyPlot; pygui(true)} (where \\texttt{backend} is the name of a Matplotlib backend, like \\texttt{tkagg}).\n",
"\n",
"For more options, see the PyPlot documentation.\n",
"\n"
],
"text/markdown": [
"The analogue of IPython's `%matplotlib` in Julia is to use the [PyPlot package](https://github.com/stevengj/PyPlot.jl), which gives a Julia interface to Matplotlib including inline plots in IJulia notebooks. (The equivalent of `numpy` is already loaded by default in Julia.)\n",
"\n",
"Given PyPlot, the analogue of `%matplotlib inline` is `using PyPlot`, since PyPlot defaults to inline plots in IJulia.\n",
"\n",
"To enable separate GUI windows in PyPlot, analogous to `%matplotlib`, do `using PyPlot; pygui(true)`. To specify a particular gui backend, analogous to `%matplotlib gui`, you can either do `using PyPlot; pygui(:gui); using PyPlot; pygui(true)` (where `gui` is `wx`, `qt`, `tk`, or `gtk`), or you can do `ENV[\"MPLBACKEND\"]=backend; using PyPlot; pygui(true)` (where `backend` is the name of a Matplotlib backend, like `tkagg`).\n",
"\n",
"For more options, see the PyPlot documentation.\n"
],
"text/plain": [
" The analogue of IPython's \u001b[36m%matplotlib\u001b[39m in Julia is to use the PyPlot package\n",
" (https://github.com/stevengj/PyPlot.jl), which gives a Julia interface to\n",
" Matplotlib including inline plots in IJulia notebooks. (The equivalent of\n",
" \u001b[36mnumpy\u001b[39m is already loaded by default in Julia.)\n",
"\n",
" Given PyPlot, the analogue of \u001b[36m%matplotlib inline\u001b[39m is \u001b[36musing PyPlot\u001b[39m, since\n",
" PyPlot defaults to inline plots in IJulia.\n",
"\n",
" To enable separate GUI windows in PyPlot, analogous to \u001b[36m%matplotlib\u001b[39m, do \u001b[36musing\n",
" PyPlot; pygui(true)\u001b[39m. To specify a particular gui backend, analogous to\n",
" \u001b[36m%matplotlib gui\u001b[39m, you can either do \u001b[36musing PyPlot; pygui(:gui); using PyPlot;\n",
" pygui(true)\u001b[39m (where \u001b[36mgui\u001b[39m is \u001b[36mwx\u001b[39m, \u001b[36mqt\u001b[39m, \u001b[36mtk\u001b[39m, or \u001b[36mgtk\u001b[39m), or you can do\n",
" \u001b[36mENV[\"MPLBACKEND\"]=backend; using PyPlot; pygui(true)\u001b[39m (where \u001b[36mbackend\u001b[39m is the\n",
" name of a Matplotlib backend, like \u001b[36mtkagg\u001b[39m).\n",
"\n",
" For more options, see the PyPlot documentation."
"Figure(PyObject <Figure size 700x500 with 1 Axes>)"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
"Figure(PyObject <Figure size 700x500 with 1 Axes>)"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
Expand Down Expand Up @@ -701,17 +676,17 @@
"fig.canvas.draw()\n",
"gcf() # Needed for IJulia to plot inline\n",
"\n",
"ttext = \"OSE spectra: Re = $(Re), α = $(α)\"\n",
"title(ttext)\n",
"#ttext = \"OSE spectra: Re = $(Re), α = $(α)\"\n",
"#title(ttext)\n",
"\n",
"fname = \"test.png\"\n",
"savefig(fname)"
"#fname = \"test.png\"\n",
"#savefig(fname)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "026799fc",
"id": "529487ab",
"metadata": {},
"outputs": [],
"source": []
Expand Down
6 changes: 3 additions & 3 deletions Lilly1966/OSE_solve_Orszag1971.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -586,15 +586,15 @@
],
"metadata": {
"kernelspec": {
"display_name": "Julia 1.4.1",
"display_name": "Julia 1.6.1",
"language": "julia",
"name": "julia-1.4"
"name": "julia-1.6"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.4.1"
"version": "1.6.1"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion Lilly1966/OSE_solve_finite.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@
{
"data": {
"text/plain": [
"20×20×20 Array{Complex{Float64},3}:\n",
"20×20×20 Array{ComplexF64, 3}:\n",
"[:, :, 1] =\n",
" 0.864005+0.749363im 0.804944+0.14258im … -0.866025-0.0236016im\n",
" 0.864131-0.0178902im 0.803465-0.0170507im -0.869369-0.0216414im\n",
Expand Down

0 comments on commit 85f9dec

Please sign in to comment.