Solving the curl-div system using divergence-free or curl-free finite elements

Similar documents
Divergence-free or curl-free finite elements for solving the curl-div system

An inverse problem for eddy current equations

Introduction to finite element exterior calculus

Coupling of eddy-current and circuit problems

High Order Differential Form-Based Elements for the Computation of Electromagnetic Field

field using second order edge elements in 3D

Lecture Note III: Least-Squares Method

Mixed Hybrid Finite Element Method: an introduction

Mimetic Finite Difference methods

H(div) and H(curl)-conforming Virtual Element Methods

ENERGY NORM A POSTERIORI ERROR ESTIMATES FOR MIXED FINITE ELEMENT METHODS

The Coulomb gauged vector potential formulation for the eddy-current problem in general geometry: well-posedness and numerical approximation

ETNA Kent State University

Yongdeok Kim and Seki Kim

EXACT DE RHAM SEQUENCES OF SPACES DEFINED ON MACRO-ELEMENTS IN TWO AND THREE SPATIAL DIMENSIONS

Inverse source problems for eddy current equations

A Multigrid Method for Two Dimensional Maxwell Interface Problems

FINITE ENERGY SOLUTIONS OF MIXED 3D DIV-CURL SYSTEMS

A posteriori error estimates for Maxwell Equations

A DELTA-REGULARIZATION FINITE ELEMENT METHOD FOR A DOUBLE CURL PROBLEM WITH DIVERGENCE-FREE CONSTRAINT

Inequalities of Babuška-Aziz and Friedrichs-Velte for differential forms

Finite element exterior calculus: A new approach to the stability of finite elements

Error analysis for a new mixed finite element method in 3D

Glowinski Pironneau method for the 3D ω-ψ equations

Numerical analysis of problems in electromagnetism

A Mixed Nonconforming Finite Element for Linear Elasticity

PAijpam.eu NEW H 1 (Ω) CONFORMING FINITE ELEMENTS ON HEXAHEDRA

Key words. Incompressible magnetohydrodynamics, mixed finite element methods, discontinuous Galerkin methods

New Model Stability Criteria for Mixed Finite Elements

Finite Element Modeling of Electromagnetic Systems

A posteriori error estimates for non conforming approximation of eigenvalue problems

A NOTE ON THE LADYŽENSKAJA-BABUŠKA-BREZZI CONDITION

MULTIGRID PRECONDITIONING IN H(div) ON NON-CONVEX POLYGONS* Dedicated to Professor Jim Douglas, Jr. on the occasion of his seventieth birthday.

arxiv: v2 [math.na] 23 Apr 2016

Error estimates for the Raviart-Thomas interpolation under the maximum angle condition

Chapter 1 Mathematical Foundations

arxiv: v2 [math.na] 8 Sep 2015

Finite Element Exterior Calculus. Douglas N. Arnold, University of Minnesota The 41st Woudschoten Conference 5 7 October 2016

Overlapping Schwarz Preconditioners for Spectral. Problem in H(curl)

Approximation of fluid-structure interaction problems with Lagrange multiplier

Finite Element Methods for Maxwell Equations

AN ANALYSIS OF NEW FINITE ELEMENT SPACES FOR MAXWELL S EQUATIONS

AMS subject classifications. Primary, 65N15, 65N30, 76D07; Secondary, 35B45, 35J50

Overlapping Schwarz preconditioners for Fekete spectral elements

ON LEAST-SQUARES FINITE ELEMENT METHODS FOR THE POISSON EQUATION AND THEIR CONNECTION TO THE DIRICHLET AND KELVIN PRINCIPLES

A posteriori error estimates in FEEC for the de Rham complex

1. Introduction. The Stokes problem seeks unknown functions u and p satisfying

Discontinuous Galerkin Methods

b i (x) u + c(x)u = f in Ω,

Local discontinuous Galerkin methods for elliptic problems

Applied'&'Computa/onal'Electromagne/cs (ACE) Part/III Introduc8on/to/the/Finite/Element/Technique/for/ Electromagne8c/Modelling

A NEW APPROXIMATION TECHNIQUE FOR DIV-CURL SYSTEMS

A priori error analysis of the BEM with graded meshes for the electric eld integral equation on polyhedral surfaces

Nitsche-type Mortaring for Maxwell s Equations

EXISTENCE AND REGULARITY OF SOLUTIONS FOR STOKES SYSTEMS WITH NON-SMOOTH BOUNDARY DATA IN A POLYHEDRON

QUADRILATERAL H(DIV) FINITE ELEMENTS

A Generalization for Stable Mixed Finite Elements

A local-structure-preserving local discontinuous Galerkin method for the Laplace equation

ENERGY NORM A POSTERIORI ERROR ESTIMATES FOR MIXED FINITE ELEMENT METHODS

A POSTERIORI ERROR ESTIMATES FOR MAXWELL EQUATIONS

ANDREA TOSELLI. Abstract. Two-level overlapping Schwarz methods are considered for nite element problems

A posteriori error analysis of an augmented mixed finite element method for Darcy flow

Error analysis of piecewise constant approximations of Darcy s law

