Algorithm Search⌘K

Algorithmadvanced

Symmetric interior penalty Galerkin method

Also called SIPG, interior penalty discontinuous Galerkin.

A discontinuous Galerkin method for elliptic problems with symmetric consistency terms and a penalty on jumps that must exceed a known bound.

Time
Θ(m^3 k^3) worst
Space
Θ(m^2 k^2) extra
Where
k = the polynomial degree; m = the number of cells
Properties
consistentdeterministiclocally conservativepositive definite above penalty boundsymmetric matrix
Origin
Douglas N. Arnold, Mary F. Wheeler, 1982

The symmetric interior penalty Galerkin method (SIPG) solves elliptic problems such as −Δu=f-\Delta u = f with piecewise polynomials that may jump across the faces of the mesh. It starts from the Galerkin method on each cell and adds three face terms: a consistency term with the average flux, a symmetric copy of it, and a penalty σh[u][v]\frac{\sigma}{h}[u][v] on the jumps. The result is a symmetric bilinear form that the exact solution satisfies, and it is positive definite when the penalty parameter σ\sigma exceeds a bound that depends on the polynomial degree and the mesh. Boundary values enter weakly, as in Nitsche's method, and the method has the optimal orders hk+1h^{k+1} in L2L^2 and hkh^k in the broken energy norm.

In plain words

Picture a curve built from separate pieces, one per interval, where the pieces do not have to meet at their ends. Each piece is a simple polynomial. The method asks every piece to obey the equation in its own interval, and at every meeting point it adds two kinds of terms. The first kind lets the slopes on the two sides talk to each other, so that the pieces act as one curve for a correct answer. The second kind is a spring that pulls the two ends together, and its strength is the penalty. If the spring is too weak, the system can have no single answer. If it is strong enough, the problem is well behaved, and the gaps that remain at the meeting points shrink as the pieces get shorter.

The problem

Input. A domain Ω\Omega with a mesh Th\mathcal{T}_h, a source ff, Dirichlet data gg, a degree k≥1k \ge 1 and a penalty parameter σ\sigma. The reference code takes Ω=(0,1)\Omega = (0, 1), −u′′=f-u'' = f, u(0)=g0u(0) = g_0, u(1)=g1u(1) = g_1, and mm cells of width h=1/mh = 1/m.

Output. uhu_h in the broken space Vh={v:v∣K∈Pk(K) for all K}V_h = \{v : v|_K \in \mathcal{P}_k(K) \text{ for all } K\} with ah(uh,v)=lh(v)a_h(u_h, v) = l_h(v) for all v∈Vhv \in V_h, where

ah(w,v)=∑K(∇w,∇v)K−∑F∫F({∇w⋅n}[v]+{∇v⋅n}[w])+∑FσhF∫F[w][v],a_h(w, v) = \sum_K(\nabla w, \nabla v)_K - \sum_F\int_F\bigl(\{\nabla w\cdot n\}[v] + \{\nabla v\cdot n\}[w]\bigr) + \sum_F\frac{\sigma}{h_F}\int_F[w][v],
lh(v)=(f,v)−∑F⊂∂Ω∫F(∇v⋅n) g+∑F⊂∂ΩσhF∫Fg v.l_h(v) = (f, v) - \sum_{F \subset \partial\Omega}\int_F(\nabla v\cdot n)\,g + \sum_{F \subset \partial\Omega}\frac{\sigma}{h_F}\int_F g\,v.

On an interior face [v][v] is the difference of the two traces and {⋅}\{\cdot\} the mean; on a boundary face [v][v] is the trace and {⋅}\{\cdot\} the one-sided value. In 1D with the orientation of the code, [v]=v(x−)−v(x+)[v] = v(x^-) - v(x^+) inside, [v]=v(1−)[v] = v(1^-) at x=1x = 1 and [v]=−v(0+)[v] = -v(0^+) at x=0x = 0.

