Skip to content

Commit 4739fba

Browse files
jeremyltyunhuihejedbrown
authored
Copper Mountain 2021 SISC Special Issue (#22)
Initial submission to Copper Mountain 2021 SISC Special Issue Co-authored-by: Yunhui He <[email protected]> Co-authored-by: Jed Brown <[email protected]>
1 parent 3760d4a commit 4739fba

File tree

55 files changed

+10124
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+10124
-12
lines changed

examples/jupyter/LFAToolkit_Introduction.ipynb

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@
145145
"\n",
146146
"$$\n",
147147
"\\color{maroon}{\\mathbf{A}} u = \\sum_e \\mathcal{E}^T_e \\left[\n",
148-
" \\left( \\color{royalblue}{\\mathbf{B}}_0^e \\right)^T \\color{royalblue}{\\mathbf{W}}^e \\Lambda \\left( \\color{yellowgreen}{\\mathbf{f_0}} \\left( u^e, \\nabla u^e \\right) \\right)\n",
149-
" + \\sum_{i = 1}^d \\left( \\color{royalblue}{\\mathbf{B}}_i^e \\right)^T \\color{royalblue}{\\mathbf{W}}^e \\Lambda \\left( \\color{yellowgreen}{\\mathbf{f_1}} \\left( u^e, \\nabla u^e \\right) \\right)\n",
148+
" \\left( \\color{royalblue}{\\mathbf{B}}_0^e \\right)^T \\color{yellowgreen}{\\mathbf{W}}^e \\Lambda \\left( \\color{yellowgreen}{\\mathbf{f_0}} \\left( u^e, \\nabla u^e \\right) \\right)\n",
149+
" + \\sum_{i = 1}^d \\left( \\color{royalblue}{\\mathbf{B}}_i^e \\right)^T \\color{yellowgreen}{\\mathbf{W}}^e \\Lambda \\left( \\color{yellowgreen}{\\mathbf{f_1}} \\left( u^e, \\nabla u^e \\right) \\right)\n",
150150
"\\right]\n",
151151
"$$\n",
152152
"\n",
@@ -274,20 +274,18 @@
274274
"## <center>Mathematical Background</center>\n",
275275
"### <center>Local Fourier Analysis</center>\n",
276276
"\n",
277-
"For a system of equations, such as the $p \\times p$ linear system of equations for a scalar problem on a single $p$ order finite element\n",
277+
"For a $q \\times q$ system of equations\n",
278278
"\n",
279279
"<br>\n",
280280
"\n",
281281
"$$\n",
282282
"\\tilde{L}_h =\n",
283283
"\\begin{bmatrix}\n",
284-
" \\tilde{L}_h^{1, 1} && \\cdots && \\tilde{L}_h^{1, p} \\\\\n",
284+
" \\tilde{L}_h^{1, 1} && \\cdots && \\tilde{L}_h^{1, q} \\\\\n",
285285
" \\vdots && \\vdots && \\vdots \\\\\n",
286-
" \\tilde{L}_h^{p, 1} && \\cdots && \\tilde{L}_h^{p, p} \\\\\n",
286+
" \\tilde{L}_h^{q, 1} && \\cdots && \\tilde{L}_h^{q, q} \\\\\n",
287287
"\\end{bmatrix}\n",
288-
"$$\n",
289-
"\n",
290-
"Multi-component equations are represented in a similar fashion"
288+
"$$"
291289
]
292290
},
293291
{
@@ -826,7 +824,7 @@
826824
"<br>\n",
827825
"\n",
828826
"$$\n",
829-
"\\tilde{\\mathbf{S}} \\left( \\omega, \\mathbf{\\theta} \\right) = \\mathbf{I} - \\omega \\space \\left( \\mathbf{Q}^T \\text{diag} \\left( \\color{maroon}{\\mathbf{A}}_e \\right) \\mathbf{Q} \\right) \\tilde{\\color{maroon}{\\mathbf{A}}} \\left( \\mathbf{\\theta} \\right)\n",
827+
"\\tilde{\\mathbf{S}} \\left( \\omega, \\mathbf{\\theta} \\right) = \\mathbf{I} - \\omega \\space \\left( \\mathbf{Q}^T \\text{diag} \\left( \\color{maroon}{\\mathbf{A}}_e \\right) \\mathbf{Q} \\right)^{-1} \\tilde{\\color{maroon}{\\mathbf{A}}} \\left( \\mathbf{\\theta} \\right)\n",
830828
"$$"
831829
]
832830
},
@@ -1439,7 +1437,7 @@
14391437
"<br>\n",
14401438
"\n",
14411439
"$$\n",
1442-
"\\mathbf{P}_{ctof} = \\mathbf{P}_f^T \\color{yellowgreen}{\\mathbf{D}}_{scale} \\color{royalblue}{\\mathbf{B}}_{ctof} \\mathbf{P}_c, \\ \\ \\mathbf{R}_{ftoc} = \\mathbf{P}_{ctof}^T\n",
1440+
"\\mathbf{P}_{ctof} = \\mathbf{P}_f^T \\color{royalblue}{\\mathbf{I}} \\color{yellowgreen}{\\mathbf{D}}_{scale} \\color{royalblue}{\\mathbf{B}}_{ctof} \\mathbf{P}_c, \\ \\ \\mathbf{R}_{ftoc} = \\mathbf{P}_{ctof}^T\n",
14431441
"$$"
14441442
]
14451443
},

