1 Introduction

We consider the vector potential formulation of the eddy current problem in the frequency domain with temporal gauge (φ = 0),

$$\displaystyle \begin{aligned} \mathbf{curl} \left( \mu^{-1} \mathbf{curl}{{\mathbf{A}}} \right) + i \omega \sigma {\mathbf{A}} = {\mathbf{j}}^i. {} \end{aligned} $$
(12.1)

Here

  • A(x) is a vector potential,

  • B = ∇×A is the magnetic flux density,

  • j i(x) is the impressed, solenoidal electric current,

  • ω > 0 is the angular frequency, and

  • σ(x) is the electric conductivity (which can be zero in parts of the domain and is assumed to be piecewise constant).

It is well known that the solution of (12.1) exhibits singularities in edges (and corners) of conductors [4], as well as exponential boundary layers along the surface of conductors (skin effect). I.e. the induced current iωσ A is concentrated at the surface of conductors and decays rapidly towards the interior. The thickness of the boundary layer is characterized by the skin-depth δ.

Induction has many applications in industry. An example is inductive hardening [8], where the workpiece is heated quickly at the surface, and is then rapidly cooled down before the heat is distributed into the interior by heat conduction. In this case the skin effect plays a fundamental technical role and resolving the skin layer is essential.

For the classical low order Finite Element Method (FEM) this means that the boundary layers must be resolved by the underlying mesh. This can be achieved by adapting the mesh manually or by refining an existing mesh towards the boundary layers, which can be automated (h-refinement). However, in industrial applications the skin depth δ can be orders of magnitude smaller than the diameter of the conductor so that the mesh must be refined multiple times towards the boundary layer(s). This leads to a vast increase in the number of degrees of freedom (DOF) which may render the solution of the linear system prohibitively expensive.

Alternatively one can refine the mesh just once to create a mesh layer of thickness O() where k is the polynomial degree of the test functions [9, 10]. However creating such a 3D mesh for industrial applications can be hard, especially if tetrahedral elements are used.

A partial remedy for this problem are Impedance Boundary Conditions (IBC) [8]: The conductor is replaced by Robin-type boundary conditions and the electro-magnetic fields are only calculated at the surface of the conductor. Since the IBC approximation assumes that the conductor surface is flat, the solution deteriorates as the radius of curvature of the conductor surface becomes comparable to the skin-depth δ. In particular the IBC solution deviates strongly from the physically correct fields at edges and corners of the conductor.

In this work we propose to resolve the boundary layers directly on coarse meshes (we assume the meshsize h ≫ δ) by enriching the approximation space with suitable functions. More precisely, our approximation space will contain two types of (discontinuous) basis functions:

  • Edge elements R k [7], and

  • Exponential boundary layer functions modulated/multiplied with polynomials.

We deal with the discontinuous nature of the basis functions in the framework of Discontinuous Galerkin (DG) methods and discretize (12.1) by the Non-Symmetric Weighted Interior Penalty (NWIP) method [3].

2 Non-symmetric Weighted Interior Penalty Framework

We consider the time-harmonic eddy current equation (12.1) on a bounded, open, polyhedral domain \(\varOmega \subset \mathbb {R}^3\) with Lipschitz boundary. Furthermore we denote by Ω 0 ⊂ Ω the open subdomain where σ = 0 and define \(\varOmega _\sigma = \varOmega \setminus \overline {\varOmega _0}\).

Perturbed Problem

It is well-known that the time-harmonic eddy current equation (12.1) does not uniquely determine the vector potential A in Ω 0, i.e. (12.1) is an ungauged formulation. In this work we restore the uniqueness of A by considering the perturbed time-harmonic eddy current problem [1],

$$\displaystyle \begin{aligned} \mathbf{curl} \left( \mu^{-1} \mathbf{curl}{{\mathbf{A}}^\alpha} \right) + \kappa^\alpha {\mathbf{A}}^\alpha &= {\mathbf{j}}^i, && \text{in }L^2(\varOmega)^3 {} \end{aligned} $$
(12.2a)
$$\displaystyle \begin{aligned} {\mathbf{n}} \times {\mathbf{A}}^\alpha &= 0 && \text{on }\partial \varOmega. {} \end{aligned} $$
(12.2b)