The algorithm

  1. SIPG(f, m, k, sigma, g0, g1) ▷ -u'' = f on (0, 1), degree k, m cells, h = 1/m
  2. 1for each cell K_j do ▷ local basis phi_r = xi^r, xi = (x - x_j)/h
  3. 2A[(j, r), (j, s)] += (phi_s', phi_r')_K = r s / (h (r + s - 1)) for r, s >= 1
  4. 3b[(j, r)] += (f, phi_r)_K by quadrature
  5. 4for each node x_e, e = 0 to m do ▷ sides: (cell, end, weight of the mean, sign of the jump)
  6. 5for each pair of sides (trial, test): A[test, trial] += -{phi_s'}[phi_r] - {phi_r'}[phi_s] + (sigma/h)[phi_s][phi_r]
  7. 6if e = 0 or e = m then b[test] += -{phi_r'} [g] + (sigma/h) [g][phi_r] ▷ [g] = -g0 at 0, g1 at 1
  8. 7c <- SOLVE(A, b) ▷ symmetric positive definite if sigma is above the bound
  9. 8return the coefficients c, k + 1 per cell

Lines L1 to L3 are the usual cell assembly, with no coupling between cells. Lines L4 and L5 couple the two cells that meet at a node: a node has two sides inside the domain and one side on the boundary, and the products of the mean and jump functionals of the sides give a block of size (k+1)×(k+1)(k+1) \times (k+1) for each pair. Line L6 puts the boundary data into the load, which is how the method imposes u=gu = g without fixing any unknown. A penalty of σ>2k2\sigma > 2k^2 is always enough in this 1D setting, and the code takes σ=2k2+1\sigma = 2k^2 + 1 by default.

Example

Take −u′′=2-u'' = 2 with u(0)=u(1)=0u(0) = u(1) = 0, so u=x(1−x)u = x(1 - x), and m=2m = 2, k=1k = 1, σ=3\sigma = 3, h=12h = \frac12. The unknowns are (c0,0,c0,1,c1,0,c1,1)(c_{0,0}, c_{0,1}, c_{1,0}, c_{1,1}) with uh=cj,0+cj,1ξu_h = c_{j,0} + c_{j,1}\xi on cell jj. Each step adds the following to the matrix and the load:

step what it adds
L2, cell 0 and cell 1 (ϕ1′,ϕ1′)K=1/h=2(\phi_1', \phi_1')_K = 1/h = 2 at (0,1),(0,1)(0{,}1), (0{,}1) and at (1,1),(1,1)(1{,}1), (1{,}1)
L3 b=(1,12,1,12)b = (1, \tfrac12, 1, \tfrac12), since ∫K2 dx=1\int_K 2\,d x = 1 and ∫K2ξ dx=12\int_K 2\xi\,d x = \tfrac12
L5, node x=0x = 0 one side (cell 0, left end); the penalty σh=6\frac{\sigma}{h} = 6 gives 66 at (0,0),(0,0)(0{,}0),(0{,}0), and the flux terms give 22 at (0,0),(0,1)(0{,}0),(0{,}1) and its mirror
L5, node x=12x = \frac12 two sides with weights 12\frac12; penalty block 6 [ ⋅ ][ ⋅ ]6\,[\,\cdot\,][\,\cdot\,] and flux blocks between cells 0 and 1
L5, node x=1x = 1 one side (cell 1, right end), the mirror image of node 00
L6 nothing, because g0=g1=0g_0 = g_1 = 0

The assembled system is

A=(127−6−176−5−1−6−5125−1−154),b=(112112),A = \begin{pmatrix} 12 & 7 & -6 & -1 \\ 7 & 6 & -5 & -1 \\ -6 & -5 & 12 & 5 \\ -1 & -1 & 5 & 4\end{pmatrix}, \qquad b = \begin{pmatrix} 1 \\ \tfrac12 \\ 1 \\ \tfrac12\end{pmatrix},

and line L7 gives uh=18+18ξu_h = \frac18 + \frac18\xi on (0,12)(0, \frac12) and uh=14−18ξu_h = \frac14 - \frac18\xi on (12,1)(\frac12, 1). The two pieces meet at uh(12)=14u_h(\frac12) = \frac14, which is exact, but the boundary values are uh(0+)=uh(1−)=18u_h(0^+) = u_h(1^-) = \frac18 in place of 00. For this mesh uh(0+)=14(σ−1)u_h(0^+) = \frac{1}{4(\sigma - 1)} exactly, so σ=10\sigma = 10 gives 136\frac1{36} and σ=100\sigma = 100 gives 1396\frac1{396}. A larger penalty pulls the boundary values toward the data, and the error still goes to zero as h→0h \to 0 for any fixed σ\sigma above the bound.

Convergence (measurement). For u=sin⁡(πx)u = \sin(\pi x) the reference code gives, at m=4,8,16,32m = 4, 8, 16, 32:

kk L2L^2 errors order broken H1H^1 errors order
1 3.53×10−23.53 \times 10^{-2}, 9.66×10−39.66 \times 10^{-3}, 2.47×10−32.47 \times 10^{-3}, 6.21×10−46.21 \times 10^{-4} 1.99 0.5310.531, 0.2550.255, 0.1260.126, 0.06300.0630 1.00
2 1.44×10−31.44 \times 10^{-3}, 1.67×10−41.67 \times 10^{-4}, 2.01×10−52.01 \times 10^{-5}, 2.47×10−62.47 \times 10^{-6} 3.03 6.28×10−26.28 \times 10^{-2}, 1.45×10−21.45 \times 10^{-2}, 3.47×10−33.47 \times 10^{-3}, 8.48×10−48.48 \times 10^{-4} 2.03
3 8.49×10−58.49 \times 10^{-5}, 5.52×10−65.52 \times 10^{-6}, 3.48×10−73.48 \times 10^{-7}, 2.18×10−82.18 \times 10^{-8} 4.00 3.45×10−33.45 \times 10^{-3}, 4.25×10−44.25 \times 10^{-4}, 5.30×10−55.30 \times 10^{-5}, 6.62×10−66.62 \times 10^{-6} 3.00

The orders shown are those of the last refinement, and they match k+1k + 1 and kk.

Correctness

The full proof is in the correctness proof. It first shows that lines L1 to L6 compute the matrix of aha_h and the vector of lhl_h: at each node the mean and the jump are sums over the sides with the weights and signs of line L4, and line L5 expands their products. Integration by parts on each cell then shows consistency: for u∈H2u \in H^2, the cell terms give (f,v)(f, v) plus ∑eu′(xe)[v]e\sum_e u'(x_e)[v]_e, which the first face term cancels, and the other terms reduce to the boundary data of lhl_h. The form is symmetric by construction. With the trace inverse inequality p(z)2≤(n+1)2h∥p∥2p(z)^2 \le \frac{(n+1)^2}{h}\|p\|^2 for polynomials of degree nn, which follows from the Legendre basis, the face term is bounded by the cell terms, and for σ>ck2\sigma > ck^2 with c=32c = \frac32 (m≥2m \ge 2) or c=2c = 2 (m=1m = 1) the form is bounded below by a positive multiple of ∑K∥v′∥K2+∑e1h[v]e2\sum_K\|v'\|_K^2 + \sum_e\frac1h[v]_e^2. So the matrix is symmetric positive definite and the solution is unique. Polynomials of degree kk are reproduced exactly.

Proof: SIPG assembles a symmetric consistent form that is positive definite above the penalty boundfull

Setting. The problem is −u′′=f-u'' = f on (0,1)(0, 1) with u(0)=g0u(0) = g_0 and u(1)=g1u(1) = g_1. The mesh has the nodes xe=ehx_e = eh, e=0,…,me = 0, \ldots, m, h=1/mh = 1/m, and the cells Kj=(xj,xj+1)K_j = (x_j, x_{j+1}). The space VhV_h holds the functions whose restriction to each cell is a polynomial of degree at most k≥1k \ge 1, with no continuity between cells. For v∈Vhv \in V_h the jump and the average at a node are

[v]e=v(xe−)−v(xe+),{v′}e=12(v′(xe−)+v′(xe+))(0<e<m),[v]_e = v(x_e^-) - v(x_e^+), \quad \{v'\}_e = \tfrac12\bigl(v'(x_e^-) + v'(x_e^+)\bigr) \quad (0 < e < m),
[v]m=v(1−),{v′}m=v′(1−),[v]0=−v(0+),{v′}0=v′(0+).[v]_m = v(1^-), \quad \{v'\}_m = v'(1^-), \qquad [v]_0 = -v(0^+), \quad \{v'\}_0 = v'(0^+).

Let [g]0=−g0[g]_0 = -g_0, [g]m=g1[g]_m = g_1 and [g]e=0[g]_e = 0 for 0<e<m0 < e < m. For σ>0\sigma > 0 the SIPG forms are

ah(w,v)=∑j(w′,v′)Kj−∑e=0m({w′}e[v]e+{v′}e[w]e)+∑e=0mσh[w]e[v]e,a_h(w, v) = \sum_j (w', v')_{K_j} - \sum_{e=0}^m\bigl(\{w'\}_e[v]_e + \{v'\}_e[w]_e\bigr) + \sum_{e=0}^m\frac{\sigma}{h}[w]_e[v]_e,
lh(v)=(f,v)−∑e∈{0,m}{v′}e[g]e+∑e∈{0,m}σh[g]e[v]e.l_h(v) = (f, v) - \sum_{e \in \{0, m\}}\{v'\}_e[g]_e + \sum_{e \in \{0, m\}}\frac{\sigma}{h}[g]_e[v]_e.

The basis of VhV_h is ϕj,r(x)=ξr\phi_{j,r}(x) = \xi^r on KjK_j with ξ=(x−xj)/h\xi = (x - x_j)/h and 00 elsewhere, for 0≤r≤k0 \le r \le k.

Claim 1 (assembly). The matrix and the vector built by lines L1 to L6 are A[(j,r),(i,s)]=ah(ϕi,s,ϕj,r)A[(j, r), (i, s)] = a_h(\phi_{i,s}, \phi_{j,r}) and b[(j,r)]=lh(ϕj,r)b[(j, r)] = l_h(\phi_{j,r}), when the quadrature of line L3 is exact for fϕj,rf\phi_{j,r}.

Proof. The volume part: ϕi,s′ϕj,r′\phi_{i,s}'\phi_{j,r}' is zero unless i=ji = j, and on KjK_j it equals rsh2ξr+s−2\frac{rs}{h^2}\xi^{r+s-2}, so its integral is rsh(r+s−1)\frac{rs}{h(r+s-1)} for r,s≥1r, s \ge 1 and 00 otherwise. Line L2 adds exactly these values. Line L3 adds (f,ϕj,r)Kj(f, \phi_{j,r})_{K_j}, which is (f,ϕj,r)(f, \phi_{j,r}) since ϕj,r\phi_{j,r} vanishes off KjK_j.

The node part: at node ee the code lists the sides of the node as tuples (cell, end, weight ww, sign ss). An interior node has the left cell at its right end with (w,s)=(12,+1)(w, s) = (\tfrac12, +1) and the right cell at its left end with (12,−1)(\tfrac12, -1); node mm has only the left cell with (1,+1)(1, +1); node 00 has only the right cell with (1,−1)(1, -1). Comparing with the definitions, for every v∈Vhv \in V_h

{v′}e=∑sidesw vside′(xe),[v]e=∑sidess vside(xe),\{v'\}_e = \sum_{\text{sides}} w\,v'_{\text{side}}(x_e), \qquad [v]_e = \sum_{\text{sides}} s\,v_{\text{side}}(x_e),

where vsidev_{\text{side}} is the polynomial of that cell. A basis function is nonzero on one cell only, so it contributes to these sums only through the side of its own cell. Line L5 loops over all pairs (trial side, test side) and adds −wuϕs′ svϕr−wvϕr′ suϕs+σhsuϕs svϕr-w_u\phi'_s\,s_v\phi_r - w_v\phi'_r\,s_u\phi_s + \frac{\sigma}{h}s_u\phi_s\,s_v\phi_r, with the values and derivatives from local_traces. Summing over the pairs gives the products −{ϕi,s′}e[ϕj,r]e−{ϕj,r′}e[ϕi,s]e+σh[ϕi,s]e[ϕj,r]e-\{\phi_{i,s}'\}_e[\phi_{j,r}]_e - \{\phi_{j,r}'\}_e[\phi_{i,s}]_e + \frac{\sigma}{h}[\phi_{i,s}]_e[\phi_{j,r}]_e, because each product of two sums is the sum over all pairs. The values in local_traces are those of ξr\xi^r: at the left end the value is 11 for r=0r = 0 and the derivative is 1/h1/h for r=1r = 1, all others 00; at the right end the value is 11 and the derivative is r/hr/h. Line L6 adds −{ϕj,r′}e[g]e+σh[g]e[ϕj,r]e-\{\phi_{j,r}'\}_e[g]_e + \frac{\sigma}{h}[g]_e[\phi_{j,r}]_e at e=0e = 0 and e=me = m, using the single side there. Summing over all nodes gives aha_h and lhl_h. □\square

Claim 2 (consistency). If u∈H2(0,1)u \in H^2(0, 1) is the exact solution, then ah(u,v)=lh(v)a_h(u, v) = l_h(v) for all v∈Vhv \in V_h.

Proof. In one dimension u∈H2u \in H^2 means uu and u′u' are continuous, so [u]e=0[u]_e = 0 and {u′}e=u′(xe)\{u'\}_e = u'(x_e) at interior nodes, and [u]e=[g]e[u]_e = [g]_e at the two boundary nodes. Integration by parts on each cell gives (u′,v′)Kj=−(u′′,v)Kj+u′(xj+1)v(xj+1−)−u′(xj)v(xj+)(u', v')_{K_j} = -(u'', v)_{K_j} + u'(x_{j+1})v(x_{j+1}^-) - u'(x_j)v(x_j^+). Summing over jj and collecting the terms at each node,

∑j(u′,v′)Kj=(f,v)+∑e=0mu′(xe)[v]e,\sum_j (u', v')_{K_j} = (f, v) + \sum_{e=0}^m u'(x_e)[v]_e,

because at an interior node the two terms give u′(xe)(v(xe−)−v(xe+))u'(x_e)(v(x_e^-) - v(x_e^+)), at x=1x = 1 the term is u′(1)v(1−)u'(1)v(1^-) and at x=0x = 0 it is −u′(0)v(0+)-u'(0)v(0^+). So the first two sums of ah(u,v)a_h(u, v) add up to (f,v)(f, v). The remaining terms only involve [u]e[u]_e, which is 00 inside and [g]e[g]_e at the boundary, so they equal −∑e∈{0,m}{v′}e[g]e+∑e∈{0,m}σh[g]e[v]e-\sum_{e \in \{0,m\}}\{v'\}_e[g]_e + \sum_{e \in \{0,m\}}\frac{\sigma}{h}[g]_e[v]_e. Together this is lh(v)l_h(v). □\square

Claim 3 (symmetry). ah(w,v)=ah(v,w)a_h(w, v) = a_h(v, w), so the matrix of Claim 1 is symmetric.

Proof. Each of the three sums is unchanged when ww and vv are exchanged: the first and the third are symmetric products, and the middle sum contains both {w′}[v]\{w'\}[v] and {v′}[w]\{v'\}[w]. □\square

Lemma 4 (trace inverse inequality). For a polynomial pp of degree at most nn on an interval II of length hh and an end point zz of II, p(z)2≤(n+1)2h∥p∥L2(I)2p(z)^2 \le \frac{(n+1)^2}{h}\|p\|_{L^2(I)}^2.

Proof. Map II to (−1,1)(-1, 1) by an affine map that sends zz to 11; then ∥p∥I2=h2∥p^∥(−1,1)2\|p\|_I^2 = \frac{h}{2}\|\hat p\|_{(-1,1)}^2 and p(z)=p^(1)p(z) = \hat p(1). The Legendre polynomials PiP_i satisfy Pi(1)=1P_i(1) = 1 and ∫−11PiPl=22i+1δil\int_{-1}^1 P_iP_l = \frac{2}{2i+1}\delta_{il}, so Li=(2i+1)/2 PiL_i = \sqrt{(2i+1)/2}\,P_i for i=0,…,ni = 0, \ldots, n form an orthonormal basis of the polynomials of degree at most nn. Write p^=∑iciLi\hat p = \sum_i c_iL_i. By the Cauchy-Schwarz inequality, p^(1)2=(∑ici(2i+1)/2)2≤∑ici2 ∑i=0n2i+12=(n+1)22∥p^∥2\hat p(1)^2 = \bigl(\sum_i c_i\sqrt{(2i+1)/2}\bigr)^2 \le \sum_i c_i^2\,\sum_{i=0}^n\frac{2i+1}{2} = \frac{(n+1)^2}{2}\|\hat p\|^2. Then p(z)2≤(n+1)22⋅2h∥p∥I2p(z)^2 \le \frac{(n+1)^2}{2}\cdot\frac{2}{h}\|p\|_I^2. □\square

Claim 5 (positive definiteness). Let c=3/2c = 3/2 if m≥2m \ge 2 and c=2c = 2 if m=1m = 1. If σ>ck2\sigma > ck^2, then for all v∈Vhv \in V_h

ah(v,v)≥θ(∑j∥v′∥Kj2+∑e1h[v]e2),θ=min⁡(σ−ck2σ+ck2,σ−ck22)>0,a_h(v, v) \ge \theta\Bigl(\sum_j\|v'\|_{K_j}^2 + \sum_e\frac{1}{h}[v]_e^2\Bigr), \qquad \theta = \min\Bigl(\frac{\sigma - ck^2}{\sigma + ck^2}, \frac{\sigma - ck^2}{2}\Bigr) > 0,

and ah(v,v)=0a_h(v, v) = 0 only for v=0v = 0. So the matrix is symmetric positive definite.

Proof. ah(v,v)=∑j∥v′∥Kj2−2∑e{v′}e[v]e+σh∑e[v]e2a_h(v, v) = \sum_j\|v'\|_{K_j}^2 - 2\sum_e\{v'\}_e[v]_e + \frac{\sigma}{h}\sum_e[v]_e^2. For δ>0\delta > 0, 2∣{v′}e[v]e∣≤δh{v′}e2+1δh[v]e22|\{v'\}_e[v]_e| \le \delta h\{v'\}_e^2 + \frac{1}{\delta h}[v]_e^2. At an interior node {v′}e2≤12(v′(xe−)2+v′(xe+)2)\{v'\}_e^2 \le \frac12\bigl(v'(x_e^-)^2 + v'(x_e^+)^2\bigr), and at a boundary node {v′}e2\{v'\}_e^2 is the square of the one-sided value. So ∑eh{v′}e2\sum_e h\{v'\}_e^2 is at most a sum over the cell ends of ω h v′(end)2\omega\,h\,v'(\text{end})^2, with ω=12\omega = \frac12 at an interior node and ω=1\omega = 1 at a boundary node. The two weights of one cell add up to at most cc: to 11 for a cell with two interior ends, to 32\frac32 for a cell with one boundary end, and to 22 only when m=1m = 1. By Lemma 4 with n=k−1n = k - 1, h v′(end)2≤k2∥v′∥Kj2h\,v'(\text{end})^2 \le k^2\|v'\|_{K_j}^2. Hence ∑eh{v′}e2≤ck2∑j∥v′∥Kj2\sum_e h\{v'\}_e^2 \le ck^2\sum_j\|v'\|_{K_j}^2 and

ah(v,v)≥(1−δck2)∑j∥v′∥Kj2+(σ−1δ)∑e1h[v]e2.a_h(v, v) \ge (1 - \delta ck^2)\sum_j\|v'\|_{K_j}^2 + \Bigl(\sigma - \frac1\delta\Bigr)\sum_e\frac1h[v]_e^2.

Take δ=2/(σ+ck2)\delta = 2/(\sigma + ck^2). Then 1−δck2=σ−ck2σ+ck21 - \delta ck^2 = \frac{\sigma - ck^2}{\sigma + ck^2} and σ−1δ=σ−ck22\sigma - \frac1\delta = \frac{\sigma - ck^2}{2}, both positive, which gives the bound. If ah(v,v)=0a_h(v, v) = 0, then v′=0v' = 0 on every cell and every jump is 00. So vv is one constant on (0,1)(0, 1), and [v]m=v(1−)=0[v]_m = v(1^-) = 0 makes it 00. □\square

Conclusion. By Claim 1 the code builds the matrix of aha_h and the vector of lhl_h in the basis ϕj,r\phi_{j,r}. By Claims 3 and 5 the matrix is symmetric positive definite when σ>ck2\sigma > ck^2, in particular for the default σ=2k2+1\sigma = 2k^2 + 1 of the code, so it is nonsingular, Gaussian elimination in line L7 finds the unique solution, and line L8 returns its coefficients cell by cell. By Claim 2 the exact solution satisfies the same equations, so the error e=u−uhe = u - u_h satisfies ah(e,v)=0a_h(e, v) = 0 for all v∈Vhv \in V_h. In particular, if uu is a polynomial of degree at most kk, then u∈Vhu \in V_h solves the discrete problem, and by uniqueness uh=uu_h = u. ■\blacksquare

Complexity

There are N=m(k+1)N = m(k+1) unknowns. Line L2 does Θ(k2)\Theta(k^2) work per cell and line L3 does five evaluations of ff per basis function, so the cell loop costs Θ(mk2)\Theta(mk^2). Each node has at most two sides and four side pairs, each a block of (k+1)2(k+1)^2 entries, so lines L4 to L6 cost Θ(mk2)\Theta(mk^2). The matrix is block tridiagonal with blocks of size k+1k + 1. The reference code stores it densely, which takes Θ(N2)=Θ(m2k2)\Theta(N^2) = \Theta(m^2k^2) memory, and solves it with Gaussian elimination in Θ(N3)=Θ(m3k3)\Theta(N^3) = \Theta(m^3k^3) time, the bound in the front matter. A block tridiagonal solver costs Θ(mk3)\Theta(mk^3) time and Θ(mk2)\Theta(mk^2) memory. In several dimensions, the matrix is sparse with one dense block per cell and one per pair of neighbors, and conjugate gradients with a good preconditioner applies because the matrix is symmetric positive definite.

Properties

  • Consistency and adjoint consistency (theorem). The exact solution satisfies the discrete equations, and because the form is symmetric, the solution of the dual problem does too. The second fact gives the L2L^2 order hk+1h^{k+1} by the Aubin-Nitsche argument.
  • Coercivity above a bound (theorem). In 1D, σ>32k2\sigma > \frac32k^2 for m≥2m \ge 2 and σ>2k2\sigma > 2k^2 for m=1m = 1 are sufficient. For k=1k = 1 these bounds are sharp: the reference code finds the thresholds 1.51.5 for m=2m = 2 and 22 for m=1m = 1. For k≥2k \ge 2 the measured thresholds are smaller, for example about 4.434.43 for k=2k = 2 and 9.469.46 for k=3k = 3 at m=8m = 8, against the sufficient bounds 66 and 13.513.5.
  • Optimal orders (theorem). For u∈Hk+1u \in H^{k+1}, the broken energy error is O(hk)O(h^k) and the L2L^2 error is O(hk+1)O(h^{k+1}), with constants that depend on σ\sigma and the shape regularity.
  • Local conservation. Testing with v=1v = 1 on one cell gives a flux balance on that cell with the numerical flux {uh′}−σh[uh]\{u_h'\} - \frac{\sigma}{h}[u_h].
  • Weak boundary values. The discrete solution does not take the boundary values exactly, as the example shows.
  • More unknowns than continuous elements. For degree kk there are m(k+1)m(k+1) unknowns in place of mk+1mk + 1, and the gap is larger in several dimensions.

Variants and improvements

  • NIPG and IIPG. The nonsymmetric interior penalty method changes the sign of the term {∇v⋅n}[w]\{\nabla v\cdot n\}[w], so the two flux terms cancel in ah(v,v)a_h(v, v) and the form is coercive for every σ>0\sigma > 0. It loses adjoint consistency, so the proved L2L^2 order is only hkh^k, and computations show the lost order for some degrees. The incomplete method drops that term. The alias "interior penalty discontinuous Galerkin" often refers to the whole family, not only to SIPG.
  • Explicit penalty bounds. Shahbazi gave explicit values of σ\sigma for simplices based on the sharp trace inverse inequality, and many codes use them in place of a guess.
  • Weighted averages. For a coefficient κ\kappa that jumps across faces, averages weighted by κ\kappa and a penalty with the harmonic mean of κ\kappa keep the method robust.
  • Local discontinuous Galerkin and Bassi-Rebay. Use a lifting of the jumps in place of the penalty, which gives a stability parameter that does not need to be large.
  • Hybridizable discontinuous Galerkin. Introduces a trace unknown on faces, which gives a smaller global system after local elimination.
  • Time-dependent and convection problems. The SIPG form of the diffusion combines with upwind fluxes for the convection in the discontinuous Galerkin method.

When to use it

Use SIPG when a discontinuous Galerkin code must also handle diffusion terms, when the mesh has hanging nodes or the degree changes from cell to cell as in hp methods, or when local conservation matters. It keeps a symmetric positive definite matrix, which allows conjugate gradients and multigrid. Continuous elements have fewer unknowns for the same degree and need no penalty, so they are the cheaper choice for a smooth problem on a conforming mesh. If the choice of σ\sigma is a problem, NIPG, LDG or HDG avoid a large penalty.

Pitfalls

  • A penalty below the bound. With σ\sigma too small in line L5, the matrix is indefinite: for k=2k = 2 and m=6m = 6, σ=1\sigma = 1 makes the Cholesky factorization fail, and the solution can be wrong without any warning in a general solver. Use σ\sigma above the bound for the degree, which grows like k2k^2.
  • Wrong scaling of the penalty. The penalty is σ/h\sigma/h, not σ\sigma. A code that uses σ\sigma alone in line L5 loses coercivity on fine meshes and the error stops decreasing.
  • Forgetting the boundary terms of the load. Line L6 must add both −{ϕr′}[g]-\{\phi_r'\}[g] and σh[g][ϕr]\frac{\sigma}{h}[g][\phi_r]. With only the penalty part, the method is not consistent and the order drops.
  • Inconsistent jump signs. The mean and jump in line L5 must use the same orientation on both sides of a face. A sign error in one side makes the matrix nonsymmetric and the method inconsistent.
  • Too large a penalty. A huge σ\sigma is safe for coercivity but increases the condition number in proportion to σ\sigma, which slows iterative solvers.

Implementations

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

scimat.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Shared helper of the scientific-computing pages of https://algorithm.tamnd.com/. The authors are listed in prov/.

"""Small dense linear algebra and error norms for the scientific-computing pages.

A matrix is a list of rows and a vector is a list. Entries may be int,
float or fractions.Fraction. The routines that do not take a square root
(solve, inv, det and the arithmetic) keep Fraction entries exact.
cholesky, cholesky_solve and norm2 take square roots and return floats.

API (fixed; other pages copy this file byte for byte):
    zeros(m, n=None)        m by n zero matrix (n = m if not given)
    eye(n)                  n by n identity
    add(A, B), sub(A, B)    entrywise sum and difference (vectors or matrices)
    scale(c, A)             c times A (vector or matrix)
    matmul(A, B)            matrix product
    matvec(A, x)            matrix times vector
    transpose(A)            transpose
    dot(x, y)               inner product of two vectors
    norm2(x)                Euclidean norm of a vector, as a float
    outer(x, y)             outer product x y^T
    solve(A, b)             Gaussian elimination with partial pivoting;
                            b is a vector or a matrix of right sides
    inv(A)                  inverse of A
    det(A)                  determinant of A
    cholesky(A)             lower triangular L with A = L L^T (floats)
    cholesky_solve(L, b)    solve L L^T x = b for a vector b
    err_l1(e, dx=1)         sum |e_j| dx
    err_l2(e, dx=1)         sqrt(sum e_j^2 dx), as a float
    err_linf(e, dx=1)       max |e_j| (dx is not used)
    observed_order(errors)  [log2(E_i / E_(i+1)) for successive errors]
"""

import math


def zeros(m, n=None):
    """Return an m by n matrix of zeros (n = m if n is None)."""
    if n is None:
        n = m
    return [[0] * n for _ in range(m)]


def eye(n):
    """Return the n by n identity matrix."""
    out = zeros(n, n)
    for i in range(n):
        out[i][i] = 1
    return out


def _is_matrix(a):
    return len(a) > 0 and isinstance(a[0], list)


def add(a, b):
    """Return a + b for two vectors or two matrices of the same shape."""
    if _is_matrix(a):
        return [[x + y for x, y in zip(ra, rb)] for ra, rb in zip(a, b)]
    return [x + y for x, y in zip(a, b)]


def sub(a, b):
    """Return a - b for two vectors or two matrices of the same shape."""
    if _is_matrix(a):
        return [[x - y for x, y in zip(ra, rb)] for ra, rb in zip(a, b)]
    return [x - y for x, y in zip(a, b)]


def scale(c, a):
    """Return c times a, for a vector or a matrix a."""
    if _is_matrix(a):
        return [[c * x for x in row] for row in a]
    return [c * x for x in a]


def transpose(a):
    """Return the transpose of the matrix a."""
    return [list(col) for col in zip(*a)]


def matmul(a, b):
    """Return the matrix product a b."""
    bt = transpose(b)
    return [[sum(x * y for x, y in zip(row, col)) for col in bt] for row in a]


def matvec(a, x):
    """Return the product of the matrix a and the vector x."""
    return [sum(aij * xj for aij, xj in zip(row, x)) for row in a]


def dot(x, y):
    """Return the inner product of the vectors x and y."""
    return sum(a * b for a, b in zip(x, y))


def norm2(x):
    """Return the Euclidean norm of the vector x, as a float."""
    return math.sqrt(float(dot(x, x)))


def outer(x, y):
    """Return the outer product x y^T as a matrix."""
    return [[a * b for b in y] for a in x]


def _eliminate(a, rhs):
    """Reduce a to upper triangular form with partial pivoting.

    a is a copy of the square matrix, rhs a list of right side rows (one
    row per row of a) that receives the same row operations. Return the
    number of row swaps. Raise ValueError if a pivot is zero.
    """
    n = len(a)
    swaps = 0
    for k in range(n):
        p = max(range(k, n), key=lambda i: abs(a[i][k]))
        if a[p][k] == 0:
            raise ValueError("matrix is singular")
        if p != k:
            a[k], a[p] = a[p], a[k]
            rhs[k], rhs[p] = rhs[p], rhs[k]
            swaps += 1
        for i in range(k + 1, n):
            f = a[i][k] / a[k][k]
            if f == 0:
                continue
            for j in range(k, n):
                a[i][j] -= f * a[k][j]
            for j in range(len(rhs[i])):
                rhs[i][j] -= f * rhs[k][j]
    return swaps


def solve(a, b):
    """Solve a x = b by Gaussian elimination with partial pivoting.

    b is a vector (the result is a vector) or a matrix with one column per
    right side (the result is a matrix). Fraction entries stay exact.
    Raise ValueError if a is singular.
    """
    n = len(a)
    work = [list(row) for row in a]
    vector = not _is_matrix(b)
    rhs = [[v] for v in b] if vector else [list(row) for row in b]
    _eliminate(work, rhs)
    m = len(rhs[0]) if n else 0
    x = [[0] * m for _ in range(n)]
    for i in range(n - 1, -1, -1):
        for j in range(m):
            s = rhs[i][j]
            for k in range(i + 1, n):
                s -= work[i][k] * x[k][j]
            x[i][j] = s / work[i][i]
    if vector:
        return [row[0] for row in x]
    return x


def inv(a):
    """Return the inverse of the square matrix a."""
    return solve(a, eye(len(a)))


def det(a):
    """Return the determinant of the square matrix a (0 if singular)."""
    work = [list(row) for row in a]
    rhs = [[] for _ in a]
    try:
        swaps = _eliminate(work, rhs)
    except ValueError:
        return 0
    d = -1 if swaps % 2 else 1
    for i in range(len(a)):
        d *= work[i][i]
    return d


def cholesky(a):
    """Return the lower triangular L with a = L L^T, in floats.

    Raise ValueError if a is not symmetric positive definite.
    """
    n = len(a)
    low = [[0.0] * n for _ in range(n)]
    for j in range(n):
        s = float(a[j][j]) - sum(low[j][k] ** 2 for k in range(j))
        if s <= 0.0:
            raise ValueError("matrix is not positive definite")
        low[j][j] = math.sqrt(s)
        for i in range(j + 1, n):
            t = float(a[i][j]) - sum(low[i][k] * low[j][k] for k in range(j))
            low[i][j] = t / low[j][j]
    return low


def cholesky_solve(low, b):
    """Solve L L^T x = b, with L from cholesky, for a vector b."""
    n = len(low)
    y = [0.0] * n
    for i in range(n):
        y[i] = (float(b[i]) - sum(low[i][k] * y[k] for k in range(i))) / low[i][i]
    x = [0.0] * n
    for i in range(n - 1, -1, -1):
        x[i] = (y[i] - sum(low[k][i] * x[k] for k in range(i + 1, n))) / low[i][i]
    return x


def err_l1(e, dx=1):
    """Return the discrete L1 norm sum |e_j| dx."""
    return sum(abs(v) for v in e) * dx


def err_l2(e, dx=1):
    """Return the discrete L2 norm sqrt(sum e_j^2 dx), as a float."""
    return math.sqrt(float(sum(v * v for v in e) * dx))


def err_linf(e, dx=1):
    """Return the max norm max |e_j|. dx is accepted for a uniform call and not used."""
    return max(abs(v) for v in e)


def observed_order(errors):
    """Return [log2(E_i / E_(i+1))] for a list of errors on meshes h, h/2, h/4, ..."""
    return [math.log2(float(errors[i]) / float(errors[i + 1])) for i in range(len(errors) - 1)]
symmetric_interior_penalty_galerkin.py 111 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/symmetric-interior-penalty-galerkin/. The authors are listed in prov/Z6FE5T.jsonl.

"""SIPG for -u'' = f on (0, 1) with u(0) = g0 and u(1) = g1, imposed weakly.

The mesh is uniform with m cells x_j = j h, h = 1/m. On each cell the
discrete solution is a polynomial of degree k, written in the local
monomial basis phi_r(x) = xi^r with xi = (x - x_j) / h, r = 0, ..., k.
The unknown of (cell j, power r) has the global index j (k + 1) + r.

Jumps and averages at a node x_e: [v] = v(x_e-) - v(x_e+) and
{v'} = (v'(x_e-) + v'(x_e+)) / 2 inside; [v] = v(1-), {v'} = v'(1-) at
x = 1 and [v] = -v(0+), {v'} = v'(0+) at x = 0. The bilinear form is

    a(u, v) = sum_K (u', v')_K - sum_e ({u'}[v] + {v'}[u]) + sum_e (sigma / h) [u][v].

With Fraction data the matrix and the solution are exact.
"""

from fractions import Fraction

import scimat

BOOLE = [(Fraction(0), Fraction(7, 90)), (Fraction(1, 4), Fraction(32, 90)),
         (Fraction(1, 2), Fraction(12, 90)), (Fraction(3, 4), Fraction(32, 90)),
         (Fraction(1), Fraction(7, 90))]


def local_traces(k, h, side):
    """Return (values, derivatives) of phi_0..phi_k at the left (side=0) or right (side=1) end."""
    if side == 0:
        val = [1 if r == 0 else 0 for r in range(k + 1)]
        der = [1 / h if r == 1 else 0 for r in range(k + 1)]
    else:
        val = [1] * (k + 1)
        der = [r / h for r in range(k + 1)]
    return val, der


def sipg_system(f, m, k, sigma, g0=0, g1=0):
    """Return the SIPG matrix A and load vector b, of size m (k + 1).

    Precondition: m >= 1, k >= 1. sigma is the penalty parameter; the
    penalty on a node is sigma / h. Cost: Theta(m k^2) entries.
    """
    exact_data = isinstance(sigma, Fraction)
    h = Fraction(1, m) if exact_data else 1.0 / m
    n = k + 1
    size = m * n
    A = scimat.zeros(size)
    b = [0] * size
    for j in range(m):  # @line L1
        off = j * n
        for r in range(n):
            for s in range(n):
                if r >= 1 and s >= 1:
                    # (phi_s', phi_r')_K = r s / (h (r + s - 1))
                    A[off + r][off + s] += Fraction(r * s, r + s - 1) / h if exact_data else r * s / (h * (r + s - 1))  # @line L2
            for xi, w in BOOLE:
                b[off + r] += w * h * f(j * h + xi * h) * xi ** r  # @line L3
    # node e = 0..m; each side is (cell, end, weight of the average, sign of the jump)
    for e in range(m + 1):  # @line L4
        sides = []
        if e > 0:
            sides.append((e - 1, 1, Fraction(1, 2) if e < m else 1, 1))  # left cell, its right end
        if e < m:
            sides.append((e, 0, Fraction(1, 2) if e > 0 else 1, -1))  # right cell, its left end
        for (cu, eu, wu, su) in sides:
            vu, du = local_traces(k, h, eu)
            for (cv, ev, wv, sv) in sides:
                vv, dv = local_traces(k, h, ev)
                for r in range(n):  # test function row
                    for s in range(n):  # trial function column
                        term = -wu * du[s] * sv * vv[r]  # -{u'}[v]
                        term -= wv * dv[r] * su * vu[s]  # -{v'}[u]
                        term += sigma / h * su * vu[s] * sv * vv[r]  # (sigma/h)[u][v]
                        A[cv * n + r][cu * n + s] += term  # @line L5
        # weak Dirichlet data: the exact [u] is g1 at x = 1 and -g0 at x = 0
        if e == 0 or e == m:
            gj = -g0 if e == 0 else g1
            cv, ev, wv, sv = sides[0]
            vv, dv = local_traces(k, h, ev)
            for r in range(n):
                b[cv * n + r] += -wv * dv[r] * gj + sigma / h * sv * vv[r] * gj  # @line L6
    return A, b


def sipg(f, m, k, sigma=None, g0=0, g1=0):
    """Solve the SIPG problem; return the coefficients, one list of k + 1 per cell.

    sigma=None takes sigma = 2 k^2 + 1, above the coercivity bound 2 k^2.
    Cost: assembly Theta(m k^2); the dense solve here costs Theta((m k)^3),
    and a banded solver would cost Theta(m k^3).
    """
    if sigma is None:
        sigma = 2 * k * k + 1
    A, b = sipg_system(f, m, k, sigma, g0, g1)
    c = scimat.solve(A, b)  # @line L7
    n = k + 1
    return [c[j * n:(j + 1) * n] for j in range(m)]  # @line L8


def evaluate(coef, m, x):
    """Value and derivative of the discrete solution at x (from the right at a node, left at 1)."""
    h = 1.0 / m
    j = min(int(x * m), m - 1)
    xi = (x - j * h) / h
    c = coef[j]
    val = sum(float(cr) * xi ** r for r, cr in enumerate(c))
    der = sum(float(cr) * r * xi ** (r - 1) for r, cr in enumerate(c) if r >= 1) / h
    return val, der
test_symmetric_interior_penalty_galerkin.py 126 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/symmetric-interior-penalty-galerkin/. The authors are listed in prov/Z6FE5T.jsonl.

import math
import random
from fractions import Fraction as F

import pytest

import scimat
from symmetric_interior_penalty_galerkin import evaluate, sipg, sipg_system

# 5-point Gauss-Legendre rule on [-1, 1], independent of the code under test
GX = [-0.9061798459386640, -0.5384693101056831, 0.0, 0.5384693101056831, 0.9061798459386640]
GW = [0.2369268850561891, 0.4786286704993665, 0.5688888888888889, 0.4786286704993665, 0.2369268850561891]


def errors(coef, m, u, du):
    h = 1.0 / m
    e0 = e1 = 0.0
    for j in range(m):
        c = coef[j]
        for xg, wg in zip(GX, GW):
            xi = (xg + 1) / 2
            x = j * h + xi * h
            v = sum(float(cr) * xi ** r for r, cr in enumerate(c))
            d = sum(float(cr) * r * xi ** (r - 1) for r, cr in enumerate(c) if r) / h
            e0 += wg * h / 2 * (v - u(x)) ** 2
            e1 += wg * h / 2 * (d - du(x)) ** 2
    return math.sqrt(e0), math.sqrt(e1)


def local_coefficients(p, x0, h):
    """Coefficients of p(x0 + xi h) in powers of xi, for p given by its coefficients in powers of x."""
    out = [F(0)] * len(p)
    for n, pn in enumerate(p):
        # (x0 + xi h)^n = sum_r C(n, r) x0^(n - r) h^r xi^r
        for r in range(n + 1):
            out[r] += pn * math.comb(n, r) * x0 ** (n - r) * h ** r
    return out


def test_page_example_two_cells() -> None:
    A, b = sipg_system(lambda x: F(2), 2, 1, F(3))
    assert A == [[12, 7, -6, -1], [7, 6, -5, -1], [-6, -5, 12, 5], [-1, -1, 5, 4]]
    assert b == [1, F(1, 2), 1, F(1, 2)]
    c = sipg(lambda x: F(2), 2, 1, F(3))
    assert c == [[F(1, 8), F(1, 8)], [F(1, 4), F(-1, 8)]]
    # the boundary value is only imposed weakly: u_h(0+) = 1 / (4 (sigma - 1))
    for s in (F(3), F(10), F(100)):
        c = sipg(lambda x: F(2), 2, 1, s)
        assert c[0][0] == 1 / (4 * (s - 1))
        assert sum(c[0]) == F(1, 4) == c[1][0]


def test_matrix_is_symmetric_exactly() -> None:
    for m, k in ((1, 1), (3, 2), (4, 3)):
        A, _ = sipg_system(lambda x: F(0), m, k, F(2 * k * k + 1))
        n = len(A)
        assert all(A[i][j] == A[j][i] for i in range(n) for j in range(n))


def test_spd_above_bound_and_not_spd_below() -> None:
    for m in (1, 2, 5):
        for k in (1, 2, 3):
            A, _ = sipg_system(lambda x: 0.0, m, k, 2.0 * k * k + 0.01)
            scimat.cholesky(A)  # raises if not positive definite
    # k = 1: the bounds 2 (one cell) and 3/2 (two or more cells) are sharp
    for m, s in ((1, 2.0), (2, 1.5)):
        with pytest.raises(ValueError):
            scimat.cholesky(sipg_system(lambda x: 0.0, m, 1, s - 0.01)[0])
        scimat.cholesky(sipg_system(lambda x: 0.0, m, 1, s + 0.01)[0])
    with pytest.raises(ValueError):
        scimat.cholesky(sipg_system(lambda x: 0.0, 6, 2, 1.0)[0])


def test_polynomials_of_degree_k_are_reproduced_exactly() -> None:
    # u = x^2 with k = 2, Fraction arithmetic: the discrete solution is u itself
    m, k = 3, 2
    c = sipg(lambda x: F(-2), m, k, F(9), F(0), F(1))
    h = F(1, m)
    assert c == [local_coefficients([0, 0, 1], j * h, h) for j in range(m)]


def test_random_polynomials_against_closed_form() -> None:
    # oracle: the exact solution, a random polynomial of degree <= k
    rng = random.Random(11)
    for _ in range(500):
        k = rng.randint(1, 3)
        m = rng.randint(1, 4)
        p = [rng.randint(-5, 5) for _ in range(k + 1)]
        # f = -p''
        f2 = [-(n + 2) * (n + 1) * p[n + 2] for n in range(k - 1)]

        def f(x, f2=f2):
            return sum(cn * x ** n for n, cn in enumerate(f2))

        def u(x, p=p):
            return sum(cn * x ** n for n, cn in enumerate(p))

        sigma = 2.0 * k * k + rng.uniform(0.5, 10.0)
        coef = sipg(f, m, k, sigma, u(0.0), u(1.0))
        h = F(1, m)
        for j in range(m):
            want = local_coefficients([F(v) for v in p], j * h, h)
            assert all(abs(float(a) - float(b)) < 1e-8 for a, b in zip(coef[j], want))


def test_convergence_rates() -> None:
    u = lambda x: math.sin(math.pi * x)
    du = lambda x: math.pi * math.cos(math.pi * x)
    f = lambda x: math.pi ** 2 * math.sin(math.pi * x)
    for k in (1, 2, 3):
        e = [errors(sipg(f, m, k), m, u, du) for m in (8, 16)]
        assert abs(math.log2(e[0][0] / e[1][0]) - (k + 1)) < 0.15
        assert abs(math.log2(e[0][1] / e[1][1]) - k) < 0.15


def test_evaluate_and_weak_boundary_values() -> None:
    f = lambda x: math.pi ** 2 * math.sin(math.pi * x)
    coef = sipg(f, 8, 2)
    v, d = evaluate(coef, 8, 0.5)
    assert abs(v - 1.0) < 1e-3 and abs(d) < 1e-2
    # the boundary value is close to 0 but not equal to it
    v0, _ = evaluate(coef, 8, 0.0)
    assert 0 < abs(v0) < 1e-3

History

Joachim Nitsche imposed Dirichlet data in 1971 with a symmetric boundary term and a penalty, which is SIPG restricted to the boundary. Garth Baker used interior penalties for fourth-order problems in 1977, Jim Douglas and Todd Dupont used them for continuous elements in 1976, and Mary Wheeler combined collocation with interior penalties in 1978. Douglas Arnold analyzed the method with fully discontinuous elements in 1982, and this is the SIPG method used today. Interest returned at the end of the 1990s with the nonsymmetric methods of Oden, Babuška and Baumann and of Rivière, Wheeler and Girault, and in 2002 Arnold, Brezzi, Cockburn and Marini put these methods and LDG into one framework of numerical fluxes.

References

  1. Douglas N. Arnold, An interior penalty finite element method with discontinuous elements, SIAM Journal on Numerical Analysis 19(4) (1982) 742-760, the symmetric interior penalty method, its coercivity for a large enough penalty and the error estimates
  2. Mary Fanett Wheeler, An elliptic collocation-finite element method with interior penalties, SIAM Journal on Numerical Analysis 15(1) (1978) 152-161, interior penalty terms on the jumps of the normal derivative
  3. Douglas N. Arnold, Franco Brezzi, Bernardo Cockburn and L. Donatella Marini, Unified analysis of discontinuous Galerkin methods for elliptic problems, SIAM Journal on Numerical Analysis 39(5) (2002) 1749-1779, the flux formulation of SIPG, NIPG, IIPG, LDG and related methods, with their consistency, adjoint consistency and stability
  4. Béatrice Rivière, Discontinuous Galerkin Methods for Solving Elliptic and Parabolic Equations, SIAM Frontiers in Applied Mathematics 35, 2008, Chapter 1 (the one-dimensional problem with SIPG, NIPG and IIPG, the penalty bound and a code) and Chapter 2 (higher dimensions)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH1 sketch
  • a full proof of time.worst
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a scene preset for the example