Volume and surface integral equations for electromagnetic scattering by a dielectric body

Adaptive methods for control problems with finite-dimensional control space

Voltage and current excitation for time-harmonic eddy-current problems

On Friedrichs inequality, Helmholtz decomposition, vector potentials, and the div-curl lemma. Ben Schweizer 1

A Remark on the Regularity of Solutions of Maxwell s Equations on Lipschitz Domains

Math 225B: Differential Geometry, Final

Finite Element Multigrid Framework for Mimetic Finite Difference Discretizations

Weighted Regularization of Maxwell Equations Computations in Curvilinear Polygons

arxiv: v3 [math.na] 8 Sep 2015

Motivations. Outline. Finite element exterior calculus and the geometrical basis of numerical stability. References. Douglas N.

From the Boundary Element DDM to local Trefftz Finite Element Methods on Polyhedral Meshes

Mixed Finite Element Methods. Douglas N. Arnold, University of Minnesota The 41st Woudschoten Conference 5 October 2016

STOKES PROBLEM WITH SEVERAL TYPES OF BOUNDARY CONDITIONS IN AN EXTERIOR DOMAIN

Nedelec elements for computational electromagnetics

arxiv: v1 [math.na] 11 Jul 2011

MIXED FINITE ELEMENT APPROXIMATION OF THE VECTOR LAPLACIAN WITH DIRICHLET BOUNDARY CONDITIONS

A Robust Preconditioner for the Hessian System in Elliptic Optimal Control Problems

Lorenz gauged vector potential formulations for the time-harmonic eddy-current problem with L -regularity of material properties

arxiv: v1 [math.co] 25 Jun 2014

A note on discontinuous Galerkin divergence-free solutions of the Navier-Stokes equations

Multigrid Methods for Maxwell s Equations

Hybrid Discontinuous Galerkin methods for incompressible flow problems

Mixed Finite Elements Method

An a posteriori error estimate and a Comparison Theorem for the nonconforming P 1 element

Finite Elements for Magnetohydrodynamics and its Optimal Control

Adaptive Finite Element Methods Lecture Notes Winter Term 2017/18. R. Verfürth. Fakultät für Mathematik, Ruhr-Universität Bochum

Local flux mimetic finite difference methods

DISCRETE EXTENSION OPERATORS FOR MIXED FINITE ELEMENT SPACES ON LOCALLY REFINED MESHES

Domain Decomposition Preconditioners for Spectral Nédélec Elements in Two and Three Dimensions

R. M. Brown. 29 March 2008 / Regional AMS meeting in Baton Rouge. Department of Mathematics University of Kentucky. The mixed problem.

2 FORMULATIONS 2.1 The H-J formulation Let Ω be a domain consisting of a conducting region R and a non-conducting region S. Here assume that Ω, R and

INSTITUTE OF MATHEMATICS THE CZECH ACADEMY OF SCIENCES. A virtual overlapping Schwarz method for scalar elliptic problems in two dimensions

Global formulation for 3D magneto-static using flux and gauged potential approaches

Basics and some applications of the mortar element method

A posteriori error estimates for a Maxwell type problem

ON LEAST-SQUARES FINITE ELEMENT METHODS FOR THE POISSON EQUATION AND THEIR CONNECTION TO THE DIRICHLET AND KELVIN PRINCIPLES

INSTITUTE OF MATHEMATICS THE CZECH ACADEMY OF SCIENCES

Transcription:

Solving the curl-div system using divergence-free or curl-free finite elements Alberto Valli Dipartimento di Matematica, Università di Trento, Italy

or: Why I say to my students that divergence-free finite elements are not a suitable option?

Joint papers with: Ana Alonso Rodríguez Dipartimento di Matematica, Università di Trento, Italy and Enrico Bertolazzi Dipartimento di Ingegneria Industriale, Università di Trento, Italy Jessika Camaño Departamento de Matematica y Fisica Aplicadas, Universidad Catolica de la Santisima Concepcion, Chile Riccardo Ghiloni Dipartimento di Matematica, Università di Trento, Italy

Outline 1 Introduction 2 3 4

Introduction

The aim Aim of this talk is the analysis of the following three problems and of their mutual relations: (a) finding finite element potentials, namely, solving by means of finite elements the problems grad ψ = H, curl A = B, div v = G; (b) finding suitable basis functions for the spaces of curl-free or divergence-free finite elements; (c) based on (a) and (b), devising simple finite element schemes for the solution of the curl div system, which reads curl u = B in Ω div u = G in Ω (1) u n = a (or u n = b) on Ω.

First results Determining the necessary and sufficient conditions for assuring that a function defined in a bounded domain Ω R 3 is the gradient of a scalar potential, or the curl of a vector potential, or the divergence of a vector field is one of the most classical problem of vector analysis. The answer is well-known, and shows an interesting interplay of differential calculus and topology (see, e.g., Cantarella et al. (2002)).

First results (cont d) a vector field is the gradient of a scalar potential if and only if it is curl free and its line integral is vanishing on all the closed curves that furnish a basis of the first homology group of Ω; a vector field is the curl of a vector potential if and only if it is divergence free and its flux is vanishing across all the closed surfaces that furnish a basis of the second homology group of Ω, or, equivalently, across (all but one) the connected components of Ω; each scalar function is the divergence of a vector field.

