Skip to content

Commit

Permalink
Another typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed Dec 7, 2023
1 parent 75a31d8 commit a06b7ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
10 changes: 1 addition & 9 deletions chapter3/multiple_dirichlet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": [
"# Setting multiple Dirichlet condition\n",
"\n",
"In the previous section, we used a single function to $u_d$ to setting Dirichlet conditions on two parts of the boundary. However, it is often more practical to use multiple functins, one for each subdomain of the boundary. We consider a similar example to [the previous example](./neumann_dirichlet_code) and redefine it consist of two Dirichlet boundary conditions\n",
"In the previous section, we used a single function to $u_d$ to setting Dirichlet conditions on two parts of the boundary. However, it is often more practical to use multiple functions, one for each subdomain of the boundary. We consider a similar example to [the previous example](./neumann_dirichlet_code) and redefine it consist of two Dirichlet boundary conditions\n",
"\n",
"$$\n",
"-\\nabla^2 u =f \\quad \\text{in } \\Omega,\n",
Expand Down Expand Up @@ -49,7 +49,6 @@
"import pyvista\n",
"\n",
"\n",
"\n",
"def u_exact(x):\n",
" return 1 + x[0]**2 + 2 * x[1]**2\n",
"\n",
Expand Down Expand Up @@ -186,13 +185,6 @@
"else:\n",
" figure = plotter.screenshot(\"multiple_dirichlet.png\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
8 changes: 2 additions & 6 deletions chapter3/multiple_dirichlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.14.7
# jupytext_version: 1.15.2
# kernelspec:
# display_name: Python 3 (ipykernel)
# language: python
Expand All @@ -15,7 +15,7 @@

# # Setting multiple Dirichlet condition
#
# In the previous section, we used a single function to $u_d$ to setting Dirichlet conditions on two parts of the boundary. However, it is often more practical to use multiple functins, one for each subdomain of the boundary. We consider a similar example to [the previous example](./neumann_dirichlet_code) and redefine it consist of two Dirichlet boundary conditions
# In the previous section, we used a single function to $u_d$ to setting Dirichlet conditions on two parts of the boundary. However, it is often more practical to use multiple functions, one for each subdomain of the boundary. We consider a similar example to [the previous example](./neumann_dirichlet_code) and redefine it consist of two Dirichlet boundary conditions
#
# $$
# -\nabla^2 u =f \quad \text{in } \Omega,
Expand Down Expand Up @@ -52,7 +52,6 @@
import pyvista



def u_exact(x):
return 1 + x[0]**2 + 2 * x[1]**2

Expand Down Expand Up @@ -123,6 +122,3 @@ def u_exact(x):
plotter.show()
else:
figure = plotter.screenshot("multiple_dirichlet.png")
# -


0 comments on commit a06b7ed

Please sign in to comment.