File tree Expand file tree Collapse file tree 10 files changed +78
-78
lines changed
9561cf6cd1a70079b986f4eb31580cbd
9ed4657d08dda04de30e6463e2f58d75
f6f3cc4d9540871af057920d1ddb5561 Expand file tree Collapse file tree 10 files changed +78
-78
lines changed Original file line number Diff line number Diff line change @@ -136,8 +136,8 @@ <h3>Weak formulation<a class="headerlink" href="#weak-formulation" title="Link t
136136\forall \ K \in \mathcal{T} \right\}
137137\]</ div >
138138< p > and considering the boundary conditions</ p >
139- < div class ="amsmath math notranslate nohighlight " id ="equation-911ad712-d3de-44a7-903b-5ccf7838ac5a ">
140- < span class ="eqno "> (1)< a class ="headerlink " href ="#equation-911ad712-d3de-44a7-903b-5ccf7838ac5a " title ="Permalink to this equation "> </ a > </ span > \[\begin{align}
139+ < div class ="amsmath math notranslate nohighlight " id ="equation-112eab05-fc23-4720-8d41-7f7ccfdec836 ">
140+ < span class ="eqno "> (1)< a class ="headerlink " href ="#equation-112eab05-fc23-4720-8d41-7f7ccfdec836 " title ="Permalink to this equation "> </ a > </ span > \[\begin{align}
141141u &= 0 \quad {\rm on} \ \partial\Omega, \\
142142\nabla^{2} u &= 0 \quad {\rm on} \ \partial\Omega,
143143\end{align}\]</ div >
Original file line number Diff line number Diff line change 22 "cells" : [
33 {
44 "cell_type" : " markdown" ,
5- "id" : " 83081dc2 " ,
5+ "id" : " f9a75cc3 " ,
66 "metadata" : {},
77 "source" : [
88 " # Matrix-free conjugate gradient solver for the Poisson equation\n " ,
7373 {
7474 "cell_type" : " code" ,
7575 "execution_count" : null ,
76- "id" : " a6cf3814 " ,
76+ "id" : " 5c8a79a8 " ,
7777 "metadata" : {},
7878 "outputs" : [],
7979 "source" : [
8383 {
8484 "cell_type" : " code" ,
8585 "execution_count" : null ,
86- "id" : " 25362128 " ,
86+ "id" : " 50241eaa " ,
8787 "metadata" : {},
8888 "outputs" : [],
8989 "source" : [
9393 {
9494 "cell_type" : " code" ,
9595 "execution_count" : null ,
96- "id" : " a8f7591c " ,
96+ "id" : " 2eee9277 " ,
9797 "metadata" : {},
9898 "outputs" : [],
9999 "source" : [
104104 },
105105 {
106106 "cell_type" : " markdown" ,
107- "id" : " 3cd8a051 " ,
107+ "id" : " a684a26d " ,
108108 "metadata" : {},
109109 "source" : [
110110 " We begin by using {py:func}`create_rectangle\n " ,
117117 {
118118 "cell_type" : " code" ,
119119 "execution_count" : null ,
120- "id" : " e2bcbaf6 " ,
120+ "id" : " 703347bd " ,
121121 "metadata" : {},
122122 "outputs" : [],
123123 "source" : [
130130 {
131131 "cell_type" : " code" ,
132132 "execution_count" : null ,
133- "id" : " 7ee6f985 " ,
133+ "id" : " 54386d9d " ,
134134 "metadata" : {},
135135 "outputs" : [],
136136 "source" : [
141141 },
142142 {
143143 "cell_type" : " markdown" ,
144- "id" : " 2422fabd " ,
144+ "id" : " 4a7c4ea2 " ,
145145 "metadata" : {},
146146 "source" : [
147147 " The second argument to {py:class}`functionspace\n " ,
160160 {
161161 "cell_type" : " code" ,
162162 "execution_count" : null ,
163- "id" : " c6c7d8fe " ,
163+ "id" : " cb9852a6 " ,
164164 "metadata" : {},
165165 "outputs" : [],
166166 "source" : [
171171 },
172172 {
173173 "cell_type" : " markdown" ,
174- "id" : " ac299c4f " ,
174+ "id" : " aa3bba2b " ,
175175 "metadata" : {},
176176 "source" : [
177177 " We now find the degrees of freedom that are associated with the boundary\n " ,
182182 {
183183 "cell_type" : " code" ,
184184 "execution_count" : null ,
185- "id" : " 698b9f53 " ,
185+ "id" : " a4a1825f " ,
186186 "metadata" : {},
187187 "outputs" : [],
188188 "source" : [
191191 },
192192 {
193193 "cell_type" : " markdown" ,
194- "id" : " 57612063 " ,
194+ "id" : " 856993da " ,
195195 "metadata" : {},
196196 "source" : [
197197 " and use {py:func}`dirichletbc <dolfinx.fem.dirichletbc>` to define the\n " ,
204204 {
205205 "cell_type" : " code" ,
206206 "execution_count" : null ,
207- "id" : " 049bf1ef " ,
207+ "id" : " 1a225a0a " ,
208208 "metadata" : {},
209209 "outputs" : [],
210210 "source" : [
215215 },
216216 {
217217 "cell_type" : " markdown" ,
218- "id" : " 1b64021f " ,
218+ "id" : " bc38da56 " ,
219219 "metadata" : {},
220220 "source" : [
221221 " Next, we express the variational problem using UFL."
224224 {
225225 "cell_type" : " code" ,
226226 "execution_count" : null ,
227- "id" : " 49df8762 " ,
227+ "id" : " 38382e42 " ,
228228 "metadata" : {},
229229 "outputs" : [],
230230 "source" : [
239239 },
240240 {
241241 "cell_type" : " markdown" ,
242- "id" : " 37ddc032 " ,
242+ "id" : " 29f40587 " ,
243243 "metadata" : {},
244244 "source" : [
245245 " For the matrix-free solvers we also define a second linear form `M` as\n " ,
255255 {
256256 "cell_type" : " code" ,
257257 "execution_count" : null ,
258- "id" : " afef890d " ,
258+ "id" : " eea3080c " ,
259259 "metadata" : {},
260260 "outputs" : [],
261261 "source" : [
266266 },
267267 {
268268 "cell_type" : " markdown" ,
269- "id" : " 60cb0550 " ,
269+ "id" : " ffa06029 " ,
270270 "metadata" : {},
271271 "source" : [
272272 " ### Matrix-free conjugate gradient solver\n " ,
280280 {
281281 "cell_type" : " code" ,
282282 "execution_count" : null ,
283- "id" : " 5d2a53eb " ,
283+ "id" : " 2c6134b6 " ,
284284 "metadata" : {},
285285 "outputs" : [],
286286 "source" : [
295295 {
296296 "cell_type" : " code" ,
297297 "execution_count" : null ,
298- "id" : " d00a2add " ,
298+ "id" : " 8f57cc5c " ,
299299 "metadata" : {},
300300 "outputs" : [],
301301 "source" : [
306306 },
307307 {
308308 "cell_type" : " markdown" ,
309- "id" : " e76c912e " ,
309+ "id" : " 3f62b648 " ,
310310 "metadata" : {
311311 "lines_to_next_cell" : 2
312312 },
319319 {
320320 "cell_type" : " code" ,
321321 "execution_count" : null ,
322- "id" : " 5cf1d052 " ,
322+ "id" : " ea7d5045 " ,
323323 "metadata" : {
324324 "lines_to_next_cell" : 2
325325 },
342342 },
343343 {
344344 "cell_type" : " markdown" ,
345- "id" : " 49947cd7 " ,
345+ "id" : " 6afe3a57 " ,
346346 "metadata" : {
347347 "lines_to_next_cell" : 2
348348 },
358358 {
359359 "cell_type" : " code" ,
360360 "execution_count" : null ,
361- "id" : " 169b2a56 " ,
361+ "id" : " 726e77d2 " ,
362362 "metadata" : {},
363363 "outputs" : [],
364364 "source" : [
404404 },
405405 {
406406 "cell_type" : " markdown" ,
407- "id" : " bcd00164 " ,
407+ "id" : " 726d68cc " ,
408408 "metadata" : {},
409409 "source" : [
410410 " This matrix-free solver is now used to compute the finite element\n " ,
415415 {
416416 "cell_type" : " code" ,
417417 "execution_count" : null ,
418- "id" : " d71cbed0 " ,
418+ "id" : " 9f8acf91 " ,
419419 "metadata" : {},
420420 "outputs" : [],
421421 "source" : [
427427 {
428428 "cell_type" : " code" ,
429429 "execution_count" : null ,
430- "id" : " 8ec32067 " ,
430+ "id" : " 542951cc " ,
431431 "metadata" : {},
432432 "outputs" : [],
433433 "source" : [
438438 {
439439 "cell_type" : " code" ,
440440 "execution_count" : null ,
441- "id" : " 4761ee89 " ,
441+ "id" : " 8e1e9ac7 " ,
442442 "metadata" : {},
443443 "outputs" : [],
444444 "source" : [
450450 {
451451 "cell_type" : " code" ,
452452 "execution_count" : null ,
453- "id" : " 9b0c3e85 " ,
453+ "id" : " bcea0595 " ,
454454 "metadata" : {},
455455 "outputs" : [],
456456 "source" : [
You can’t perform that action at this time.
0 commit comments