An Explicit Mapped Tent Pitching Scheme for Maxwell Equations
Jay Gopalakrishnan, Matthias Hochsteger, Joachim Sch\"oberl, Christoph, Wintersteiger

TL;DR
This paper introduces a novel explicit numerical scheme for Maxwell equations using unstructured spacetime tents, enabling high-order accuracy, variable time steps, and efficient parallel computation on modern architectures.
Contribution
It develops a new mapped tent pitching method that overcomes limitations of standard explicit schemes for hyperbolic PDEs, allowing flexible, high-order, and parallelizable solutions.
Findings
Enables explicit high-order solutions on unstructured meshes.
Supports variable time steps and local mesh refinement.
Achieves efficient parallelization suitable for modern architectures.
Abstract
We present a new numerical method for solving time dependent Maxwell equations, which is also suitable for general linear hyperbolic equations. It is based on an unstructured partitioning of the spacetime domain into tent-shaped regions that respect causality. Provided that an approximate solution is available at the tent bottom, the equation can be locally evolved up to the top of the tent. By mapping tents to a domain which is a tensor product of a spatial domain with a time interval, it is possible to construct a fully explicit scheme that advances the solution through unstructured meshes. This work highlights a difficulty that arises when standard explicit Runge Kutta schemes are used in this context and proposes an alternative structure-aware Taylor time-stepping technique. Thus explicit methods are constructed that allow variable time steps and local refinements without…
| number of spatial dof | ||
|---|---|---|
| number of spacetime dof per slab | ||
| simulation time per slab | 4.6 s | 49.2 s |
| total simulation time | 20 min | 3 h 33 min |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Numerical Methods in Computational Mathematics · Electromagnetic Simulation and Numerical Methods · Numerical methods for differential equations
11institutetext: Jay Gopalakrishnan 22institutetext: Fariborz Maseeh Department of Mathematics & Statistics, Portland State University, PO Box 751, Portland OR 97207-0751, USA, 22email: [email protected] 33institutetext: Matthias Hochsteger, Joachim Schöberl, Christoph Wintersteiger 44institutetext: Institute for Analysis and Scientific Computing, Technische Universität Wien, Wiedner Hauptstraße 8-10, 1040 Wien, Austria, 44email: [email protected], [email protected], [email protected]
An Explicit Mapped Tent Pitching Scheme for Maxwell Equations
Jay Gopalakrishnan
Matthias Hochsteger
Joachim Schöberl
Christoph Wintersteiger
Abstract
We present a new numerical method for solving time dependent Maxwell equations, which is also suitable for general linear hyperbolic equations. It is based on an unstructured partitioning of the spacetime domain into tent-shaped regions that respect causality. Provided that an approximate solution is available at the tent bottom, the equation can be locally evolved up to the top of the tent. By mapping tents to a domain which is a tensor product of a spatial domain with a time interval, it is possible to construct a fully explicit scheme that advances the solution through unstructured meshes. This work highlights a difficulty that arises when standard explicit Runge Kutta schemes are used in this context and proposes an alternative structure-aware Taylor time-stepping technique. Thus explicit methods are constructed that allow variable time steps and local refinements without compromising high order accuracy in space and time. These Mapped Tent Pitching (MTP) schemes lead to highly parallel algorithms, which utilize modern computer architectures extremely well.
1 Introduction
Electromagnetic waves propagate at the speed of light. Thus, the field at a certain point in space and time depends only on field values within a dependency cone. A tent pitching method introduces a special “causal” spacetime mesh that respects this finite speed of propagation. It is not limited to Maxwell equations, but can be applied to general hyperbolic equations. A tent pitching method requires a numerical scheme to discretize the equation on that mesh. Discontinuous Galerkin (DG) methods are of particular interest since they offer a systematic avenue to build high order methods. For a given initial condition at the bottom of a tent, the discrete equations may be solved within each individual tent, up to the tent top. The computed solution at the tent top provides initial conditions for the tents that follow later in time. This method is highly parallel, since many tents can be solved independently. Methods using such tent-pitched meshes may be traced back to LowriRoeLeer95 ; Richt94 . More recent works AbediPetraHaber06 ; MR05 ; ASHT00 develop Spacetime DG (SDG) methods within tents by formulating local variational problems, for which linear systems are set up and solved. Although these systems are local, the matrix size can grow rapidly with the polynomial order, especially in four-dimensional spacetime tents. In this context it is natural to ask if one can develop explicit schemes (which usually perform well under low memory bandwidth) that take advantage of tents.
A key ingredient to answer this question was presented in GSW17 , where Mapped Tent Pitching (MTP) schemes were introduced. The MTP discretization, which proceeds by mapping tents to a spacetime cylinder, allows one to evolve the solution either implicitly or explicitly within tents. The memory requirements of the explicit MTP scheme are limited to what is needed for storing the spatial mesh, the solution coefficients at one time step, and the topology of the tents.
In this work, we show that notwithstanding the above-mentioned advantages of the explicit MTP scheme, one may lose higher order convergence if a naive time stepping strategy (involving a standard explicit Runge-Kutta scheme) is used. We then develop a new Taylor time-stepping for the local problems within tents. Despite its simplicity, our numerical experiments show that it delivers optimal order of convergence.
2 Mesh generation by tent pitching
We start with a conforming spatial mesh consisting of elements and vertices . We progress in time by defining a sequence of advancing fronts . A front is given as a standard nodal finite element function on this mesh. It is defined by storing the current time for every vertex of the mesh. We move from to the next front by moving one vertex forward in time, while keeping all other vertices fixed. The spacetime domain between and we call a tent. In Fig. 1, the red domain is the tent between and .
Its projection to the spatial domain is exactly the vertex patch around of the original mesh. The data to be stored for one tent are the bottom and top-times of the central vertex, plus the times for all neighboring vertices.
Note that although the algorithm is described sequentially, it is highly parallel. Vertices with graph-distance of at least two can be moved forward independently. For example, in Fig. 1, all blue tents can be built and processed in parallel.
The distance for advancing a vertex is limited by the speed of light, a constraint often referred to in the literature as the causality condition. Under this condition, the Maxwell problem inside the tent is solvable using the initial conditions at the tent bottom. Thus, the top boundary is an outgoing boundary and no boundary conditions are needed there.
Note that the spatial mesh is refined towards the right boundary, which leads to smaller tent heights at the right boundary. Hence, smaller time steps in locally refined regions is a very natural feature of tent pitching methods.
3 The MTP discretization
Now, we consider the discretization method for one tent domain where is the union of elements containing the vertex , and and are the bottom and top fronts, respectively, restricted to . Our aim is to numerically solve the Maxwell system on , namely
[TABLE]
where boundary values for both fields are given at the tent bottom and denotes the spatial gradient.
The approach of MTP schemes is to map the tent domain to a spacetime cylinder and solve the transformed equation there. The transformation from the cylinder to the tent is denoted by and is defined by where
[TABLE]
It is similar to the Duffy transformation mapping a square to a triangle.
With the notation
[TABLE]
we can rephrase the curl operator as where the divergence of the matrix function is taken row-wise. To simplify notation further, we define by and set and by
[TABLE]
Then (1) may be rewritten as the conservation law Furthermore, we define as
[TABLE]
which allows us to write Maxwell’s system (1) as the spacetime conservation law
[TABLE]
For each row of , the spacetime divergence sums the spatial divergence of the first three components with the time-derivative of the last component.
Now, we apply the Piola transformation to pull back from the tent to the cylinder using the mapping . The derivative of and its transposed inverse are
[TABLE]
The Piola transform of is with . Since the Piola transform provides an algebraic transformation of the divergence, equation (3) is simply transformed to on the spacetime cylinder. Then, inserting the Jacobian of leads us to the transformed equation
[TABLE]
where is the local height of the tent. Note that is an affine-linear function in quasi-time . Equation (4) describes the evolution of along quasi-time from to . Details of the calculations are given in GSW17 .
The next step is the space discretization of (4) by a standard discontinuous Galerkin method. Let be the DG finite element space of degree on . On each tent we search for such that
[TABLE]
holds for all and all . Only the restriction of on the patch is used in this equation. The numerical flux depends on the positive trace and negative trace , where is a unit normal vector of arbitrary orientation to the face. The jump is defined as usual by and the mean value by . One example is the upwind flux (HW08, , p. 434)
[TABLE]
with the tangential components and of and . Note that the local tent height enters the boundary integrals as a multiplicative factor. At the outer boundary of the vertex patch we have , so the facet integrals on the outer boundary disappear. For the above semidiscrete system, initial values for the tent problem are given finite element functions at the tent bottom. The finite element solution on the tent top provides the initial conditions for the next level tent. Therefore, no projection of initial values is needed when propagating from one tent to the next.
After the semi-discretization, as usual, we are left to solve a system of ordinary differential equations for ,
[TABLE]
given . The non-standard feature of (5) is that is an affine-linear function of the quasi-time (since our mapping enters the mass matrix through ). The matrix is independent of . A straightforward approach is to substitute and solve
[TABLE]
instead of (5). Although first order convergence was observed with this strategy, further numerical studies showed reduced order of convergence if the stage-order of the Runge Kutta (RK) method is not high enough – see Fig. 3 (right). While the implicit MTP schemes discussed in GSW17 do not show this problem, the issue remains critical for explicit schemes. Thus, we propose to use a new type of explicit time-stepping for time discretization, discussed next.
4 Structure-aware Taylor time-stepping
Returning to the ordinary differential equation (5) and continuing to make the substitution , we now reconsider the previous equation as the following differential-algebraic system:
[TABLE]
We begin by subdividing the interval into smaller intervals of size , defined by , for and . Recall that is independent of quasi-time , and is an affine function of , i.e.,
[TABLE]
where and the derivative is a constant matrix. We want to design a time-stepping scheme that is aware of this structure.
Consider the approximations to on in the form of Taylor polynomials of degree , defined by
[TABLE]
where and To find these derivatives, we differentiate both equations of (6) times to get
[TABLE]
For the second equation we used Leibnitz’ formula , and the fact that is affine-linear. Evaluating these equations for the Taylor polynomials at , we obtain a recursive formula for and in terms of , namely
[TABLE]
for all . Given , , applying (8) with gives the approximate functions in the first subinterval . The recursive formulas are initiated for later subintervals at by
[TABLE]
After the final subinterval, we get , our approximation to . We shall refer to the new time-stepping scheme generated by (8) as the -stage SAT (structure-aware Taylor) time-stepping.
Note that is our approximation to at the top of the tent. This value is then passed to the next tent in time. The time dependence of arises from the time dependence of . This gradient is continuous along spacetime lines of constant spatial coordinates. Therefore, when passing from one element of a tent to the same element within the next tent in time, is continuous (since the solution is continuous). Of course, on flat fronts , so there is just a diagonal matrix containing the material parameters.
To briefly remark on the expected convergence rate of a -stage SAT time-stepping, recall that due to the mapping of the MTP method we solve for , which satisfies . The causality condition implies that if the mesh size . Thus we may expect the temporal derivative of , and correspondingly to go to zero at the rate . By using a -stage SAT time-stepping, we approximate the first terms of the exact Taylor expansion of . Thus we expect the convergence rate to be , the size of the remainder term involving . The next section provides numerical evidence for this.
Before concluding this section, we should note that in (8) and (9), we tacitly assumed that is invertible. Let us show that this is indeed the case whenever the causality condition (see §2) is fulfilled. At any quasi-time , given a whose coefficient vector in the basis expansion is , consider the equation for the coefficient vector of . This equation, in variational form, is
[TABLE]
Let denote the left hand side of (10). To prove solvability of (10), it suffices to prove that is a coercive bilinear form on for any . By inserting and into ,
[TABLE]
where we used the Cauchy-Schwarz inequality and inserted and to achieve the desired scaling. By applying Young’s inequality and ,
[TABLE]
form some constant . Thus is invertible and the SAT time-stepping is well defined on all tents respecting the causality condition.
One may exploit the specific details of the Maxwell problem to avoid the assembly and the inversion of matrices (as we have done in our implementation). In fact, instead of (10), we can explicitly solve the corresponding exact undiscretized equation obtained by replacing by in (10). The solution in closed form reads
[TABLE]
We then perform a projection of these into to obtain the coefficients . For uncurved elements, this just involves the inversion of a diagonal mass matrix. For the small number of curved elements, we use a highly optimized algorithm which uses an approximation instead of the exact inverse mass matrix.
5 Numerical Results
The MTP discretization in combination with the SAT time-stepping on tents is implemented within the Netgen/NGSolve finite element library. In this section numerical results concerning accuracy as well as performance are reported.
5.1 Convergence studies in two space dimensions
We consider the model problem in two space dimensions
[TABLE]
on the spacetime cube . Parameters are set such that speed of light is . Initial and boundary values are set such that the exact solution is given by
[TABLE]
Based on a spatial mesh with mesh size , we generate a tent pitched mesh such that the maximal slope is bounded by and apply a discontinuous Galerkin method in space using polynomials of order , with . On each cylinder we perform a -stage SAT time-stepping with intervals. The spatial error of all field components at the final time is reported in the left plot of Fig. 3. We observe that the error goes to zero at the optimal rate of until we are close to machine precision.
In contrast, the right plot in Fig. 3 illustrates the previously mentioned loss of convergence rates when the classical Runge-Kutta method is used. The convergence rates stagnate at first order no matter what is used. A similar behavior was also observed for other explicit Runge-Kutta methods.
5.2 Large scale problem in three space dimensions
As a second example we present a simulation on a domain similar to the resonator shown in HPSTW15 . The geometry is given as body of revolution of smooth B-spline curves. The mesh consisting of 489593 curved tetrahedral elements is shown in Fig. 4. Due to higher curvature the mesh is refined along the inner roundings, where the ratio of the largest to the smallest element is approximately 5:1. We used a Gaussian peak (located at the axis of revolution and the position of the fifth inner rounding) for the electric field as initial data. The explicit MTP scheme with SAT time-stepping then computed the solution at using time slabs of height 1, with each slab composed of tents. On each tent we used a -stage SAT time-stepping with intervals, where denotes the spatial polynomial order. With the spatial degrees of freedom of the tent and the number of stages , we obtain the total spacetime degrees of freedom per time slab
[TABLE]
The corresponding numbers of degrees of freedom and the simulation times are shown in Table 1. In HPSTW15 a similar problem is solved using a discontinuous Galerkin method with quadratic elements, combined with a polynomial Krylov subspace method in time. Using 96 cores it took them 7:10 hours to reach the final time. Our simulation with polynomial order , which has a comparable number of unknowns, took 3:33 hours on 64 cores. This significant speed up is an illustration of the capability of the new method. The component of the obtained solution at , using third order polynomials in space, is shown in Fig. 4.
Acknowledgements.
This work was supported in part by the National Science Foundation.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1) R. Abedi, B. Petracovici, and R. B. Haber. A spacetime discontinuous Galerkin method for elastodynamics with element-wise momentum balance. Computer Methods in Applied Mechanics and Engineering , 195:3247–3273, 2006.
- 2(2) J. Gopalakrishnan, J. Schöberl, and C. Wintersteiger. Mapped tent pitching schemes for hyperbolic systems . SIAM J. Sci. Comput. 39 (2017), B 1043-B 1063.
- 3(3) J. S. Hesthaven and T. Warburton. Nodal discontinuous Galerkin methods , volume 54 of Texts in Applied Mathematics . Springer, New York, 2008. Algorithms, analysis, and applications.
- 4(4) M. Hochbruck; T. Pažur, A. Schulz, E. Thawinan, C. Wieners. Efficient time integration for discontinuous Galerkin approximations of linear wave equations. ZAMM Z. Angew. Math. Mech. 95 (2015), no. 3, 237–259.
- 5(5) R. B. Lowrie, P. L. Roe, and B. van Leer. A space-time discontinuous Galerkin method for the time-accurate numerical solution of hyperbolic conservation laws. In Proceedings of the 12th AIAA Computational Fluid Dynamics Conference , number 95-1658, 1995.
- 6(6) P. Monk and G. R. Richter. A discontinuous Galerkin method for linear symmetric hyperbolic systems in inhomogeneous media . J. Sci. Comput. , 22/23: 443–477, 2005
- 7(7) G. R. Richter. An explicit finite element method for the wave equation. Appl. Numer. Math. , 16(1-2):65–80, 1994.
- 8(8) L. Yin, A. Acharia, N. Sobh, R. B. Haber, and D. A. Tortorelli. A spacetime discontinuous Galerkin method for elastodynamics analysis in Discontinuous Galerkin Methods: Theory, Computation and Applications , B. Cockburn, G. Karniadakis, and C.W.Shu (eds), 459–464, 2000