Here the boundary condition (12.2b) implies n ⋅curlA = n ⋅B = 0 which reflects the decay of the magnetic field far away from the source j i. Moreover,

$$\displaystyle \begin{aligned} \kappa^\alpha({\mathbf{x}}) \mathrel{\mathop:}= \begin{cases} i \omega \sigma({\mathbf{x}}) & \text{for }x \in \varOmega_\sigma,\\ \alpha & \text{for }x \in \varOmega_0, \end{cases} \end{aligned} $$

with α > 0 being the regularization parameter. One expects that for α → 0 also A α →A, or more precisely [1, Lemma 33],

Lemma 12.1

Under the above assumptions we have, \(\left \lVert {\mathbf {A}} - {\mathbf {A}}^\alpha \right \rVert _{{\mathbf {H}}(\mathbf {curl}; \varOmega )} \leq C \alpha \left \lVert {\mathbf {A}}\right \rVert _{L^2(\varOmega )^3}\) , where C is independent of α but depends on μ, σ, ω and the domain Ω.

Broken Sobolev Spaces

We assume that there exists a partition \(P_\varOmega = \left \{ \varOmega _i \right \}_i\) such that each Ω i is a polyhedron and such that the permeability 0 < μ <  and the coefficient function 0 < κ α <  are constant on each Ω i . We will assume that the solution A α lies in the broken Sobolev space

$$\displaystyle \begin{aligned} V^*(P_\varOmega) \mathrel{\mathop:}= \left\{ {\mathbf{A}} \in L^2(\varOmega)^3 \middle\vert \left. {\mathbf{A}} \right\vert_K \in H^1(K)^3, \, \left. \mathbf{curl}{{\mathbf{A}}} \right\vert_K \in H^1(K)^3 \; \forall K \in P_\varOmega \right\}. \end{aligned} $$

Here H 1(K): = {f ∈ L 2(K)| grad f ∈ L 2(K)3} denotes the usual Sobolev space.

Meshes, Jumps, Averages

Let \(\mathbb {T}_h\) denote a hybrid (tetrahedras, pyramids, prisms, hexahedras), affine, conforming mesh on Ω that is compatible with the partition P Ω , that is every mesh element \(T \in \mathbb {T}_h\) lies in exactly one Ω i  ∈ P Ω . Thus κ α, μ are constant on every mesh cell \(T \in \mathbb {T}_h\) and we have \(V^*(P_\varOmega ) \subset V^*(\mathbb {T}_h)\). Furthermore we let \(\mathbb {F}^i_h\) denote the set of inner intersections of \(\mathbb {T}_h\) and define the tangential jump and weighted average of a vector valued function \({\mathbf {A}} \in V^*(\mathbb {T}_h)\) on an inner face \(F \in \mathbb {F}^i_h\), F = ∂T i  ∩ ∂T j , as follows:

Here n F always points from T i to T j and w i  ∈ [0, 1] are such that w 1 + w 2 = 1.

NWIP-Formulation

We discretize the perturbed eddy current problem (12.2) using a finite dimensional subspace \(V_h \subset V_h^* \mathrel{\mathop:}= \left \{ {\mathbf {A}} \in V^*(\mathbb {T}_h) \middle \vert \; {\mathbf {n}} \times {\mathbf {A}} = 0 \text{ on } \partial \varOmega \right \}\). Multiplying (12.2) with a discontinuous test function \({\mathbf {A}}_h^{\prime } \in V_h\) and integrating by parts on each element, one arrives at [3]: Find \({\mathbf {A}}^\alpha _h \in V_h\) such that for all \({\mathbf {A}}_h^{\prime } \in V_h\):

$$\displaystyle \begin{aligned} a_h^{\text{NWIP}}({\mathbf{A}}_h^\alpha, {\mathbf{A}}^{\prime}_h) + \int_\varOmega \kappa^\alpha {\mathbf{A}}^\alpha_h \cdot \overline{{\mathbf{A}}^{\prime}_h} &= \int_\varOmega {\mathbf{j}}^i \cdot \overline{{\mathbf{A}}^{\prime}_h}, {} \end{aligned} $$
(12.3)

