Skip to content

Fixing Existing Chapters of the Devito Book #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
971 changes: 404 additions & 567 deletions fdm-devito-notebooks/01_vib/vib_undamped.ipynb

Large diffs are not rendered by default.

301 changes: 159 additions & 142 deletions fdm-jupyter-book/notebooks/01_vib/vib_undamped.ipynb

Large diffs are not rendered by default.

48 changes: 22 additions & 26 deletions fdm-jupyter-book/notebooks/02_wave/wave1D_fd1.ipynb

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions fdm-jupyter-book/notebooks/03_diffu/diffu_rw.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -252,7 +252,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -298,7 +298,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -317,7 +317,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -326,7 +326,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -364,7 +364,7 @@
},
{
"cell_type": "code",
"execution_count": 259,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -683,7 +683,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -765,7 +765,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -790,15 +790,15 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 9,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Operator `Kernel` run in 0.01 s\n",
"Operator `Kernel` run in 0.01 s\n"
"Operator `Kernel` ran in 0.01 s\n",
"Operator `Kernel` ran in 0.01 s\n"
]
},
{
Expand Down Expand Up @@ -893,7 +893,7 @@
},
{
"cell_type": "code",
"execution_count": 239,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -1097,7 +1097,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -1158,7 +1158,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -1190,7 +1190,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -1239,7 +1239,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -1301,9 +1301,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Devito",
"language": "python",
"name": "python3"
"name": "devito"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -1315,7 +1315,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.2"
"version": "3.10.6"
}
},
"nbformat": 4,
Expand Down
46 changes: 15 additions & 31 deletions fdm-jupyter-book/notebooks/04_advec/advec.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -307,7 +307,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -426,7 +426,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -468,12 +468,12 @@
" dt = 0.001\n",
" C = 1\n",
" T = 1\n",
" solver(I=I, U0=U0, v=1.0, L=L, dt=dt, C=C, T=T,\n",
" solver_FECS(I=I, U0=U0, v=1.0, L=L, dt=dt, C=C, T=T,\n",
" user_action=plot)\n",
" plt.legend(legends, loc='lower left')\n",
" plt.savefig('tmp.png'); plt.savefig('tmp.pdf')\n",
" plt.axis([0, L, -0.75, 1.1])\n",
" plt.show()\n"
" plt.show()"
]
},
{
Expand Down Expand Up @@ -1186,7 +1186,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -1304,7 +1304,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -1576,7 +1576,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand All @@ -1603,7 +1603,7 @@
"<IPython.core.display.HTML object>"
]
},
"execution_count": 7,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -1643,7 +1643,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand All @@ -1670,7 +1670,7 @@
"<IPython.core.display.HTML object>"
]
},
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -2382,7 +2382,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -2885,22 +2885,6 @@
"\n",
"<!-- --- end exercise --- -->"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Bibliography\n",
"\n",
"<div class=\"cite2c-biblio\"></div>"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down Expand Up @@ -2941,9 +2925,9 @@
}
},
"kernelspec": {
"display_name": "Python 3",
"display_name": "Devito",
"language": "python",
"name": "python3"
"name": "devito"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -2955,7 +2939,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.2"
"version": "3.10.6"
}
},
"nbformat": 4,
Expand Down