examples/jupyter/demo223_dirichlet_bddc.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@
6464
"\n",
6565
"# compute and plot smoothing factor\n",
6666
"# setup\n",
67-
"ω = [0.2]\n",
67+
"ω = [1.0]\n",
6868
"maxeigenvalues = zeros(numbersteps, numbersteps)\n",
6969
"\n",
7070
"# compute\n",
7171
"for i in 1:numbersteps, j in 1:numbersteps\n",
7272
" θ = [θ_range[i], θ_range[j]]\n",
7373
" if sqrt(abs(θ[1])^2 + abs(θ[2])^2) > π/128\n",
7474
" A = computesymbols(bddc, ω, θ)\n",
75-
" eigenvalues = [abs(val) for val in eigvals(I-A)]\n",
75+
" eigenvalues = [abs(val) for val in eigvals(A)]\n",
7676
" maxeigenvalues[i, j] = max(eigenvalues...)\n",
7777
" maxeigenvalue = max(maxeigenvalue, maxeigenvalues[i, j])\n",
7878
" end\n",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.*.swp
2+
*.aux
3+
*.bbl
4+
*.blg
5+
*.fdb_latexmk
6+
*.fls
7+
*.log
8+
*.out
9+
*.pdf
10+
*.synctex.gz
11+
*.thm
12+
siamart.cls
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
p,ω,θ,ρ
2+
2,1.0,0.5000000000000001,0.7559289460184544
3+
4,0.91,0.5000000000000001,0.954993451479252
4+
8,0.82,0.5000000000000001,0.9918585345934762
5+
16,0.75,0.5000000000000001,0.9984846471940714
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
p,ω,θ,ρ
2+
2,1.05,7.067899292141149e-17,0.8392165313210713
3+
2,1.05,0.5000000000000001,0.8392165313210713
4+
4,1.0,7.067899292141149e-17,0.9718657882287578
5+
4,1.0,0.5000000000000001,0.9718657882287578
6+
8,0.87,0.5000000000000001,0.9952895206977193
7+
8,0.87,7.067899292141149e-17,0.9952895206977193
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
p,ω_classical,ω_highorder
2+
2,1.0000000000000002,0.8381346147406376
3+
4,0.9114731737026649,0.8545152818638532
4+
8,0.8235654204608711,0.8066714492123008
5+
16,0.7515343568509513,0.7485946457236492
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
p,ω_classical,ω_highorder
2+
2,1.2181176114168595,1.1728762637162735
3+
4,1.008526953705753,1.008526953705753
4+
8,0.8795806340156368,0.8795806340156368
5+
16,0.8046736861365273,0.8046736861365273

0 commit comments

Comments
 (0)