Skip to content

Commit a847052

Browse files
Merge pull request #2639 from devitocodes/JDBetteridge/fix_online_notebook_rendering
Clean notebook metadata
2 parents 11797b0 + 30b1eb6 commit a847052

35 files changed

Lines changed: 8043 additions & 9239 deletions

examples/cfd/01_convection.ipynb

Lines changed: 8 additions & 17 deletions
Large diffs are not rendered by default.

examples/cfd/01_convection_revisited.ipynb

Lines changed: 9 additions & 20 deletions
Large diffs are not rendered by default.

examples/cfd/02_convection_nonlinear.ipynb

Lines changed: 7 additions & 11 deletions
Large diffs are not rendered by default.

examples/cfd/03_diffusion.ipynb

Lines changed: 93 additions & 80 deletions
Large diffs are not rendered by default.

examples/cfd/03_diffusion_nonuniform.ipynb

Lines changed: 71 additions & 70 deletions
Large diffs are not rendered by default.

examples/cfd/04_burgers.ipynb

Lines changed: 24 additions & 32 deletions
Large diffs are not rendered by default.

examples/cfd/05_laplace.ipynb

Lines changed: 17 additions & 33 deletions
Large diffs are not rendered by default.

examples/cfd/06_poisson.ipynb

Lines changed: 16 additions & 26 deletions
Large diffs are not rendered by default.

examples/cfd/07_cavity_flow.ipynb

Lines changed: 14 additions & 24 deletions
Large diffs are not rendered by default.

examples/cfd/08_shallow_water_equation.ipynb

