diff --git a/docs/user/NextSteps.qmd b/docs/user/NextSteps.qmd index 6f1ee7b5..84d0f18f 100644 --- a/docs/user/NextSteps.qmd +++ b/docs/user/NextSteps.qmd @@ -17,11 +17,10 @@ In addition to the notebooks in this brief set of examples, there are a number o - [The Underworld Website / Blog](https://www.underworldcode.org) - [The API documentation](https://underworldcode.github.io/underworld3/main_api/underworld3/index.html) - (all the modules and functions and their full sets of arguments) is automatically generated from the source code and uses the same rich markdown content as the notebook help text. + (all the modules and functions and their full sets of arguments) is automatically generated from the source code and uses the same rich markdown + content as the notebook help text. There is also a set of [API docs](https://underworldcode.github.io/underworld3/development_api/underworld3/index.html) for the development branch. - - The [`underworld3` GitHub repository](https://github.com/underworldcode/underworld3) is the most active development community for the code. - ### Benchmarks diff --git a/docs/user/Notebooks/1-Meshes.ipynb b/docs/user/Notebooks/1-Meshes.ipynb index 930d65ea..c186bf92 100644 --- a/docs/user/Notebooks/1-Meshes.ipynb +++ b/docs/user/Notebooks/1-Meshes.ipynb @@ -14,15 +14,13 @@ }, "source": [ "
\n", - "\n", - "\n", - "\n", - "\n", - "\n", + " \n", + "![](media/SampleSphericalMesh.png)\n", + "\n", "
\n", "\n", "\n", - "# Notebook 1: Meshes\n", + "## Notebook 1: Meshes\n", "\n", "Introducing meshes: how to build them, interrogate them and visualise them.\n", "\n", @@ -36,7 +34,6 @@ "\n", "Mesh adaptivity is a work-in-progress.\n", "\n", - "\n", "\n" ] }, @@ -64,7 +61,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 2, "id": "5a4437ff-63ae-4ffa-9f2b-8ec1b8b4baeb", "metadata": { "editable": true, @@ -109,15 +106,26 @@ }, "tags": [] }, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Constructing UW mesh from gmsh .meshes/uw_cubed_spherical_shell_ro1.0_ri0.547_elts8_plexTrue.msh\n", + "Mesh refinement levels: 0\n", + "Mesh coarsening levels: None\n", + "Populating mesh coordinates CoordinateSystemType.SPHERICAL\n" + ] + } + ], "source": [ "mesh = uw.meshing.uw.meshing.CubedSphere(\n", " radiusOuter=1.0,\n", " radiusInner=0.547,\n", " numElements=8,\n", " refinement=0,\n", - " simplex=False,\n", - " verbose=False,\n", + " simplex=True,\n", + " verbose=True,\n", ")" ] }, @@ -152,9 +160,9 @@ " [-0.57735027, 0.57735027, -0.57735027],\n", " [-0.57735027, -0.57735027, -0.57735027],\n", " ...,\n", - " [ 0.58691901, -0.41511058, -0.41511058],\n", - " [ 0.6269543 , -0.44342636, -0.44342636],\n", - " [ 0.66698958, -0.47174214, -0.47174214]])" + " [ 0.61340251, 0.4866531 , 0.41538064],\n", + " [ 0.56556024, 0.42209717, 0.44274422],\n", + " [ 0.51755571, 0.41031492, 0.44421012]])" ] }, "execution_count": 4, @@ -166,6 +174,14 @@ "mesh.data" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "a7c5dd7e-58d2-45d0-bfc6-eaded6da20f0", + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "markdown", "id": "1ed56724-adc5-49c6-a33b-4552b619cb07", @@ -266,7 +282,7 @@ " " ], "text/plain": [ - "" + "" ] }, "execution_count": 6, @@ -320,10 +336,10 @@ { "data": { "text/latex": [ - "$\\displaystyle \\left[\\begin{matrix}{ r \\hspace{ 0.0pt } } & { \\theta \\hspace{ 0.01pt } } & { \\phi \\hspace{ 0.02pt } }\\end{matrix}\\right]$" + "$\\displaystyle \\left[\\begin{matrix}r & \\theta & \\phi\\end{matrix}\\right]$" ], "text/plain": [ - "Matrix([[{ r \\hspace{ 0.0pt } }, { \\theta \\hspace{ 0.01pt } }, { \\phi \\hspace{ 0.02pt } }]])" + "Matrix([[r, \\theta, \\phi]])" ] }, "metadata": {}, @@ -381,34 +397,45 @@ "text": [ "\n", "\n", - "Mesh # 0: .meshes/uw_cubed_spherical_shell_ro1.0_ri0.547_elts8_plexFalse.msh\n", + "Mesh # 0: .meshes/uw_cubed_spherical_shell_ro1.0_ri0.547_elts8_plexTrue.msh\n", + "\n" + ] + }, + { + "data": { + "application/vnd.jupyter.widget-view+json": { + "model_id": "2fe9b56bf1674abc9ec058d5c23de562", + "version_major": 2, + "version_minor": 0 + }, + "text/plain": [ + "Widget(value='