with sesquilinear form

Here h F is the diameter of face F and η > 0 is the penalty parameter. The weights for an inner face F = ∂T 1 ∩ ∂T 2 are chosen as

$$\displaystyle \begin{aligned} \gamma_{\mu,\text{F}} &\mathrel{\mathop:}= \frac{2}{\mu_1 + \mu_2}, & w_1 &\mathrel{\mathop:}= \frac{\mu_1}{\mu_1 + \mu_2}, & w_2 &\mathrel{\mathop:}= \frac{\mu_2}{\mu_1 + \mu_2}. \end{aligned} $$

We have the following best approximation result, cf. [3, Theorem 3.3.13]:

Theorem 12.1

Let A α ∈ V (P Ω ) be the solution of the perturbed problem (12.2) and let \({\mathbf {A}}_h^\alpha \in V_h\) solve the NWIP formulation (12.3). Then there exist constants C > 0, C η  > 0, both independent of h, μ, κ such that for η > C η

$$\displaystyle \begin{aligned} \left\lVert{\mathbf{A}}^\alpha - {\mathbf{A}}_h^\alpha\right\rVert_{IP} < C \inf_{{\mathbf{v}}_h \in V_h} \left\lVert{\mathbf{A}} - {\mathbf{v}}_h\right\rVert_{IP,*}, {} \end{aligned} $$
(12.4)

and the discrete problem (12.3) is well-posed. The constants C η , C depend on the choice of the subspace \(V_h \subset V_h^*\) and C η depends on C.

The associated (semi-) norms are defined as:

$$\displaystyle \begin{aligned} \left\lVert{\mathbf{A}}\right\rVert_{\text{IP}}^2 &\mathrel{\mathop:}= \left\lVert\mu^{-1/2} \mathbf{curl}{{\mathbf{A}}}\right\rVert_{L^2(\varOmega)^3}^2 + \left\lVert\sqrt{\left\lvert\kappa^\alpha\right\rvert} {\mathbf{A}}\right\rVert_{L^2(\varOmega)^3}^2 + \sum_{F \in \mathbb{F}^i_h} \frac{\gamma_{\mu,F}}{h_F} \left\lVert\left [\![{\mathbf{A}}\right ]\!]_T\right\rVert^2_{L^2(F)^3}, \\ \left\lVert{\mathbf{A}}\right\rVert_{\text{IP},*}^2 &\mathrel{\mathop:}= \left\lVert{\mathbf{A}}\right\rVert_{\text{IP}}^2 + \sum_{T \in \mathbb{T}_h} h_T \left\lVert\mu^{-1/2} \mathbf{curl}{{\mathbf{A}}}\right\rVert_{L^2(T)^3}^2. \end{aligned} $$

3 Enriched Approximation Space

Trefftz Functions

Let n be a unit vector and consider problem (12.1) on the whole space \(\mathbb {R}^3\) such that σ is zero in the half-space \(\varOmega _0 = \{ {\mathbf {x}} \in \mathbb {R}^3 |\; {\mathbf {x}} \cdot {\mathbf {n}} > 0 \}\) and equal to a positive constant σ in the other half-space \(\varOmega _\sigma = \mathbb {R}^3 \setminus \overline {\varOmega _0}\). Furthermore, assume that there is an external excitation by a magnetic field H 0 which is constant along the surface \(F \mathrel{\mathop:}= \{ {\mathbf {x}} \in \mathbb {R}^3 |\; {\mathbf {x}} \cdot {\mathbf {n}} = 0 \}\) and that μ ≡ const, j i = 0 in Ω σ . Simple manipulations (cf. [5]) show that inside the conductor Ω σ (x ⋅n < 0) we can write the solution A of (12.1) explicitly as

$$\displaystyle \begin{aligned} {\mathbf{A}}({\mathbf{x}}) = {\mathbf{A}}_{F, {{\boldsymbol \tau}}}({\mathbf{x}}) \mathrel{\mathop:}= \left\lvert{\mathbf{H}}_0\right\rvert \delta/(1+i) \; {\boldsymbol{\tau}} \, \exp\left( (1+i)({\mathbf{x}}-{\mathbf{x}}_0) \cdot {\mathbf{n}} / \delta \right), {} \end{aligned} $$
(12.5)

