Continuous Galerkin with Nitsche coupling

Continuous Galerkin with Nitsche coupling#

Author: Jørgen S. Dokken

SPDX-License-Identifier: MIT

In the previous demos, the space is discontinuous on every facet. Here we use continuous Lagrange elements in the region \(\Omega_i\) of each degree \(i\), and couple the regions weakly across the interfaces \(\mathcal{F}_{ij}\), \(i<j\), with Nitsche’s method [Nit71], using the SIPG terms [ABCM02] on the interfaces only. On the facets inside a region, the jump of a continuous function is zero, so these terms vanish and are not assembled.

Both the submesh and the restricted dofmap approaches support this: the space \(V_i\) is continuous within \(\Omega_i\), and its degrees of freedom on an interface are separate from those of \(V_j\), so the coupling is discontinuous exactly where the Nitsche terms are applied. The hierarchical approach does not, as selecting rows and columns of a continuous space cannot break its continuity at the interfaces, which move at every iteration.

Submeshes#

We run the adaptive loop with continuous spaces on the submeshes, and keep the final plot.

 it     dofs      error        eta  update   solve  estim.  values, degrees
  0      111  3.609e-02  3.643e+00   0.016   0.005   0.001  lambda=11.80595178, {1: 181}
  1      183  1.748e-02  1.879e+00   0.013   0.004   0.001  lambda=11.59387817, {1: 156, 2: 25}
  2      283  9.457e-03  1.090e+00   0.013   0.005   0.001  lambda=11.50250822, {1: 128, 2: 49, 3: 4}
  3      423  2.801e-03  5.882e-01   0.014   0.006   0.001  lambda=11.42666434, {1: 79, 2: 90, 3: 12}
  4      570  1.304e-03  3.990e-01   0.014   0.007   0.001  lambda=11.40960093, {1: 57, 2: 93, 3: 29, 4: 2}
  5      709  5.240e-04  2.600e-01   0.015   0.009   0.001  lambda=11.40071847, {1: 33, 2: 96, 3: 47, 4: 5}
  6      804  2.955e-04  1.982e-01   0.015   0.010   0.001  lambda=11.39811455, {1: 21, 2: 98, 3: 54, 4: 6, 5: 2}
  7      880  1.296e-04  1.508e-01   0.014   0.010   0.001  lambda=11.39622407, {1: 9, 2: 99, 3: 64, 4: 5, 5: 2, 6: 2}
  8      915  1.010e-04  1.316e-01   0.014   0.010   0.001  lambda=11.39589807, {1: 6, 2: 94, 3: 71, 4: 6, 6: 4}
  9     1052  2.728e-05  7.566e-02   0.013   0.011   0.001  lambda=11.39505808, {2: 39, 3: 130, 4: 8, 6: 4}
 10     1146  2.201e-05  6.595e-02   0.014   0.012   0.001  lambda=11.39499805, {2: 19, 3: 139, 4: 18, 5: 1, 6: 4}
 11     1402  2.002e-05  6.127e-02   0.015   0.015   0.001  lambda=11.39497544, {2: 1, 3: 121, 4: 50, 5: 4, 6: 5}
 12     1784  1.935e-05  5.945e-02   0.014   0.020   0.001  lambda=11.39496775, {3: 56, 4: 104, 5: 13, 6: 8}
 13     1949  1.929e-05  5.924e-02   0.014   0.023   0.001  lambda=11.39496709, {3: 24, 4: 124, 5: 23, 6: 10}
 14     1962  1.929e-05  5.925e-02   0.016   0.024   0.001  lambda=11.39496713, {3: 23, 4: 124, 5: 22, 6: 12}

We plot the solution and the degree of each cell. The solution is continuous within each region of cells with the same degree, while the regions are coupled weakly.

plotter = plot_iteration(submesh_approach, title="Continuous, submesh")
if plotter is not None:
    if not pyvista.OFF_SCREEN:
        plotter.show()
    else:
        plotter.screenshot("continuous.png")

Restricted dofmaps#

With the same parameters, the restricted dofmaps give the same eigenvalue at every iteration. For continuous spaces, a degree of freedom on the boundary of \(\Omega_i\) may be owned by a process that has no cell of degree \(i\), so dolfinx.common.create_sub_index_map() changes its owner.

 it     dofs      error        eta  update   solve  estim.  values, degrees
  0      111  3.609e-02  3.643e+00   0.013   0.004   0.001  lambda=11.80595178, {1: 181}
  1      183  1.748e-02  1.879e+00   0.011   0.004   0.001  lambda=11.59387817, {1: 156, 2: 25}
  2      283  9.457e-03  1.090e+00   0.011   0.005   0.001  lambda=11.50250822, {1: 128, 2: 49, 3: 4}
  3      423  2.801e-03  5.882e-01   0.010   0.007   0.001  lambda=11.42666434, {1: 79, 2: 90, 3: 12}
  4      570  1.304e-03  3.990e-01   0.011   0.009   0.001  lambda=11.40960093, {1: 57, 2: 93, 3: 29, 4: 2}
  5      709  5.240e-04  2.600e-01   0.010   0.011   0.001  lambda=11.40071847, {1: 33, 2: 96, 3: 47, 4: 5}
  6      804  2.955e-04  1.982e-01   0.011   0.011   0.001  lambda=11.39811455, {1: 21, 2: 98, 3: 54, 4: 6, 5: 2}
  7      880  1.296e-04  1.508e-01   0.011   0.012   0.001  lambda=11.39622407, {1: 9, 2: 99, 3: 64, 4: 5, 5: 2, 6: 2}
  8      915  1.010e-04  1.316e-01   0.011   0.013   0.001  lambda=11.39589807, {1: 6, 2: 94, 3: 71, 4: 6, 6: 4}
  9     1052  2.728e-05  7.566e-02   0.012   0.013   0.001  lambda=11.39505808, {2: 39, 3: 130, 4: 8, 6: 4}
 10     1146  2.201e-05  6.595e-02   0.011   0.014   0.001  lambda=11.39499805, {2: 19, 3: 139, 4: 18, 5: 1, 6: 4}
 11     1402  2.002e-05  6.127e-02   0.011   0.018   0.001  lambda=11.39497544, {2: 1, 3: 121, 4: 50, 5: 4, 6: 5}
 12     1784  1.935e-05  5.945e-02   0.011   0.025   0.001  lambda=11.39496775, {3: 56, 4: 104, 5: 13, 6: 8}
 13     1949  1.929e-05  5.924e-02   0.013   0.027   0.001  lambda=11.39496709, {3: 24, 4: 124, 5: 23, 6: 10}
 14     1962  1.929e-05  5.925e-02   0.011   0.025   0.001  lambda=11.39496713, {3: 23, 4: 124, 5: 22, 6: 12}
print_summary(histories)
     approach  its     dofs      error max rel. diff
      submesh   15     1962  1.929e-05      0.00e+00
   restricted   15     1962  1.929e-05      3.10e-14

Note

The indicator is dominated by the jump terms on the interfaces between the degree regions. Increasing the degree of a cell creates new interfaces, so the enriched region grows one layer of cells at a time, and the continuous method needs more iterations than the discontinuous one.

[ABCM02]

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):1749–1779, 2002. doi:10.1137/S0036142901384162.

[Nit71]

Joachim Nitsche. Über ein Variationsprinzip zur Lösung von Dirichlet-Problemen bei Verwendung von Teilräumen, die keinen Randbedingungen unterworfen sind. Abhandlungen aus dem Mathematischen Seminar der Universität Hamburg, 36(1):9–15, 1971. doi:10.1007/BF02995904.