First results (cont d) However, this theoretical result only clarifies when the answer is positive, and does not say how to determine an explicit and efficient procedure for constructing finite element potentials. Our approach is based on (simple) tools from algebraic topology and graph theory. We suppose to have: a basis σ n, n = 1,..., g, of the first homology group of Ω; a basis σ n, n = 1,..., g, of the first homology group of R 3 \ Ω; a spanning tree S h of the graph given by the nodes and the edges of the mesh T h. [Note: an easy way for constructing σ n and σ n is presented in Hiptmair and Ostrowski (2002); the determination of a spanning tree is a standard procedure in graph theory.]

First results (cont d) Let us also introduce the finite element spaces we will use: the space L h of continuous piecewise-linear elements, with dimension n v, the number of vertices in T h ; the space N h of Nédélec edge elements of degree 1, with dimension n e, the number of edges in T h ; the space RT h of Raviart-Thomas elements of degree 1, with dimension n f, the number of faces in T h ; the space PC h of (discontinuous) piecewise-constant elements, with dimension n t, the number of tetrahedra in T h.

The grad problem We want to solve grad ψ h = H h in the finite element context. This is an easy problem, and the only reason for considering it is that it is useful for understanding better the procedures needed for the other two problems. The right finite elements are: ψ h L h a piecewise-linear nodal element, H h N h a lowest order Nédélec edge element, and we only have to impose that the line integral of grad ψ h and H h on each edge of the mesh T h is the same. The fundamental theorem of calculus says that ψ h (v b ) ψ h (v a ) = grad ψ h τ = e e H h τ (2) for an edge e = [v a, v b ]. Hence the linear system associated to grad ψ h = H h has exactly two non-zero values per row.

The grad problem (cont d) Starting from a root v of the spanning tree S h, where, for the sake of uniqueness, we impose ψ h (v ) = 0, for an edge e = [v, v] S h we compute ψ h ( v) = ψ h (v ) + H h τ ; e since S h is a spanning tree, going on in this way we can visit all the nodes of T h. The spanning tree is therefore a tool for selecting the rows for which, using the additional equation ψ h (v ) = 0, one can eliminate the unknowns one after the other. We have thus found a nodal element ψ h such that its gradient has line integral on all the edges of the spanning tree equal to that of H h. Then is easy to show that the same is true for all the other edges.