where x 0 ∈ F, \({\boldsymbol {\tau }} \in \mathbb {R}^3\) is a vector tangential to F, and \(\delta = \sqrt {\frac {2}{\mu \sigma \omega }}\) is the skin-depth.

Modulated Trefftz Functions

Let \(\mathbb {P}_k(T)\) denote the space of polynomials of total degree ≤ k on mesh element \(T \in \mathbb {T}_h\). For each element \(T \in \mathbb {T}_h\), T ⊂ Ω σ we define the space

$$\displaystyle \begin{aligned} \mathbb{A}_k(T) \mathrel{\mathop:}= \left\{ p {\mathbf{A}}_{F,{\boldsymbol{\tau}}} \vert \; p \in \mathbb{P}_k(T), \; F \in \mathbb{F}^i_h, \; F \subset \partial T \cap \partial \varOmega_0, \; {\boldsymbol{\tau}} \text{ tangential of }F \; \right\}. \end{aligned} $$

Note that the dimension of the space \(\mathbb {A}_k(T)\) is \(2n \operatorname {dim}(\mathbb {P}_k(T))\), where n is the number of faces of T that are at the conductor surface, since for every flat surface there are only two linearly independent tangentials τ. We define \(\mathbb {T}^{\mathbb {A}}_h \mathrel{\mathop:}= \{ T \in \mathbb {T}_h \vert \; \operatorname {dim}(\mathbb {A}_1(T)) > 0, \sigma (T) > 0 \}\) to be the set of elements with at least one adjacent boundary layer and we let \(\varOmega _{\mathbb {A}} \subset \varOmega \) be the union of all elements in \(\mathbb {T}^{\mathbb {A}}_h\). We then define the broken, modulated Trefftz approximation space by

$$\displaystyle \begin{aligned} \mathbb{A}_k(\mathbb{T}_h) \mathrel{\mathop:}= \left\{ {\mathbf{A}} \in L^2(\varOmega_{\mathbb{A}})^3 \vert \; \left. {\mathbf{A}} \right|{}_{T} \in \mathbb{A}_k(T) \; \forall T \in \mathbb{T}^{\mathbb{A}}_h \right\}. \end{aligned} $$

Broken Edge Element Space

Our idea is to use a conforming edge element space wherever possible and to “break” this space only around elements containing the modulated Trefftz functions:

Here R k (T) is the space of k-th order edge elements of the first kind on mesh element \(T \in \mathbb {T}_h\), cf. [2, 7] and H(curl;Ω): = {A ∈ L 2(Ω)3| curlA ∈ L 2(Ω)3}. We define the enriched approximation space V h on mesh \(\mathbb {T}_h\) as

$$\displaystyle \begin{aligned} V_h \mathrel{\mathop:}= R_{k, \mathbb{A}}(\mathbb{T}_h) \oplus \mathbb{A}_k(\mathbb{T}_h). \end{aligned} $$

Note that this space is tangentially continuous across a face \(F \in \mathbb {F}^i_h\) if and only if both the adjacent elements do not belong to \(\mathbb {T}^{\mathbb {A}}_h\). I.e. the DG-terms on these faces drop out of the NWIP formulation (12.3) and the method resembles “locally” the standard finite element method. Moreover we note that V h is a superset of the space of conforming edge elements, \(R_{k,h} \mathrel{\mathop:}= \{ {\mathbf {A}} \in {\mathbf {H}}(\mathbf {curl}; \varOmega ) \vert \; \left . {\mathbf {A}} \right \vert _T \in R_k(T) \; \forall T \in \mathbb {T}_h \}\). In light of the best approximation result (12.4) we can thus expect that the space V h has equal or better approximation properties than the space R k,h.

4 Numerical Example

