Skip to content

Commit 366d470

Browse files
Merge pull request #1237 from OceanParcels/updating_documentation_notebooks
Updating documentation notebooks
2 parents 7f66104 + 8133c10 commit 366d470

6 files changed

Lines changed: 51 additions & 2 deletions

parcels/examples/documentation_MPI.ipynb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
"## Tutorial on Parallel Parcels with MPI and `dask` field-chunking"
88
]
99
},
10+
{
11+
"cell_type": "markdown",
12+
"metadata": {},
13+
"source": [
14+
"<center><i> NOTE THAT THIS DOCUMENTATION NOTEBOOK CAN'T BE RUN WITH THE EXAMPLE-OUTPUT THAT SHIPS WITH PARCELS. THESE DOCUMENTATION NOTEBOOKS ARE FOR BACKGROUND INFO ONLY <i></center>"
15+
]
16+
},
1017
{
1118
"cell_type": "markdown",
1219
"metadata": {},

parcels/examples/documentation_homepage_animation.ipynb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"<center><i> NOTE THAT THIS DOCUMENTATION NOTEBOOK CAN'T BE RUN WITH THE EXAMPLE-OUTPUT THAT SHIPS WITH PARCELS. THESE DOCUMENTATION NOTEBOOKS ARE FOR BACKGROUND INFO ONLY <i></center>"
8+
]
9+
},
310
{
411
"cell_type": "code",
512
"execution_count": 1,

parcels/examples/documentation_indexing.ipynb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
"## Documentation on dimensions and indexing in Parcels"
88
]
99
},
10+
{
11+
"cell_type": "markdown",
12+
"metadata": {},
13+
"source": [
14+
"<center><i> NOTE THAT THIS DOCUMENTATION NOTEBOOK CAN'T BE RUN WITH THE EXAMPLE-OUTPUT THAT SHIPS WITH PARCELS. THESE DOCUMENTATION NOTEBOOKS ARE FOR BACKGROUND INFO ONLY <i></center>"
15+
]
16+
},
1017
{
1118
"cell_type": "markdown",
1219
"metadata": {},

parcels/examples/documentation_stuck_particles.ipynb

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,28 @@
88
}
99
},
1010
"source": [
11-
"# Documentation of particles 'stuck' on boundaries\n",
11+
"# Documentation of particles 'stuck' on boundaries"
12+
]
13+
},
14+
{
15+
"cell_type": "markdown",
16+
"metadata": {
17+
"slideshow": {
18+
"slide_type": "slide"
19+
}
20+
},
21+
"source": [
22+
"<center><i> NOTE THAT THIS DOCUMENTATION NOTEBOOK CAN'T BE RUN WITH THE EXAMPLE-OUTPUT THAT SHIPS WITH PARCELS. THESE DOCUMENTATION NOTEBOOKS ARE FOR BACKGROUND INFO ONLY <i></center>"
23+
]
24+
},
25+
{
26+
"cell_type": "markdown",
27+
"metadata": {
28+
"slideshow": {
29+
"slide_type": "slide"
30+
}
31+
},
32+
"source": [
1233
"In some Parcels simulations, particles end up moving onto parts of the grid where the velocity field is not defined, such as for example onto land. In this tutorial we look at how this depends on the grid structure. \n",
1334
"\n",
1435
"**Short conclusion: Particles can get stuck on Arakawa A grids and B grids but should not get stuck on C grids.**\n",

parcels/examples/documentation_unstuck_Agrid.ipynb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
"# Tutorial on implementing boundary conditions in an A grid"
88
]
99
},
10+
{
11+
"cell_type": "markdown",
12+
"metadata": {},
13+
"source": [
14+
"<center><i> NOTE THAT THIS DOCUMENTATION NOTEBOOK CAN'T BE RUN WITH THE EXAMPLE-OUTPUT THAT SHIPS WITH PARCELS. THESE DOCUMENTATION NOTEBOOKS ARE FOR BACKGROUND INFO ONLY <i></center>"
15+
]
16+
},
1017
{
1118
"cell_type": "markdown",
1219
"metadata": {},

parcels/examples/tutorial_diffusion.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
" \\mathbf{X}(t_0) &= \\mathbf{x}_0,\n",
1818
"\\end{aligned}\n",
1919
"$$\n",
20-
"where $\\mathbf{X}$ is the particle position vector ($\\mathbf{x}_0$ being the initial position vector), $\\mathbf{u}$ the velocity vector, $\\mathbf{K} = \\frac{1}{2} \\mathbf{V} \\cdot \\mathbf{V}^T$ the diffusivity tensor, and $d\\mathbf{W}(t)$ a Wiener increment (normally distributed with zero mean and variance $dt$). Particle distributions obtained by solving the above equation are therefore consistent with Eulerian concentrations found by solving the advection-diffusion equation. \n",
20+
"where $\\mathbf{X}$ is the particle position vector ($\\mathbf{x}_0$ being the initial position vector), and $\\mathbf{u}$ the velocity vector. $\\mathbf{V}$ is calculated from the diffusivity tensor $\\mathbf{K} = \\frac{1}{2} \\mathbf{V} \\cdot \\mathbf{V}^T$ and $d\\mathbf{W}(t)$ a Wiener increment (normally distributed with zero mean and variance $dt$). Particle distributions obtained by solving the above equation are therefore consistent with Eulerian concentrations found by solving the advection-diffusion equation. \n",
2121
"\n",
2222
"In three-dimensional ocean models diffusion operates along slopes of neutral buoyancy. To account for these slopes, the 3D diffusivity tensor $\\mathbf{K}$ (and therefore $\\mathbf{V}$) contains off-diagonal components. Three-dimensional advection-diffusion is not yet implemented in _Parcels_, but it is currently under development. Here we instead focus on the simpler case of diffusion in a horizontal plane, where diffusivity is specified only in the zonal and meridional direction, i.e. \n",
2323
"$$\\mathbf{K}(x,y)=\\begin{bmatrix}\n",

0 commit comments

Comments
 (0)