The grad problem (cont d) In other words, we have given a constructive way for solving the problem { grad ψh = H h in Ω ψ h (v ) = 0. Since it can be easily proved that n e > n v 1 + g (the n e edges of the graph are more than the n v 1 edges in the spanning tree plus g edges, one for each homological cycle), this is a full rank overdetermined system with n e + 1 equations and n v unknowns. Problems with a similar structure will appear in the sequel. (3)

The curl problem We want to solve curl A h = B h in the finite element context. The right finite elements are: A h N h a lowest order Nédélec edge element, B h RT h a lowest order Raviart Thomas face element, and we only have to impose that the flux of curl A h and B h on each face of the mesh T h is the same. The Stokes theorem assures that A h τ + e 1 A h τ + e 2 A h τ = e 2 f curl A h ν f = f B h ν f, (4) where f = e 1 e 2 e 3, hence the linear system associated to curl A h = B h has exactly three non-zero values for each row.

The curl problem (cont d) With respect to the preceding case: three unknowns per row instead of two. Therefore, in order to devise an efficient elimination algorithm, it is useful to fix the value of other unknowns. The best situation should occur when the number of the new equations agrees with the dimension of the kernel of the curl operator. Since this kernel is given by the gradients of nodal elements plus the space generated by the basis of the first de Rham cohomology group of Ω, we see that its dimension is equal to n v 1 + g.

The curl problem (cont d) Having this in mind, we are led to the problem curl A h = B h in Ω σ n A h ds = ρ n n = 1,..., g e A h τ = 0 e S h, for arbitrarily given constants ρ n. Since the number of edges e in S h is n v 1, (5) 3 can be seen as a filter for gradients. On the other hand, homology and cohomology are in duality, hence (5) 2 can be seen as a filter for cohomology fields. This is a full rank overdetermined system, with n f + g + n v 1 equations and n e unknowns [recall that the Euler Poincaré formula says that n f + g + n v 1 = n e + n t + p]. It is not difficult to prove that it has a unique solution. (5)

Webb Forghani algorithm Webb and Forghani (1989) proposed this solution algorithm: Algorithm 1 take a face f for which at least one edge unknown has not yet been assigned 1 if exactly one edge unknown is not determined, compute its value from the Stokes relation (4) 2 if two or three edge unknowns are not determined, pass to another face. This is a simple elimination procedure for solving the linear system at hand, and it is quite efficient, as the computational cost is linearly dependent on the number of unknowns. The weak point is that: it can stop without having determined all the edge unknowns (even in simple topological situations!)

An explicit formula for the vector potential Cure: devise an explicit formula for the solution to (5). (We are able to do that if B h n = 0 on Ω, a quite natural condition in the most interesting physical situations, and for a suitable choice of the constants ρ n.) The explicit formula permits to restart the algorithm in case it stops (but it is better not using it for all the degrees of freedom, as it would be more expensive than the Webb Forghani algorithm).

The div problem We want to solve div v h = G h in the finite element context. The right finite elements are: v h RT h a lowest order Raviart Thomas face element, G h PC h a piecewise-constant element, and we have only to impose that the integral of div v h and of G h on each element of the mesh T h is the same. The Gauss theorem says that f 1 v h ν f + f 2 v h ν f + f 3 v h ν f + f 4 v h ν f = K div v h = K G h, (6) where K = f 1 f 2 f 3 f 4, hence the linear system associated to div v h = G h has exactly four unknowns per row.

The div problem (cont d) For having well-posedness of the system, we want to add equations by fixing the value of some unknowns. Similarly to what done before we start by analyzing the dimension of the kernel of the divergence operator. This kernel is given by the curl of the Nédélec elements plus the space generated by the basis of the second de Rham cohomology group of Ω. If we denote by ( Ω) 0,..., ( Ω) p the connected components of Ω, we know that the dimension of the second de Rham cohomology group of Ω is equal to p.

The div problem (cont d) On the other hand, it is easy to check that the dimension of the space of the curl of the Nédélec elements is equal to the number of the edges minus the dimension of the kernel of the curl operator: hence, it is equal to n e n v + 1 g. By the Euler Poincaré formula we have n v n e + n f n t = 1 g + p, hence the dimension of the space of the curl of the Nédélec elements can be rewritten as n f n t p. In conclusion, besides the topological conditions ( Ω) r v h n = c r, r = 1,..., p, that are a filter for the cohomology fields, we could add n f n t p equations.

A dual graph To do that, let us note that an internal face connects two tetrahedra, while a boundary face connects a tetrahedron and a connected component of Ω. We can therefore consider the following (connected) dual graph G h : the dual vertices are W = T Σ, where the elements of T are the tetrahedra of the mesh and the elements of Σ are the p + 1 connected components of Ω; the set of dual arcs is F, the set of the faces of the mesh.

A dual graph (cont d) The number of dual vertices is equal to n t + p + 1, hence a spanning tree M h of G h has n t + p dual arcs (and consequently its cotree has n f n t p dual arcs). Therefore the linear system div v h = G h in Ω ( Ω) v h n = c r r = 1,..., p (7) r f v h ν f = 0 f M h is a square linear system of n f equations and unknowns. It can be shown that this system has a unique solution.

Well-posedness of (7) The procedure is constructive, similar to the elimination procedure used for the grad problem but now going along the dual spanning tree, starting from the leaves. (Let us recall that a leaf of a spanning tree M h is a vertex of W that has only one arc of M h incident to it.) We can reduce the problem to the faces f M h. If w (a tetrahedron or a connected component) is a leaf of M h, then on it there is only one face f (w) belonging to the spanning tree M h, therefore the value of the flux of v h on f (w) can be computed by the Gauss theorem, if w is a tetrahedron or the connected component ( Ω) 0, or by the equation ( Ω) r v h n = c r, if w is the connected component ( Ω) r, r = 1,..., p (recall that we know that f v h ν f = 0 for all f M h ).

Well-posedness of (7) (cont d) We can iterate this argument: if we remove from the spanning tree M h a leaf and its corresponding incident arc, the remaining graph is still a tree. After a finite number of steps the remaining tree reduces to just on vertex, and the result is that f v h ν f is known for all f F.

A summary from to unknowns equations grad L h N h n v n e + 1 (> n v ) curl N h RT h n e n f + g + n v 1 = n e + n t + p div RT h PC h n f n t + p + n e n v + 1 g = n f Table:.

Curl-free finite elements The problem of describing in a suitable way curl-free finite elements is quite easy. In fact, it is straightforward to find a basis of the finite element space V 0,h = {v h N h curl v h = 0 in Ω, σ n v h ds = 0 n = 1,..., g}, as this space is coincident with grad L h (indeed, the conditions σ n v h ds = 0 are filtering all the curl-free vector fields that are not gradients, namely, the fields belonging to the first de Rham cohomology group). Thus we have only to identify and eliminate the kernel of the gradient operator: the constants. In conclusion, a basis for V 0,h is simply given by grad Φ i h, i = 1,..., n v 1, where Φ i h, i = 1,..., n v, are the standard nodal basis functions of L h. (8)

Divergence-free finite elements A more complicated situation arises for divergence-free finite elements. In fact, we start considering the space W 0,h = {v h RT h div v h = 0 in Ω, ( Ω) r v h n = 0 r = 1,..., p}, and it is easy to check that W 0,h = curl N h (the conditions ( Ω) r v h n = 0 are filtering all the divergence-free vector fields that are not curls, namely, the fields belonging to the second de Rham cohomology group). However, the problem is that the kernel of the curl operator is large: it contains the gradients of elements in L h and the fields belonging to the first de Rham cohomology group, and has dimension equal to n v 1 + g. (9)

Divergence-free finite elements (cont d) Thus we need: to devise a strategy for selecting n e n v + 1 g edges in order that the associated edge element basis functions have linearly independent curls. Results in this direction were obtained by Hecht (1981), Dubois (1990) and Scheichl (2002) for a simply-connected domain, and by Rapetti et al. (2003) for a κ-fold torus. A different approch, based on an algebraic point of view and the use of the dual graph, is due to Alotto and Perugia (1999). Here we present a general procedure for the determination of a set of locally-supported basis functions of W 0,h, together with an easy proof of its effectiveness.

Divergence-free finite elements (cont d) Let us assume for a while that Ω is simply-connected (therefore we have g = 0). Consider all the edges not belonging to the spanning tree S h, namely, belonging to the cotree C h ; their number is n e n v + 1. The result is: A basis of W 0,h is given by curl w j h, for the indices j such that the corresponding edges e j belong to the cotree C h (say, j = 1,..., n e n v + 1).

Divergence-free finite elements (cont d) The proof is quite simple and reads as follows: from n e n v +1 n e n v +1 0 = α j curl w j h = curl α j w j h j=1 we can conclude that n e n v +1 j=1 α j w j h is a gradient, say, grad ϕ h. This is an element of N h for which all the degrees of freedom associated to the edges belonging to the spanning tree are vanishing. Hence ϕ h is constant, and n e n v +1 j=1 α j w j h = 0. We can thus conclude that α j = 0 for all j = 1,..., n e n v + 1, since {w j +1 }ne nv h j=1 are linearly independent. j=1

Divergence-free finite elements (cont d) The general topological case needs the identification of g additional edges to discard: a possible option is to select one edge for each basis element σ n of the first homology group of Ω, having constructed the spanning tree in such a way that all the other edges of σ n belong to it. (For definiteness, suppose these edges are associated to the indices j = 1,..., g: the union of the spanning tree S h and these additional g edges was called belted tree in Bossavit (1998), Rapetti et al. (2003).) With this choice we have that the line integral of n e n v +1 j=g+1 α j w j h over σ n vanishes for each n = 1,..., g (all the edges contained in σ n belong to the belted tree, namely, they correspond to indices smaller than g + 1 or larger than n e n v + 1). Therefore ne nv +1 j=g+1 α j w j h is a gradient, and the argument develops as before.

First case: u n assigned on Ω The problem at hand (slightly more general than the one previously presented) reads curl (ηu) = B in Ω div u = G in Ω (ηu) n = a on Ω ( Ω) r u n = α r r = 1,..., p, where η is a symmetric matrix, uniformly positive definite in Ω, with entries belonging to L (Ω), B (L 2 (Ω)) 3, G L 2 (Ω), a H 1/2 (div τ ; Ω) [the space of tangential traces of vector fields belonging to H(curl ; Ω)], α R p. (10)

First case: u n assigned on Ω (cont d) The data satisfy the necessary conditions div B = 0 in Ω, Ω B ρ + Ω a ρ = 0 for each ρ H(m), and B n = div τ a on Ω. Here H(m) is the space of Neumann harmonic fields, namely, H(m) = {ρ (L 2 (Ω)) 3 curl ρ = 0 in Ω, div ρ = 0 in Ω, ρ n = 0 on Ω}. The first step of the procedure is to find a vector field u (L 2 (Ω)) 3 satisfying { div u = G in Ω ( Ω) r u n = α r r = 1,..., p. (11)

First case: u n assigned on Ω (cont d) Then the vector field W = u u has to satisfy curl (ηw) = B curl (ηu ) in Ω div W = 0 in Ω (ηw) n = a (ηu ) n on Ω ( Ω) r W n = 0 r = 1,..., p. (12) The second step is to devise a variational formulation of (12).

A variational formulation for the first case Multiplying the first equation by a test function v H(curl ; Ω), integrating in Ω and integrating by parts we find: Ω B v = Ω curl [η(w + u )] v = Ω η(w + u ) curl v Ω [η(w + u ) n] v = Ω ηw curl v + Ω ηu curl v Ω a v. Let us introduce the space W 0 = {v H(div ; Ω) div v = 0 in Ω, ( Ω) r v n = 0 r = 1,..., p}. It is readily seen that W 0 = curl [H(curl ; Ω)]. (13)

A variational formulation for the first case (cont d) The vector field W is thus a solution to W W 0 : Ω ηw curl v = Ω B v Ω ηu curl v + Ω a v v H(curl ; Ω). (14) More precisely, W is the unique solution of that problem: in fact, assuming B = u = a = 0, and taking v such that curl v = W, it follows at once Ω ηw W = 0, hence W = 0.

Finite element approximation of the first case The finite element approximation follows the same steps. The first one is finding a finite element potential u h RT h such that { div u h = G h in Ω ( Ω) r u h n = α (15) r r = 1,..., p, where G h PC h is the piecewise-constant interpolant I PC h G of G. This can be done as in (7).

Finite element approximation of the first case (cont d) The second step concerns the numerical approximation of problem (14). The natural choice for the finite element space is clearly the space W 0,h introduced in (9). The finite element approximation of (14) reads as follows: W h W 0,h : Ω ηw h curl v h = Ω B v h Ω ηu h curl v h + Ω a v h v h N h, (16) where Nh = span{wj +1 }ne nv h j=g+1. (17)

Finite element approximation of the first case (cont d) The corresponding algebraic problem is a square linear system of dimension n e n v + 1 g, and it is uniquely solvable. In fact, we note that W 0,h = curl Nh, hence we can choose v h N h such that curl vh = W h; from (16) we find at once W h = 0, provided that G = u h = a = 0. The convergence of this finite element scheme is easily shown by standard arguments. For the sake of completeness, let us present the proof.

Convergence of the approximation for the first case Theorem A. Let W W 0 and W h W 0,h be the solutions of problem (14) and (16), respectively. Set u = W + u and u h = W h + u h, where u H(div ; Ω) and u h RT h are solutions to problem (11) and (15), respectively. Assume that u is regular enough, so that the interpolant Ih RT u is defined. Then the following error estimate holds u u h H(div ;Ω) c 0 ( u Ih RT u L 2 (Ω) + G Ih PC G L 2 (Ω)). (18)

Convergence of the approximation for the first case (cont d) Proof. Since Nh H(curl ; Ω), we can choose v = v h Nh in (14). By subtracting (16) from (14) we end up with η[(w + u ) (W h + u h )] curl v h = 0 v h Nh, Ω namely, the consistency property η(u u h ) curl v h = 0 v h Nh. (19) Ω Then from W 0,h = curl Nh we can write W h = curl vh for a suitable vh N h, and using (19) we find

Convergence of the approximation for the first case (cont d) c 1 u u h 2 L 2 (Ω) Ω η(u u h) (u u h ) = Ω η(u u h) (u W h u h ) = Ω η(u u h) (u curl v h u h ) = Ω η(u u h) (u curl v h u h ) c 2 u u h L 2 (Ω) u Φ h u h L 2 (Ω) Φ h W 0,h. We can choose Φ h = (Ih RT u u h ) W 0,h; in fact, div (Ih RT u) = Ih PC (div u) = Ih PC G = G h and u n = ( Ω) r u n = α r for each r = 1,..., p. Then it ( Ω) r Ih RT follows at once u u h L 2 (Ω) c 2 c 1 u Ih RT u L 2 (Ω). Finally, div (u u h ) = G G h = G Ih PC G.

Convergence of the approximation for the first case (cont d) Note that a sufficient condition for defining the interpolant of u is that u (H 1 2 +δ (Ω)) 3, δ > 0. This is satisfied if, e.g., η is a scalar Lipschitz function in Ω and a (H γ ( Ω)) 3, γ > 0.

The algebraic problem for the first case The solution W h W 0,h can be written in terms of the basis as W h = n e n v +1 j=g+1 W j curl w h,j. Hence the finite dimensional problem (16) can be rewritten as n e n v +1 W j η curl w h,j curl w h,m j=g+1 Ω = Ω B w h,m (20) Ω η u h curl w h,m + a w h,m, for each m = g + 1,..., n e n v + 1. The matrix K with entries Kmj = η curl w h,j curl w h,m Ω is clearly symmetric and positive definite, as the vector fields curl w h,j are linearly independent. Ω

Second case: u n assigned on Ω The problem at hand reads curl u = B div (µu) = G µu n = b σ n u ds = β n n = 1,..., g, (21) where µ is a symmetric matrix, uniformly positive definite in Ω, with entries belonging to L (Ω), B (L 2 (Ω)) 3, G L 2 (Ω), b H 1/2 ( Ω), β R g.

Second case: u n assigned on Ω (cont d) The data satisfy the necessary conditions div B = 0 in Ω, Ω G = Ω b; moreover, in order that the line integral of u on σ n has a meaning, we also assume that B n = 0 on Ω (which is more restrictive than the necessary condition ( Ω) r B n = 0 for each r = 1,..., p). The first step of the procedure is to find a vector field u (L 2 (Ω)) 3 satisfying { curl u = B in Ω σ n u ds = β n n = 1,..., g. (22)

Second case: u n assigned on Ω (cont d) Then the vector field V = u u has to satisfy curl V = 0 in Ω div (µv) = G div (µu ) in Ω (µv) n = b (µu ) n on Ω σ n V ds = 0 n = 1,..., g, (23) The second step is to devise a variational formulation of (23).

A variational formulation for the second case Multiplying the second equation by a test function ϕ H 1 (Ω), integrating in Ω and integrating by parts we find: Ω G ϕ = Ω div [µ(v + u )] ϕ = Ω µ(v + u ) grad ϕ + Ω [µ(v + u ) n] ϕ = Ω µv grad ϕ Ω µu grad ϕ + Ω b ϕ. Let us introduce the space V 0 = {v H(curl ; Ω) curl v = 0 in Ω, σ n v ds = 0 n = 1,..., g}. (24) Note that V 0 = grad [H 1 (Ω)].

A variational formulation for the second case (cont d) The vector field V is thus a solution to V V 0 : Ω µv grad ϕ = Ω G ϕ Ω µu grad ϕ + Ω b ϕ ϕ H 1 (Ω). (25) It is easily seen that V is indeed the unique solution of that problem: in fact, assuming G = b = 0, u = 0, and taking ϕ such that grad ϕ = V, it follows at once Ω µv V = 0, hence V = 0.

Finite element approximation of the second case The finite element approximation follows the same steps. The first one is finding a finite element potential u h N h such that { curl u h = B h in Ω σ n u h ds = β n n = 1,..., g, (26) where B h RT h is the Raviart Thomas interpolant Ih RT B of B (we therefore assume that B is so regular that its interpolant Ih RT B is defined; for instance, as already recalled, it is enough to assume B (H 1 2 +δ (Ω)) 3, δ > 0). The construction of u h can be done as in (5).

Finite element approximation of the second case (cont d) The second step is related to the numerical approximation of problem (25). The natural choice for the finite element space is clearly the space V 0,h introduced in (8). The finite element approximation of (25) reads as follows: V h V 0,h : Ω µv h grad ϕ h = ϕ h L h, Ω G ϕ h Ω µu h grad ϕ h + Ω b ϕ h (27) where L h = span{ψ nv 1 h,i} i=1 = {ϕ h L h ϕ h (v nv ) = 0}. (28)

Finite element approximation of the second case (cont d) The corresponding algebraic problem is a square linear system of dimension n v 1, and it is uniquely solvable. In fact, since V 0,h = grad L h, we can choose ϕ h L h such that grad ϕ h = V h; from (27) we find at once V h = 0, provided that G = b = 0, u h = 0. The convergence of this finite element scheme is easily shown by standard arguments.

Convergence of the approximation for the second case Theorem B. Let V V 0 and V h V 0,h be the solutions of problem (25) and (27), respectively. Set u = V + u and u h = V h + u h, where u H(curl ; Ω) and u h N h are solutions to problem (22) and (26), respectively. Assume that u and B are regular enough, so that the interpolants Ih N u and I RT h B are defined. Then the following error estimate holds u u h H(curl ;Ω) c 0 ( u I N h u L 2 (Ω) + B I RT h B L 2 (Ω)). (29)

Convergence of the approximation for the second case (cont d) Proof. Since L h H1 (Ω), we can choose ϕ = ϕ h L h in (25). By subtracting (27) from (25) we end up with µ[(v + u ) (V h + u h )] grad ϕ h = 0 ϕ h L h, Ω namely, the consistency property µ(u u h ) grad ϕ h = 0 ϕ h L h. (30) Ω Then, since V 0,h = grad L h and thus V h = grad ϕ h for a suitable ϕ h L h, from (30) we find

Convergence of the approximation for the second case (cont d) c 1 u u h 2 L 2 (Ω) Ω µ(u u h) (u u h ) = Ω µ(u u h) (u V h u h ) = Ω µ(u u h) (u grad ϕ h u h ) = Ω µ(u u h) (u grad ϕ h u h ) c 2 u u h L 2 (Ω) u Ψ h u h L 2 (Ω) Ψ h V 0,h. We can choose Ψ h = (Ih Nu u h ) V 0,h; in fact, curl (Ih N u) = I RT h (curl u) = Ih RT B = B h and σ n Ih Nu ds = σ n u ds = β n for each n = 1,..., g. Then we find at once u u h L 2 (Ω) c 2 c 1 u Ih Nu L 2 (Ω). Moreover, curl (u u h ) = B B h = B Ih RT B.

Convergence of the approximation for the second case (cont d) Note that a sufficient condition for defining the interpolants of u and B = curl u is that they both belong to (H 1 2 +δ (Ω)) 3, δ > 0. Thus one has to assume that B (H 1 2 +δ (Ω)) 3 ; moreover, u belongs to (H 1 2 +δ (Ω)) 3 if, for instance, µ is a scalar Lipschitz function in Ω and b H γ (Ω), γ > 0.

The algebraic problem for the second case The solution V h V 0,h is given by V h = n v 1 i=1 V igrad ψ h,i. Hence the finite dimensional problem (27) can be rewritten as n v 1 i=1 V i µ grad ψ h,i grad ψ h,l Ω = Ω G ψ h,l Ω µ u h grad ψ h,l + for each l = 1,..., n v 1. The matrix K with entries Kli = µ grad ϕ h,i grad ϕ h,l is clearly symmetric and positive definite. Ω Ω b ψ h,l, (31)

References A. Alonso Rodríguez and A. Valli,, Appl. Numer. Math., 95 (2015), 2 14. A. Alonso Rodríguez, J. Camaño, R. Ghiloni and A. Valli, Graphs, spanning trees and divergence-free finite elements in general topological domains, IMA J. Numer. Anal., (2015) [submitted]. A. Alonso Rodríguez, E. Bertolazzi and A. Valli, Simple finite element schemes for the solution of the curl div system, arxiv:1512.08532v1 (2015). P. Alotto and I. Perugia, Mixed finite element methods and tree cotree implicit condensation, Calcolo, 36 (1999), 233 248.

References (cont d) A. Bossavit, Computational Electromagnetism, Academic Press, San Diego, 1998. J. Cantarella, D. DeTurck and H. Gluck, Vector calculus and the topology of domains in 3-space, Amer. Math. Monthly, 109 (2002), 409 442. F. Dubois, Discrete vector potential representation of a divergence-free vector field in three-dimensional domains: numerical analysis of a model problem, SIAM J. Numer. Anal., 27 (1990), 1103 1141. F. Hecht, Construction d une base de fonctions P 1 non conforme à divergence nulle dans R 3, RAIRO Anal. Numér., 15 (1981), 119 150.

References (cont d) R. Hiptmair and J. Ostrowski, Generators of H 1 (Γ h, Z) for triangulated surfaces: Construction and classification, SIAM J. Comput., 31 (2002), 1405 1423. F. Rapetti, F. Dubois and A. Bossavit, Discrete vector potentials for nonsimply connected three-dimensional domains, SIAM J. Numer. Anal., 41 (2003), 1505 1527. R. Scheichl, Decoupling three-dimensional mixed problems using divergence-free finite elements, SIAM J. Sci. Comput., 23 (2002), 1752 1776. J.P. Webb and B. Forghani, A single scalar potential method for 3D magnetostatics using edge elements, IEEE Trans. Magn., 25 (1989), 4126 4128.

Other problems Darcy problem (for simplicity, assume Ω connected) κu grad p = f in Ω div u = 0 in Ω p Ω = ϕ on Ω. In weak form: u W 0 : Ω κu v = Ω f v + Ω ϕ v n v W 0.

elliptic problems in mixed formulation (for simplicity, assume Ω connected) κw grad q = 0 in Ω div w = g in Ω q Ω = η on Ω. In weak form: W W 0 : Ω κw v = Ω κu v + Ω η v n v W 0, where div u = g in Ω and w = W + u.

The grad problem (back to it) Having found a nodal element ψ h such that its gradient has line integral on all the edges of the spanning tree equal to that of H h, what about the edges not belonging to the spanning tree? For each node v i, v i v, let us denote by C vi the set of edges in S h joining v to v i. Given an edge e = [v a, v b ] not belonging to S h, we define the cycle D e = C va + e C vb. Since H h is a gradient (it is curl-free and its line integral on all the cycles σ n vanishes), its line integral on D e vanishes. Therefore we have 0 = D e H h ds = ψ h (v a ) + e H h τ ψ h (v b ) = e H h τ e grad ψ h τ.

An explicit formula for the vector potential Devise an explicit formula for the solution to (5). (We are able to do that if B h n = 0 on Ω, a quite natural condition in the most interesting physical situations, and for a suitable choice of the constants ρ n.) The idea is the following. Define the Biot Savart field H BS (x) = 1 B h (y) x y 4π x y 3 dy, Ω and set ρ n = σ n H BS ds in (5). One has curl H BS = B h in Ω (here the condition B h n = 0 on Ω has played a role). Hence the Nédélec interpolant Π N hh BS satisfies (5) 1 and (5) 2.

An explicit formula for the vector potential (cont d) To find the solution to (5), we can correct Π N hh BS by a gradient, namely, construct the nodal element φ h whose gradient has the same line integral of H BS on the edges of the spanning tree S h. The Nédélec finite element A h = Π N hh BS grad φ h is the solution to (5). To express its degrees of freedom, we proceed as follows. For each edge e S h, we define the cycle D e as before (the edges from the root of the spanning tree to the first vertex of e, the edge e, the edges from the second vertex of e to the root of the spanning tree).

An explicit formula for the vector potential (cont d) The cycle D e is constituted by edges all belonging to the spanning tree (except e): hence we have e A h τ = e (ΠN hh BS grad φ h ) τ = e HBS τ [φ h (v b ) φ h (v a )] = [ e HBS τ H BS τ ] Cvb C va H BS τ = D e H BS ds ( ) = 1 4π D e Ω B h(y) x y dy x y 3 ds(x). Using (32), we can always restart the Webb Forghani algorithm. (32)

A basis of the first de Rham cohomology group The presented approach permits to solve also the problem curl A h = 0 in Ω σ n A h ds = κ n n = 1,..., g e A h τ = 0 e S h, for any choice of the constants κ n. (33) Taking κ n equal to lκ(σ n, σ j ), j = 1,..., g, (lκ denotes the linking number) we find a basis T (j) of the first de Rham cohomology group, and we have also an explicit formula like (32) for expressing the degrees of freedom of each T (j).

The linking number The linking number between σ j and another disjoint cycle σ is given by: lκ(σ, σ j ) = 1 ( ) y x 4π σ σ j y x 3 ds y ds x. The linking number (introduced by Gauss...) is an integer that represents the number of times that each cycle winds around the other. The explicit formula for determining the basis elements T (j) is T (j) τ = lκ(d e, σ j ) (34) e (where σ j has been chosen inside R 3 \ Ω, namely, not intersecting D e ).

A basis of the second de Rham cohomology group It can be also noted that the solutions W (s), s = 1,..., p, of the problems div v h = 0 in Ω ( Ω) v h n = δ r,s r = 1,..., p (35) r f v h ν f = 0 f M h furnish a basis of the second de Rham cohomology group of Ω.