Lines changed: 41 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "637d7016-f6fc-40d1-a28d-2afa6fb50494",
5+
"id": "0",
66
"metadata": {},
77
"source": [
88
"# 2D Shallow Water Equations 🌊\n",
@@ -16,7 +16,7 @@
1616
},
1717
{
1818
"cell_type": "markdown",
19-
"id": "e8035395-5fb0-4d9f-b8cd-b2585c9a9aec",
19+
"id": "1",
2020
"metadata": {},
2121
"source": [
2222
"## Governing Equations\n",
@@ -65,7 +65,7 @@
6565
},
6666
{
6767
"cell_type": "markdown",
68-
"id": "f93f5cf1-7a65-49a4-82b6-0940c9ab44d0",
68+
"id": "2",
6969
"metadata": {},
7070
"source": [
7171
"## Operator implementation\n",
@@ -76,7 +76,7 @@
7676
{
7777
"cell_type": "code",
7878
"execution_count": 1,
79-
"id": "23c0a5bd-d332-46ba-a123-2f2dcc7a4a9b",
79+
"id": "3",
8080
"metadata": {},
8181
"outputs": [],
8282
"source": [
@@ -138,7 +138,7 @@
138138
},
139139
{
140140
"cell_type": "markdown",
141-
"id": "eadd14a7-e8c5-411c-8847-00fb9f72380b",
141+
"id": "4",
142142
"metadata": {},
143143
"source": [
144144
"The following function transforms the saved wavefield snapshots and transform them into a video compatible with jupyter notebook."
@@ -147,7 +147,7 @@
147147
{
148148
"cell_type": "code",
149149
"execution_count": 2,
150-
"id": "d55ba615-2aa8-4e09-a16d-8c3eb84eade9",
150+
"id": "5",
151151
"metadata": {},
152152
"outputs": [],
153153
"source": [
@@ -179,7 +179,7 @@
179179
{
180180
"cell_type": "code",
181181
"execution_count": 3,
182-
"id": "7c2913ce",
182+
"id": "6",
183183
"metadata": {},
184184
"outputs": [],
185185
"source": [
@@ -195,7 +195,7 @@
195195
},
196196
{
197197
"cell_type": "markdown",
198-
"id": "32ba2ef5-9e17-4668-ad81-02d85a6b66dd",
198+
"id": "7",
199199
"metadata": {},
200200
"source": [
201201
"## Example I: Tsunami in ocean with constant depth\n",
@@ -221,7 +221,7 @@
221221
{
222222
"cell_type": "code",
223223
"execution_count": 4,
224-
"id": "9b704039-286f-4cb7-9e5d-465584c3744a",
224+
"id": "8",
225225
"metadata": {},
226226
"outputs": [
227227
{
@@ -271,10 +271,8 @@
271271
{
272272
"cell_type": "code",
273273
"execution_count": 5,
274-
"id": "a1790290-c565-4220-a1d5-c5d32a387db3",
275-
"metadata": {
276-
"scrolled": true
277-
},
274+
"id": "9",
275+
"metadata": {},
278276
"outputs": [
279277
{
280278
"name": "stdout",
@@ -341,7 +339,7 @@
341339
{
342340
"cell_type": "code",
343341
"execution_count": 6,
344-
"id": "c5fff152",
342+
"id": "10",
345343
"metadata": {},
346344
"outputs": [
347345
{
@@ -1774,7 +1772,7 @@
17741772
},
17751773
{
17761774
"cell_type": "markdown",
1777-
"id": "2b719339-5442-4caf-8682-29045758c7e6",
1775+
"id": "11",
17781776
"metadata": {},
17791777
"source": [
17801778
"Let's take a look on what the code looks like"
@@ -1783,7 +1781,7 @@
17831781
{
17841782
"cell_type": "code",
17851783
"execution_count": 7,
1786-
"id": "d27a6e45-3009-4bd7-841b-14783312fadb",
1784+
"id": "12",
17871785
"metadata": {},
17881786
"outputs": [],
17891787
"source": [
@@ -1793,7 +1791,7 @@
17931791
},
17941792
{
17951793
"cell_type": "markdown",
1796-
"id": "9a447c4b-9bc0-450d-af34-ec5f5eaf6b66",
1794+
"id": "13",
17971795
"metadata": {},
17981796
"source": [
17991797
"## Example II: Two Tsunamis in ocean with constant depth\n",
@@ -1804,7 +1802,7 @@
18041802
{
18051803
"cell_type": "code",
18061804
"execution_count": 8,
1807-
"id": "8c71df64-a160-44ec-8bf1-bc6eef334919",
1805+
"id": "14",
18081806
"metadata": {},
18091807
"outputs": [],
18101808
"source": [
@@ -1829,7 +1827,7 @@
18291827
{
18301828
"cell_type": "code",
18311829
"execution_count": 9,
1832-
"id": "599ada28-8ff4-49d2-865b-f1c37814913a",
1830+
"id": "15",
18331831
"metadata": {},
18341832
"outputs": [
18351833
{
@@ -1888,7 +1886,7 @@
18881886
{
18891887
"cell_type": "code",
18901888
"execution_count": 10,
1891-
"id": "195e4fa1",
1889+
"id": "16",
18921890
"metadata": {},
18931891
"outputs": [
18941892
{
@@ -3907,7 +3905,7 @@
39073905
},
39083906
{
39093907
"cell_type": "markdown",
3910-
"id": "c8edc6c1-9f2f-40e0-b042-005ce38edc56",
3908+
"id": "17",
39113909
"metadata": {},
39123910
"source": [
39133911
"## Example III: Tsunami in an ocean with 1D $\\tanh$ depth variation\n",
@@ -3918,7 +3916,7 @@
39183916
{
39193917
"cell_type": "code",
39203918
"execution_count": 11,
3921-
"id": "66379acd-139c-4ac9-82eb-0aed1a1611d9",
3919+
"id": "18",
39223920
"metadata": {},
39233921
"outputs": [],
39243922
"source": [
@@ -3941,7 +3939,7 @@
39413939
},
39423940
{
39433941
"cell_type": "markdown",
3944-
"id": "4ac035d5",
3942+
"id": "19",
39453943
"metadata": {},
39463944
"source": [
39473945
"Let's take a look into how this depth profile $h$ looks in the plot below."
@@ -3950,7 +3948,7 @@
39503948
{
39513949
"cell_type": "code",
39523950
"execution_count": 12,
3953-
"id": "a9dd81a8",
3951+
"id": "20",
39543952
"metadata": {},
39553953
"outputs": [
39563954
{
@@ -3974,7 +3972,7 @@
39743972
{
39753973
"cell_type": "code",
39763974
"execution_count": 13,
3977-
"id": "f9c3fc00-b277-401a-af3c-3d69d141535b",
3975+
"id": "21",
39783976
"metadata": {},
39793977
"outputs": [
39803978
{
@@ -4032,7 +4030,7 @@
40324030
{
40334031
"cell_type": "code",
40344032
"execution_count": 14,
4035-
"id": "b20891b6",
4033+
"id": "22",
40364034
"metadata": {},
40374035
"outputs": [
40384036
{
@@ -5391,7 +5389,7 @@
53915389
},
53925390
{
53935391
"cell_type": "markdown",
5394-
"id": "94d6e979-c316-4f75-94c4-b1271ecf4770",
5392+
"id": "23",
53955393
"metadata": {},
53965394
"source": [
53975395
"## Example IV: Tsunami in an ocean with a seamount\n",
@@ -5402,7 +5400,7 @@
54025400
{
54035401
"cell_type": "code",
54045402
"execution_count": 15,
5405-
"id": "cafa2271-d13a-4d83-8838-5137130b400d",
5403+
"id": "24",
54065404
"metadata": {},
54075405
"outputs": [],
54085406
"source": [
@@ -5428,7 +5426,7 @@
54285426
},
54295427
{
54305428
"cell_type": "markdown",
5431-
"id": "e76012b0",
5429+
"id": "25",
54325430
"metadata": {},
54335431
"source": [
54345432
"Let's take a look into how this depth profile $h$ looks in the plot below."
@@ -5437,7 +5435,7 @@
54375435
{
54385436
"cell_type": "code",
54395437
"execution_count": 16,
5440-
"id": "52b08af0",
5438+
"id": "26",
54415439
"metadata": {},
54425440
"outputs": [
54435441
{
@@ -5461,7 +5459,7 @@
54615459
{
54625460
"cell_type": "code",
54635461
"execution_count": 17,
5464-
"id": "149fb8d8-5c92-4730-a39d-74f8ce340242",
5462+
"id": "27",
54655463
"metadata": {},
54665464
"outputs": [
54675465
{
@@ -5519,7 +5517,7 @@
55195517
{
55205518
"cell_type": "code",
55215519
"execution_count": 18,
5522-
"id": "3cce7e29",
5520+
"id": "28",
55235521
"metadata": {},
55245522
"outputs": [
55255523
{
@@ -6787,7 +6785,7 @@
67876785
},
67886786
{
67896787
"cell_type": "markdown",
6790-
"id": "b08916a5-9a5e-4231-9313-cb5d7a0ccd1e",
6788+
"id": "29",
67916789
"metadata": {},
67926790
"source": [
67936791
"## Example V: Tsunami in an ocean with random seafloor topography variations\n",
@@ -6798,7 +6796,7 @@
67986796
{
67996797
"cell_type": "code",
68006798
"execution_count": 19,
6801-
"id": "97a8e17b-eb3d-4e74-b962-b9eaa3af98c2",
6799+
"id": "30",
68026800
"metadata": {},
68036801
"outputs": [],
68046802
"source": [
@@ -6831,7 +6829,7 @@
68316829
},
68326830
{
68336831
"cell_type": "markdown",
6834-
"id": "d6ef2c5a",
6832+
"id": "31",
68356833
"metadata": {},
68366834
"source": [
68376835
"Let's take a look into how this depth profile $h$ looks in the plot below."
@@ -6840,7 +6838,7 @@
68406838
{
68416839
"cell_type": "code",
68426840
"execution_count": 20,
6843-
"id": "bf708c5a",
6841+
"id": "32",
68446842
"metadata": {},
68456843
"outputs": [
68466844
{
@@ -6864,7 +6862,7 @@
68646862
{
68656863
"cell_type": "code",
68666864
"execution_count": 21,
6867-
"id": "f1471ddf-9c13-4014-b6f5-cc57a1d568dc",
6865+
"id": "33",
68686866
"metadata": {},
68696867
"outputs": [
68706868
{
@@ -6923,7 +6921,7 @@
69236921
{
69246922
"cell_type": "code",
69256923
"execution_count": 22,
6926-
"id": "b06f9ed5",
6924+
"id": "34",
69276925
"metadata": {},
69286926
"outputs": [
69296927
{
@@ -8074,7 +8072,7 @@
80748072
},
80758073
{
80768074
"cell_type": "markdown",
8077-
"id": "275eb854-965a-4a85-934d-113d88c640fc",
8075+
"id": "35",
80788076
"metadata": {},
80798077
"source": [
80808078
"## Example VI: 2D circular dam break problem\n",
@@ -8085,7 +8083,7 @@
80858083
{
80868084
"cell_type": "code",
80878085
"execution_count": 23,
8088-
"id": "2c3c9bb7-f37d-4c18-925b-eac7bfb2ef11",
8086+
"id": "36",
80898087
"metadata": {},
80908088
"outputs": [],
80918089
"source": [
@@ -8119,7 +8117,7 @@
81198117
{
81208118
"cell_type": "code",
81218119
"execution_count": 24,
8122-
"id": "d1fa80fd-f9bd-457b-a53f-78d81f45e1d3",
8120+
"id": "37",
81238121
"metadata": {},
81248122
"outputs": [
81258123
{
@@ -8177,7 +8175,7 @@
81778175
{
81788176
"cell_type": "code",
81798177
"execution_count": 25,
8180-
"id": "649a4227",
8178+
"id": "38",
81818179
"metadata": {},
81828180
"outputs": [
81838181
{
@@ -9428,7 +9426,7 @@
94289426
},
94299427
{
94309428
"cell_type": "markdown",
9431-
"id": "9ce6aee8-b425-435c-9427-856797293673",
9429+
"id": "39",
94329430
"metadata": {},
94339431
"source": [
94349432
"## What we learned:\n",

0 commit comments

Comments
 (0)