We pose problem (12.2) on a cylindrical shaped domain Ω with two conductors Ω σ : The “plate” Ω plate (green) is the cuboid (−0.7, −0.5) × (−1, 1)2 whereas the “bar” (gray) has dimensions (0.5, 1.5) × (−2.5, 2.5) × (−0.5, 0.5). We mesh Ω with the coarse, hybrid mesh \(\mathbb {T}_h\) shown in Fig. 12.1 that has only one layer of elements across the plate. This reflects the constraints encountered with more complex geometries where it is prohibitively expensive to resolve the boundary layers with a fine mesh.

Fig. 12.1
figure 1

Coarse, hybrid mesh of domain Ω with airbox (left) and without airbox (right), h = 0.2

The system is excited by a homogeneous generator current, j i = (0, 2000, 0) in Ω bar, which induces an electric current in the plate. We will vary σ plate to simulate boundary layers of arbitrary thickness in the plate and keep all other (material) parameters constant: μ ≡ 4π ⋅ 10−7 globally, σ bar = 104, ω = 50, and α = 10−6.

Figure 12.2 shows a first, qualitative comparison of the current distribution in a cross section of the plate. Comparing the reference solutionFootnote 1 with the solution of the standard, first order FEM, we see that the top and bottom boundary layers are not resolved at all and the behavior in the edges is completely wrong. The proposed (modulated) Trefftz method with k = 1 can resolve the bottom and top boundary layer much better but the error is still considerable in the edges.

Fig. 12.2
figure 2

Current distribution \( \left \lvert {\mathbf {j}} \right \rvert = \left \lvert \omega \sigma {\mathbf {A}}^\alpha \right \rvert \) in plate plotted over cross-section y = 0 for σ plate = 5 ⋅ 107, δ plate/h = 0.063

Figure 12.3 shows the relative local surface error \(\frac {\left \lVert {\mathbf {n}} \times ({\mathbf {A}} - {\mathbf {A}}^\alpha _h)\right \rVert _{L^2(\partial \varOmega _{\text{plate}})^3}}{\left \lVert {\mathbf {n}}\times {{\mathbf {A}}}\right \rVert _{L^2(\partial \varOmega _{\text{plate}})^3}}\) for different values of σ plate (and hence δ plate). We observe that the error of the enriched method is always equal or better than simple first-order edge functions R 1,h. In particular for δ ≪ h the modulated Trefftz functions clearly outperform the classical edge elements, cf. Fig. 12.2. For reference we also show the error for a standard, first-order FEM formulation where the plate has been replaced by IBC [8]. We see that the IBC approximation becomes valid as δ plate → 0 and does in fact reach the precision of the enriched method for small δ. The former is expected since for flat surfaces the IBC solution tends to A with rate O(δ 2) [6].

Fig. 12.3
figure 3

Local surface error vs. skin-depth δ for the mesh shown in Fig. 12.1

5 Concluding Remarks

The enriched approximation space V h can resolve the boundary layers of problem (12.1) locally much better than pure, standard first order Nédélec/edge elements. In contrast to IBC, the presented method also resolves the electromagnetic fields inside of the conductor. In particular, it is applicable to cases where the excitation current j i generates boundary layers.Footnote 2 We remark that the construction of the functions A F,τ is based on the same principle that is used to derive the IBC [8]. In particular, both methods perform very well along flat surfaces but lead to considerable error in edges/corners of the geometry where the assumptions of Sect. 12.3 become invalid and the solution shows singular behavior. A more extensive numerical study unveils that the smaller δ, the more the approximation error \({\mathbf {A}}^\alpha - {\mathbf {A}}^\alpha _h\) is concentrated in the edges/corners of the plate. I.e. the approximation error is dominated by the error at corners/edges and choosing a higher order of approximation, k > 1 in V h , will generally not improve the approximation. Instead one has to resolve the singularities either by refining the mesh towards edges/corners or by including the singularities in the approximation space V h . The latter is particularly attractive since this is just another “enrichment” of the approximation space V h .

However, finding explicit expressions for the singularities of the 3D eddy current problem at corner points is extremely difficult. For the 2D eddy current equation explicit expressions for these singularities exist [4] and can be used to construct a highly efficient method that shows exponential convergence in the polynomial degree k independent of δ, that is the method is robust in δ in the sense of [9, Definition 3.54]. We will present the details of our investigation of this method in a future work.