Skip to content

Commit 4066b5f

Browse files
Upstream updates
1 parent 58b80e2 commit 4066b5f

12 files changed

Lines changed: 492 additions & 492 deletions

01-spd-helmholtz.ipynb

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

02-poisson.ipynb

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"cell_type": "code",
55
"execution_count": null,
6-
"id": "a4c7d553",
6+
"id": "ac63fe1d",
77
"metadata": {},
88
"outputs": [],
99
"source": [
@@ -16,15 +16,15 @@
1616
},
1717
{
1818
"cell_type": "markdown",
19-
"id": "c3701276",
19+
"id": "10dbae60",
2020
"metadata": {},
2121
"source": [
2222
"# Strong (Dirichlet) boundary conditions"
2323
]
2424
},
2525
{
2626
"cell_type": "markdown",
27-
"id": "49ff5cf6",
27+
"id": "5570bc19",
2828
"metadata": {},
2929
"source": [
3030
"Let's move on from the Helmholtz problem to Poisson:\n",
@@ -54,7 +54,7 @@
5454
},
5555
{
5656
"cell_type": "markdown",
57-
"id": "747b7425",
57+
"id": "cffbc6fb",
5858
"metadata": {},
5959
"source": [
6060
"As usual, we start by setting up the notebook matplotlib interaction, and importing Firedrake. We then choose a triangulation of our domain and select an appropriate $H^1$-conforming function space."
@@ -63,7 +63,7 @@
6363
{
6464
"cell_type": "code",
6565
"execution_count": null,
66-
"id": "530a8478",
66+
"id": "2f388b5a",
6767
"metadata": {},
6868
"outputs": [],
6969
"source": [
@@ -73,7 +73,7 @@
7373
{
7474
"cell_type": "code",
7575
"execution_count": null,
76-
"id": "0c82b645",
76+
"id": "36e517f0",
7777
"metadata": {},
7878
"outputs": [],
7979
"source": [
@@ -84,7 +84,7 @@
8484
},
8585
{
8686
"cell_type": "markdown",
87-
"id": "642a23e5",
87+
"id": "42726ef2",
8888
"metadata": {},
8989
"source": [
9090
"Let us specify the details of our problem. We will solve\n",
@@ -100,7 +100,7 @@
100100
{
101101
"cell_type": "code",
102102
"execution_count": null,
103-
"id": "668b2940",
103+
"id": "fbfa3dd4",
104104
"metadata": {},
105105
"outputs": [],
106106
"source": [
@@ -111,7 +111,7 @@
111111
},
112112
{
113113
"cell_type": "markdown",
114-
"id": "cb0602c6",
114+
"id": "1dba4be9",
115115
"metadata": {},
116116
"source": [
117117
"As before, we'll require test and trial functions to define our problem."
@@ -120,7 +120,7 @@
120120
{
121121
"cell_type": "code",
122122
"execution_count": null,
123-
"id": "25283eb9",
123+
"id": "397eb25e",
124124
"metadata": {},
125125
"outputs": [],
126126
"source": [
@@ -132,7 +132,7 @@
132132
},
133133
{
134134
"cell_type": "markdown",
135-
"id": "20a69a4a",
135+
"id": "de0eb5e6",
136136
"metadata": {},
137137
"source": [
138138
"Now we need to tell Firedrake how to modify the function space to take into account the Dirichlet condition. This is done by constructing a [DirichletBC object](http://firedrakeproject.org/firedrake.html#firedrake.bcs.DirichletBC). As usual, we can ask for help using Python's builtin documentation facilities."
@@ -141,7 +141,7 @@
141141
{
142142
"cell_type": "code",
143143
"execution_count": null,
144-
"id": "1ab787f7",
144+
"id": "3c5cb8b5",
145145
"metadata": {},
146146
"outputs": [],
147147
"source": [
@@ -150,7 +150,7 @@
150150
},
151151
{
152152
"cell_type": "markdown",
153-
"id": "0f1f91fa",
153+
"id": "51409701",
154154
"metadata": {},
155155
"source": [
156156
"We want to apply the zero Dirichlet condition to all exterior nodes of the space, so we need to provide the list of boundary ids that corresponds to the exterior boundary of the domain. For the `UnitSquareMesh`, this is the set `(1, 2, 3, 4)`."
@@ -159,7 +159,7 @@
159159
{
160160
"cell_type": "code",
161161
"execution_count": null,
162-
"id": "77a4b62e",
162+
"id": "0a3afacd",
163163
"metadata": {},
164164
"outputs": [],
165165
"source": [
@@ -169,7 +169,7 @@
169169
},
170170
{
171171
"cell_type": "markdown",
172-
"id": "02b3dd85",
172+
"id": "38624ba7",
173173
"metadata": {},
174174
"source": [
175175
"We supply the boundary condition as an argument to `solve`."
@@ -178,7 +178,7 @@
178178
{
179179
"cell_type": "code",
180180
"execution_count": null,
181-
"id": "7b09e5cd",
181+
"id": "7e574aa7",
182182
"metadata": {},
183183
"outputs": [],
184184
"source": [
@@ -189,7 +189,7 @@
189189
{
190190
"cell_type": "code",
191191
"execution_count": null,
192-
"id": "e0018ea6",
192+
"id": "c33b5ff8",
193193
"metadata": {
194194
"tags": [
195195
"nbval-ignore-output"
@@ -206,7 +206,7 @@
206206
},
207207
{
208208
"cell_type": "markdown",
209-
"id": "5e0adfa3",
209+
"id": "2495e2be",
210210
"metadata": {},
211211
"source": [
212212
"## Exercises\n",
@@ -230,7 +230,7 @@
230230
{
231231
"cell_type": "code",
232232
"execution_count": null,
233-
"id": "1219e89a",
233+
"id": "9617b155",
234234
"metadata": {},
235235
"outputs": [],
236236
"source": []

0 commit comments

Comments
 (0)