Parallel Controllability Methods For the Helmholtz Equation
Marcus J. Grote, Fr\'ed\'eric Nataf, Jet Hoe Tang, Pierre-Henri, Tournier

TL;DR
This paper introduces parallel controllability methods for solving high-frequency Helmholtz equations by transforming the problem into the time domain, resulting in scalable algorithms that handle large-scale problems efficiently.
Contribution
The paper develops robust, parallel controllability algorithms for the Helmholtz equation using first and second-order wave formulations, applicable to general boundary-value problems.
Findings
Achieves high accuracy and convergence in Helmholtz solutions
Demonstrates strong scalability on massively parallel architectures
Handles problems with up to a billion unknowns
Abstract
The Helmholtz equation is notoriously difficult to solve with standard numerical methods, increasingly so, in fact, at higher frequencies. Controllability methods instead transform the problem back to the time-domain, where they seek the time-harmonic solution of the corresponding time-dependent wave equation. Two different approaches are considered here based either on the first or second-order formulation of the wave equation. Both are extended to general boundary-value problems governed by the Helmholtz equation and lead to robust and inherently parallel algorithms. Numerical results illustrate the accuracy, convergence and strong scalability of controllability methods for the solution of high frequency Helmholtz equations with up to a billion unknowns on massively parallel architectures.
| Frequency | Wave number | #Unknowns | #Nodes |
|---|---|---|---|
| [Hz] | 24 cores per node | ||
| – | – | ||
| – | – | ||
| – | – | ||
| – | – | ||
| – | – | ||
| – | – | ||
| – | – |
| Frequency | #Unknowns | #Tetrahedra | CG iterations | #Nodes |
|---|---|---|---|---|
| 24 cores per node | ||||
| – | ||||
| – | ||||
| – | ||||
| – |
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.
Parallel Controllability Methods
For the Helmholtz Equation
Marcus J. Grote
Frédéric Nataf
Jet Hoe Tang
Pierre-Henri Tournier
University of Basel, Spiegelgasse 1, 4051 Basel, Switzerland
Laboratoire J.L. Lions, Université Pierre et Marie Curie, 4 place Jussieu, 75005 Paris, France, and ALPINES INRIA, Paris, France
Abstract
The Helmholtz equation is notoriously difficult to solve with standard numerical methods, increasingly so, in fact, at higher frequencies. Controllability methods instead transform the problem back to the time-domain, where they seek the time-harmonic solution of the corresponding time-dependent wave equation. Two different approaches are considered here based either on the first or second-order formulation of the wave equation. Both are extended to general boundary-value problems governed by the Helmholtz equation and lead to robust and inherently parallel algorithms. Numerical results illustrate the accuracy, convergence and strong scalability of controllability methods for the solution of high frequency Helmholtz equations with up to a billion unknowns on massively parallel architectures.
keywords:
Helmholtz equation; time-harmonic scattering; exact controllability; finite elements; domain decomposition; parallel scalability
††journal: Journal of LaTeX Templates
1 Introduction
The efficient numerical solution of the Helmholtz equation is fundamental to the simulation of time-harmonic wave phenomena in acoustics, electromagnetics or elasticity. As the time frequency increases, so does the size of the linear system resulting from any numerical discretization in order to resolve the increasingly smaller wave lengths. With the increase in frequency, however, the performance of standard preconditioners based on multigrid, incomplete factorization or domain decomposition approaches, originally developed for positive definite Laplace-like equations, rapidly deteriorates [1].
In recent years, a growing number of increasingly sophisticated preconditioners has been proposed for the iterative solution of the Helmholtz equation; ”Shifted Laplacian” preconditioners [2], for instance, have led to modern multigrid [3, 4] and domain decomposition preconditioners [5, 6]. While some of those preconditioners may achieve a desirable frequency independent convergence behavior in special situations [7], that optimal behavior is often lost in the presence of strong heterogeneity. Moreover, they are typically tied to a special discretization or fail to achieve optimal scaling on parallel architectures.
Controllability methods (CM) offer an alternative approach for the numerical solution of the Helmholtz equation. Instead of solving the problem directly in the frequency domain, we first transform it back to the time domain where we seek the corresponding time-dependent periodic solution, , with known period . By minimizing an energy functional which penalizes the mismatch after one period, controllability methods iteratively adjust the (unknown) initial condition thereby steering towards the desired periodic solution. Once the minimizer of has been found, we immediately recover from it the solution of the Helmholtz equation. As the CM combines the numerical integration of the time-dependent wave equation with a conjugate gradient (CG) iteration, it is remarkably robust and inherently parallel.
In [8], Bristeau et al. proposed the first CM for sound-soft scattering problems based on the wave equation in standard second-order form. Since the initial condition then lies in , the original formulation requires the solution of a coercive elliptic problem at each CG iteration. Heikkola et al. in [9, 10] presented a higher-order version by using spectral FE and the classical fourth-order Runge-Kutta (RK) method. For more general boundary-value problems, such as wave scattering from sound-hard obstacles, inclusions, or wave propagation in physically bounded domains, the original CM will generally fail because the minimizer of is no longer unique. In [11], we proposed alternative energy functionals which restore uniqueness, albeit at a small extra computational cost, for general boundary-value problems governed by the Helmholtz equation.
More recently, Glowinski and Rossi [12] proposed a CM based on the wave equation in first-order (or mixed) form using classical Raviart-Thomas (RT) finite elements. As then lies in , the solution of an elliptic problem at each CG iteration is no longer necessary and the CM becomes in principle trivially parallel. Still, the lack of availability of mass-lumping for RT elements again nullifies the main advantage of the first-order formulation because the mass-matrix now needs to be ”inverted” at each time-step.
Here we revisit the original CM from [8, 12] and consider two distinct discretizations, which both lead to highly efficient and inherently parallel methods. In Section 2, we recall the CMCG method based on the wave equation in second-order form and propose a filtering procedure which permits the use of the original energy functional , regardless of the boundary conditions. Next, in Section 3, we consider the CM based on the wave equation in first-order form and again show how to extend it to arbitrary boundary-value problems governed by the Helmholtz equation. Thanks to a recent hybrid discontinuous Galerkin (HDG) method [13], which automatically yields a block-diagonal mass-matrix, the time integration of the wave equation then becomes truly explicit and the entire CMCG approach trivially parallel. In Section 4, we perform a series of numerical experiments to illustrate the accuracy, convergence behavior and inherent parallelism of the CMCG approach. In particular, we apply it to large-scale high-frequency Helmholtz problems with up to a billion unknowns to demonstrate its strong scalability on massively parallel architectures.
2 Controllability methods for the second-order formulation
2.1 Time-harmonic waves
We consider a time-harmonic wave field in a bounded connected computational domain , , with a Lipschitz boundary . The boundary consists of three disjoint components, where we impose a Dirichlet, Neumann and impedance (or Sommerfeld-like absorbing) boundary condition, respectively; the boundary condition is omitted whenever the corresponding component is empty. In , the wave field hence satisfies the Helmholtz equation
[TABLE]
where is the (angular) frequency, the wave speed, the wave number, the unit outward normal, and , , and are known and may vanish.
The above formulation is rather general and encompasses most common applications such as sound-soft scattering problems with and , sound-hard scattering problems with and , or physically bounded domains with . We shall always assume for any particular choice of , , or combination of boundary conditions that (2.1) is well-posed and has a unique solution .
Instead of solving the Helmholtz equation directly in the frequency domain, we now reformulate (2.1) in the time domain. Then, the corresponding time-harmonic wave field, , satisfies the (real-valued) time-dependent wave equation
[TABLE]
for the (unknown) initial values and .
For sound-soft scattering problems (2.1), where and , Bristeau et al. [8, 14] proposed to determine via controllability by computing a time-periodic solution of (2.2) with period . Once the initial values of are known, the solution of the original Helmholtz equation (2.1) is immediately given by
[TABLE]
To determine and , the problem is reformulated as a least-squares optimization problem over for the quadratic cost functional
[TABLE]
where satisfies (2.2) with the initial values and . The functional measures in the energy norm the mismatch between the solution of (2.2) at the initial time and after one period. It is non-negative and convex, while if, and only if, and for any given initial values ; in particular, if and .
For more general scattering problems, however, is no longer strictly convex as the -periodicity of and no longer guarantees a unique periodic solution of (2.2). Instead, for the general boundary-value problem (2.1), the situation is more complicated and summarized in the following theorem [11] .
Theorem 1**.**
Let be the unique solution of (2.1) and be a (real-valued) solution of (2.2) with initial values . If and are time periodic with period , then admits the Fourier series representation
[TABLE]
for any , where the constants and the eigenfunctions , , satisfy
[TABLE]
Let . Then satisfies
[TABLE]
*Furthermore, if , then . If , then .
Here H_{D}^{1}:=\{w\in H^{1}(\Omega):w=0\text{ on \Gamma_{D}}\} and denotes the standard inner product.*
Proof.
See [11]. ∎
For sound-soft scattering problems (), where both Dirichlet and Sommerfeld-like absorbing boundary conditions are imposed on , all the eigenfunctions , , and the constants , in (2.7) vanish identically. Thus, the minimizer of in (2.4) then coincides with .
For scattering problems from sound-hard obstacles or penetrable inclusions (, ), the eigenfunctions and the constant in (2.7) still vanish identically, yet the constant may be nonzero. Given any minimizer of , we can recover by subtracting the spurious shift using the compatibility condition:
[TABLE]
In fact, any impedance condition (2.1b) that includes a positive (or negative) definite zeroth order term, such as a more accurate absorbing boundary condition [15, 16], also circumvents the indeterminacy due to . For wave propagation in physically bounded domains (), the eigenfunctions and the constants in (2.7) typically do not vanish. However, we can always restore uniqueness by replacing with an alternative energy functional, thereby incurring a small increase in computational cost – see [11].
2.2 Fundamental frequency extraction via filtering
From Theorem 1 we conclude that a minimizer of generally yields a time-dependent solution of (2.2), which contains a constant shift determined by , a linearly growing part determined by , and higher frequency harmonics determined by , all superimposed on the desired time-harmonic field with fundamental frequency . Those spurious modes can be eliminated by replacing with an alternative energy functional at a small extra computational cost [11]. Instead we now propose an alternative approach via filtering which removes all spurious modes without requiring a modified energy functional.
Let be the time-dependent solution of (2.2) that corresponds to a minimizer of . Next, we define \widehat{y}\in\{w\in H^{1}(\Omega)\ |\ w=g_{D}\text{ on \Gamma_{D}}\} as
[TABLE]
To extract from , we now take advantage of the mutual orthogonality of different time harmonics in . Hence, we multiply (2.5) with and integrate in time over to obtain
[TABLE]
This yields
[TABLE]
where and all have vanished but the constant is still undetermined.
If or , Theorem 1 implies that and thus . Otherwise in the pure Neumann case (), we determine by integrating (2.10), multiplied by , over and using the compatibility condition
[TABLE]
from (2.1a). This immediately yields the remaining constant
[TABLE]
We summarize the above derivation in the following proposition.
Proposition 1**.**
Let be the unique solution of (2.1) and the time dependent solution of (2.2) corresponding to a minimizer of , i.e. . Then is given by (2.10) with if or , and with given by (2.12) when .
Not only does the above filtering approach allow us to use the original cost functional , it also involves a negligible computational effort or storage amount, as the time integral for can be calculated cumulatively via numerical quadrature during the solution of the wave equation (2.2).
2.3 The CMCG Algorithm
To minimize the quadratic cost functional defined by (2.4) over , a natural choice is the conjugate gradient (CG) method [8], which requires the Fréchet derivative of at :
[TABLE]
Here denotes an arbitrary perturbation, the standard duality pairing, and the solution of the adjoint (backward) wave equation:
[TABLE]
The derivation of (2.3) and (2.15) can be found in [8]. In each CG iteration the derivative requires the solution of the forward and backward (adjoint) wave equations (2.2) and (2.15) over one period . Moreover, each CG iteration requires an explicit (Riesz) representer of the gradient defined in (2.3), which is determined by solving the symmetric and coercive elliptic problem [8, 17]:
[TABLE]
For the sake of completeness, we list the full CMCG Algorithm – see [8, 11]:
**CMCG Algorithm. ** **
- (1)
Initialize (initial guess). 2. (2)
Solve the forward and the backward wave equations (2.2) and (2.15) to determine the gradient of , , defined by (2.3). 3. (3)
Solve the coercive elliptic problem (2.16) with to determine the new search direction . 4. (4)
Set . 5. (5)
For
- 5.1
Solve the wave equation (2.2) with and the initial values and the backward wave equation (2.15). Compute the gradient defined by (2.3). 2. 5.2
Solve the coercive elliptic problem (2.16) with to get . 3. 5.3
** 4. 5.4
** 5. 5.5
** 6. 5.6
** 7. 5.7
** 8. 5.8
Stop when the relative residual lies below the given tolerance
[TABLE] 6. (6)
Return approximate solution of (2.1) given by
[TABLE]
Since , the updates of , and in Steps 5.4, 5.5 and 5.7 in the CMCG Algorithm also remain in . We emphasize that (2.16a) is independent of and leads to a symmetric and positive definite linear system, which can be solved efficiently and in parallel with standard numerical (multigrid, domain decomposition, etc.) methods [18, 6].
3 Controllability methods for first-order formulations
The CMCG Algorithm from Section 2.3 iterates on the initial value of the second-order wave equation (2.2) until its solution is -time periodic. However, the gradient of the cost functional , which is needed during the CG update, only lies in the dual space . To ensure that the solution remains sufficiently regular and in , the corresponding Riesz representative is computed at every CG iteration by solving the strongly elliptic problem (2.16a). In [12], Glowinski et al. derived an equivalent first-order formulation for sound-soft scattering problems, where the solution instead lies in , which is reflexive. As a consequence, all CG iterates automatically lie in the correct solution space , while the solution of (2.16a) is no longer needed.
3.1 First-order formulation for general boundary conditions
Again, we always assume for any particular choice of , , and combination of boundary conditions that (2.1) has a unique solution . Following [12], we now let , and rewrite the time-dependent wave equation (2.2) in first-order form:
[TABLE]
Hence, the solution of (3.1) lies in the function space [19, 20],
[TABLE]
In terms of and , the energy functional defined in (2.4) now becomes
[TABLE]
where solves (3.1) with initial value .
The CMCG Algorithm for the first-order formulation is identical to that for the second-order formulation from Section 2.3 except for Steps 2 and 5.1, where is now replaced by :
[TABLE]
Here denotes an arbitrary perturbation with
[TABLE]
whereas solves the backward (adjoint) wave equation in first-order form [12], that is (3.1) with and
[TABLE]
For sound-soft scattering problems (), the functional always has a unique (global) minimizer, which therefore coincides with the (unique) time-harmonic solution of (3.1). For more general boundary value problems, however, the minimizer of is not necessarily unique, as shown in the following theorem.
Theorem 2**.**
Let be the unique solution of (2.1) and be a real-valued solution of (3.1) with initial values . If and are time periodic with period , then and admit the Fourier series representation
[TABLE]
where the constant , with
[TABLE]
and the complex-valued eigenfunctions , , satisfy
[TABLE]
Furthermore, if , then .
Proof.
Let
[TABLE]
Then and satisfy (3.1) with and initial values
[TABLE]
Since and are -periodic, so are and . Moreover, the mappings
[TABLE]
are -periodic and continuous for any [19]. Hence, they admit the Fourier series representation,
[TABLE]
where , . Next, we define
[TABLE]
which implies that
[TABLE]
We shall now show that and satisfy (3.8) for all . First, integration by parts, (3.1a)-(3.1b) and the periodicity of and imply
[TABLE]
Together with definition (3.9) of and , we thus immediately obtain
[TABLE]
Since for , we infer from (3.9) that
[TABLE]
and hence satisfies (3.8e). Similarly, (3.8c), (3.8d) follow from the fact that and satisfy (3.1c), (3.1d) with . Hence , satisfy (3.8) for all . In fact for , (3.8) corresponds to (2.1) in first-order formulation with , , homogeneous boundary conditions and no sources. By uniqueness, and , together with their complex conjugates, are therefore identically zero.
Next, we consider , . Again, since and satisfy (3.1a)-(3.1e) with and homogeneous boundary conditions, we obtain from (3.9) with and the periodicity of and
[TABLE]
In particular, (3.10)-(3.11) implies with and that
[TABLE]
and hence, on , since . Moreover, Green’s formula, together with (3.10) and the homogeneous boundary conditions, implies that
[TABLE]
and therefore satisfies (3.7).
To show that is constant, we now let and , , where is the -th unit basis vector of . Integration of (3.1b) over , definition (3.9) with and the periodicity of then yield
[TABLE]
From (3.12), we conclude that , , which implies
[TABLE]
Since satisfies (3.1e) with , , if . Similarly, if , (3.1c), together with on , yields
[TABLE]
Thus, when , which completes the proof.
∎
For sound-soft scattering problems, where and , and all eigenfunctions , , of (3.8) trivially vanish in (3.6) [21]. Therefore, (3.6)-(3.7) in Theorem 2 with imply that
[TABLE]
From the real part of (2.1) we than conclude that
[TABLE]
3.2 Fundamental frequency filtering for first-order formulation
When the CMCG method is applied to the first-order formulation (3.1), any minimizer of generally consists of spurious perturbations , and eigenfunctions , superimposed on the desired (unique) solution of (2.1). To extract from , we apply a filtering approach, similar to that in Section 2.2, and thereby restore uniqueness. Again, we multiply the Fourier series representation in (3.6) of by and integrate over . Since and are independent of time, while is orthogonal to , , all spurious modes vanish and the resulting expression simplifies to:
[TABLE]
which immediately yields
[TABLE]
We summarize this result in the following proposition.
Proposition 2**.**
Let be the unique solution of (2.1) and be a -time periodic solution of (3.1). Then is given by (3.14) .
3.3 Hybrid DG FE-Discretization
In [12], Glowinski et al. used standard Raviart-Thomas (RT) finite elements to discretize (3.1). Since no mass-lumping is available for RT elements on triangles or tetrahedra [22], each time-step then requires the inversion of the mass-matrix. To avoid that extra computational cost, which strongly impedes parallelization, we instead consider the recent hybrid discontinuous Galerkin (HDG) FEM [13] to discretize (2.1) in its corresponding first-order formulation together with (3.1). Then, the mass-matrix is block-diagonal, with (small and constant) block size equal to the number of dof’s per element, so that the time-stepping scheme becomes truly explicit and inherently parallel.
Let denote a regular triangulation of , the set of all faces and the space of polynomials of degree . In addition, we define
[TABLE]
[TABLE]
For the time integration of (3.18), we use the standard explicit fourth-order Runge-Kutta (RK4) method.
3.4 Convergence and superconvergence
For a FE discretization with piecewise polynomials of degree , we usually expect convergence as with respect to the -norm. For the above HDG discretization, however, an extra power in can be achieved by applying a cheap local post-processing step [13]. The same (super-) convergence in space of order using only -FE can be achieved with the CMCG method by applying the post-processing step to the numerical solutions of (3.1) at the final time .
[TABLE]
for any element . The new approximate solution is then given by (3.14) with and replaced by and .
To illustrate the accuracy and verify the expected convergence rates for the various FE discretizations in the CMCG method, we now consider the following one-dimensional solution
[TABLE]
of (2.1) in with , , and . Figure 1 shows the error obtained with the CMCG method for the first-order formulation (2.2) and a -HDG discretization on a sequence of increasingly finer meshes , . Clearly as we refine the mesh, we always reduce the time-step in the RK4 method to satisfy the CFL stability condition. The CG iteration stops once the tolerance is reached. We also compare the solutions obtained with the CMCG method applied to the second-order formulation using a (continuous) or -FEM. All numerical solutions display the expected optimal convergence of order with polynomials of degree , while the first-order HDG approach even achieves superconvergence of order , once local post-processing is applied to the final CG iterate.
3.5 Physically bounded domain
In the absence of Dirichlet or impedance boundary conditions, the first-order formulation does not yield the correct minimizer of . As a simple remedy, we proposed in Section 3.2 a filtering procedure which removes the unwanted spurious modes. To illustrate the effectiveness of the filtering procedure, we now consider the exact solution of (2.1)
[TABLE]
in with homogeneous Neumann boundary conditions and , . Note that is not an eigenvalue of (2.6) and therefore the solution of (2.1) is well-posed. However, as indeed corresponds to the first eigenvalue of the negative Laplacian, the CMCG method in general will not yield the correct (unique) solution – see Theorems 1 and 2. Indeed as shown in Figure 2, the original CMCG method [8] applied to the second-order formulation with the energy functional in (2.4) does not yield the exact solution of (2.1), unlike the numerical solutions obtained after filtering – see Sections 2.2 and 3.2.
4 Numerical results
Here we present a series of numerical examples that illustrate the accuracy, convergence behavior and parallel performance of the CMCG method. First, we verify that the numerical solution of (2.1) obtained with the CMCG method converges to the numerical solution obtained with a direct solver for the same spatial FE discretization as the time step in the numerical integration of (2.2). Next, we evaluate different stopping criteria for the CG iteration in the CMCG Algorithm from Section 2.3. We also compare the CMCG Algorithm to a long-time solution of the wave equation without controllability (“do-nothing” approach) to demonstrate its effectiveness, in particular for nonconvex obstacles. Moreover, we show how an initial run-up yields a judicious initial guess for the CG iteration thereby further accelerating convergence. Finally, we apply the CMCG method to large scale scattering problems on a massively parallel architecture, where the elliptic problem (2.16) is solved in parallel with domain decomposition methods.
4.1 Semi-discrete convergence
First, we consider a simple 1D example to show for a fixed FE-mesh that the numerical solution , obtained with the CMCG method, converges to the numerical solution , obtained with a direct solver, as . Hence we consider the following solution of (2.1) in with , and :
[TABLE]
Now, let be the FE Galerkin solution corresponding to the direct solution of the linear system
[TABLE]
resulting from the same standard -conforming or HDG -FE discretization of the Helmholtz equation (2.1) in second- or first-order formulation, respectively. For the time integration of (2.2) or (3.1) in the CMCG Algorithm, we use the standard explicit fourth order Runge-Kutta (RK4) method.
Usually we avoid inverting the mass-matrix at each time step via order preserving mass-lumping [23] which, however, introduces an additional spatial discretization error. Here to ensure a consistent comparison, we thus compute and both either with, or without, mass-lumping (ML). For the CG iteration, we always choose , and fix the tolerance to to ensure convergence to machine precision accuracy.
In Figure 3, we monitor the difference between the numerical solution or of (4.1), obtained with a direct solver, and or , obtained with the CMCG method using either the second or the first order formulation, respectively. As expected, for increasingly smaller and a fixed stringent tolerance in the CG iteration, the numerical solution of the CMCG method always converges to the discrete solution of the Helmholtz equation for the same FE discretization.
4.2 CG iteration and initial run-up
Next, we first compare different stopping criteria for the CG iteration in the CMCG Algorithm applied to the original second-order formulation from Section 2. We then illustrate how the CMCG method greatly accelerates the convergence of a solution of the wave equation to its long-time asymptotic limit, in particular for nonconvex obstacles. Finally, we show how an initial run-up yields a judicious initial guess for the CG iteration, which further accelerates the convergence of the CMCG Algorithm.
Hence, we consider a two-dimensional sound-soft scattering problem (2.1) with , , and in a bounded square domain , , either with a convex obstacle or a semi-open square shaped cavity. On the boundary of the obstacle, we impose a homogeneous Dirichlet condition and on the exterior boundary a Sommerfeld-like absorbing condition on the total wave field. The incident plane wave
[TABLE]
impinges with the angle upon the obstacle.
4.2.1 CG iteration and stopping criteria
In Algorithm (Section 2.3), the CMCG method terminates at the -th iteration and returns
[TABLE]
when the relative CG-residual in Step 5.8,
[TABLE]
is less than the tolerance . Indeed, a small CG-residual indicates that the gradient of is sufficiently small at and thus that a minimum has been reached.
Since the cost functional also vanishes at the minimum, we can use itself, instead of its gradient, to monitor convergence of the CG iteration via the relative periodicity misfit,
[TABLE]
In fact, the convergence criterion (4.5) is typically used in long-time simulations of the wave equation without controllability (“do-nothing” approach) to determine the current misfit from periodicity in the energy norm.
Alternatively, we may also directly compute the current relative Helmholtz residual from (2.1):
[TABLE]
where and result from a FE discretization of (2.1) without mass-lumping, corresponds to the discrete vector of FE coefficients of , and denotes the discrete Euclidean norm.
In Figure 5, we monitor , and , defined in (4.4)–(4.6) for the CMCG solution at the -th CG iteration. Whether for a convex (Figure 4a) or a nonconvex (Figure 4b) obstacle, both the CG-residual and the periodicity misfit rapidly converge to zero. In contrast, the Helmholtz residual stagnates beyond the first hundred CG iterations, as the mass-matrix that appears in in (4.6) is discretized here without mass-lumping. That additional discretization error together with the numerical error in the time integration of (2.2) both prevent the discrete Helmholtz residual from converging to zero; hence, (4.6) is generally not a reliable stopping criterion for the CMCG method, unless the spatial FE discretizations used in (2.1) and (4.1) are identical.
4.2.2 CMCG method vs. long-time wave equation solver
In general, the solution of the time-harmonically forced wave equation (2.2) converges asymptotically to the time-harmonic solution [24]
[TABLE]
where is the (unique) solution of the Helmholtz equation (2.1). Thus, with a wave equation solver at hand, one can in principle compute from by solving (2.2) without controllability until a quasi-periodic regime is reached. Given the current value of at time , , one can extract from it the complex-valued approximate solution of (2.1),
[TABLE]
which converges to as . This “do-nothing” approach only requires the time integration of (2.2) without controllability or CG iteration, but it may converge arbitrarily slowly for nonconvex obstacles due to trapped modes [8, 11].
In Figure 6, we monitor the periodicity misfit of and , where is the CMCG solution at the -th CG iteration and is given by (4.8). In addition, we also compare both numerical solutions with the direct solution of the linear system (4.1), resulting from the same underlying FE discretization, yet without mass-lumping.
We observe that the asymptotic solution and the CMCG solution indeed both converge to the time-harmonic solution , until the additional errors caused by mass-lumping and the time discretization dominate the total error – see Section 4.1. For the convex obstacle, the number of CG iterations required by is only half the number of time periods needed for to reach the same level of accuracy. However, since each CG iteration requires not only the solution of a forward and backward wave equation but also of the elliptic problem (2.16a), simply computing a long-time solution of the time-harmonically forced wave equation (2.2) without controllability in fact proves cheaper here than the CMCG Algorithm. For a nonconvex obstacle, however, the long-time numerical solution of the time-dependent wave equation converges extremely slowly and fails to reach the asymptotic time-harmonic regime even after 1000 periods. In contrast, the convergence of the CMCG solution remains remarkably insensitive to the non-convexity of the obstacle.
4.2.3 Initial run-up
In [25], Mur suggested that convergence of the time-harmonically forced wave equation (2.2) to the time-harmonic asymptotic regime can be accelerated by pre-multiplying the time-harmonic sources in (2.2) with the smooth transient function from zero to one,
[TABLE]
active during the initial time interval , – see also [8].
Again, we consider plane wave scattering either from a convex or nonconvex obstacle – see Figure 4. Now, we first solve the wave equation (2.2) with the modified source terms and zero initial conditions until time , , which yields the time-dependent solution . After that initial run-up phase, we then apply the CMCG Algorithm (Section 2.3) using the initial guess
[TABLE]
To estimate the total computational effort, we count the total number of time periods for which the (forward or backward) wave equation is solved: during initial run-up and during the CG iteration. In Figure 7 we display the total number of time periods needed until convergence with , as we vary the number of periods in the initial run-up.
For a convex obstacle, the CMCG Algorithm without any initial run-up requires time periods. However, as in Section 4.2, convergence can also be achieved at a comparable computational effort simply by solving the wave equation, here with the source terms pre-multiplied by in (4.9). Still, the minimal computational cost is achieved when both the initial run-up and the CMCG Algorithm are combined.
For the nonconvex obstacle, however, simply solving the time-harmonically forced wave equation over a very long time, be it with or without smoothing, fails to reach the long-time asymptotic final time-harmonic state. Regardless of the length of the initial run-up, convergence indeed cannot be achieved here (within 1000 time periods) without controllability because of trapped modes. Nevertheless, the initial run-up always speeds up the convergence of the CMCG method by providing a judicious initial guess for the CG iteration.
4.3 Parallel computations
Both the CMCG method for the second-order formulation from Section 2 and that for the first-order formulation from Section 3 lead to inherently parallel non-intrusive algorithms, as long as an efficient parallel solver for the time-dependent wave equation is available. As the first-order formulation with the HDG discretization neither requires mass-lumping nor the solution of an elliptic problem, it is in fact trivially parallel. Here we demonstrate that even the CMCG approach for the second-order formulation, which does require the solution of (2.16a) at each CG iteration, nonetheless achieves strong scalability on a massively parallel architecture.
The CMCG Algorithm from Section 2.3 is implemented within FreeFem++ [26], an open source finite element software written in C++. FreeFem++ defines a high-level Domain Specific Language (DSL) and natively supports distributed parallelism with MPI. The parallel implementation of the CMCG method relies on the spatial decomposition of the computational domain into multiple subdomains, each assigned to a single computing core. Local finite element spaces are then defined on the local meshes of the subdomains, effectively distributing the global set of degrees of freedom across the available cores.
The bulk of the computational work for solving the forward and backward wave equations in Step (5)5.1 of the CMCG Algorithm simply consists in performing a sparse matrix-vector product at each time step, which is easily parallelized in this domain decomposition framework: it amounts to performing local matrix-vector products in parallel on the local set of degrees of freedom corresponding to each subdomain, followed by local exchange of shared values between neighboring subdomains.
While the explicit time integration of the wave equation is trivially parallelized thanks to mass-lumping, achieving good parallel scalability for the elliptic problem in Step (5)5.2 of the CMCG Algorithm is more difficult. Here we use domain decomposition (DD) methods [18], which are well-known to produce robust and scalable parallel preconditioners for the iterative solution of large scale partial differential equations. We use the parallel DD library HPDDM [27], which implements efficiently various Schwarz and substructuring methods in C++11 with MPI and OpenMP for parallelism and is interfaced with FreeFem++ .
The elliptic problem (2.16a) in the CMCG algorithm is solved by HPDDM using a two-level overlapping Schwarz DD preconditioner, where the coarse space is built using Generalized Eigenproblems in the Overlap (GenEO) [28]. The GenEO approach has proved effective in producing highly scalable preconditioners for solving various elliptic problems [6, 28].
All computations were performed on the supercomputer OCCIGEN at CINES, France 111https://www.cines.fr/calcul/materiels/occigen/, with 50544 (Intel XEON Haswell) cores.
4.3.1 2D Marmousi Model
Here we consider the well-known Marmousi model from geophysics [29], that is (2.1) in with the source
[TABLE]
The velocity profile is shown in Figure 8 and we apply absorbing boundary conditions on the lateral and lower boundaries and a homogeneous Dirichlet condition at the top. For the spatial discretization, we use a -FE method with (order preserving) mass-lumping [23] and at least points per wave length. For the time integration of (2.2), we apply the leap-frog scheme (LF); here, the number of time steps per period remains constant at all frequencies , as both and are inversely proportional to . To speed-up the convergence of the CMCG method, we also use an initial run-up (Section 4.2) until time , which lets waves travel at least once across the entire computational domain during run-up; hence, we set
[TABLE]
For any particular frequency , we apply the CMCG method for fixed parameters and FE-mesh while increasing the number of (CPU) cores. Figure 9 displays the real part of the wave field with [Hz]. In Figure 10, we observe linear speed-up (strong scaling) at every frequency with increasing number of cores. In fact, the speed-up is even slightly better than linear due to cache effects, but also because the cost of the direct solver used on each subdomain decreases superlinearly with the decreasing size of subdomains as the number of cores increases.
As the frequency increases, both the period and the time-step decrease, so that the number of time steps per CG iteration remains constant. Since the number of CG iterations does not grow here with increasing , the bulk of the computational work in the CMCG Algorithm in fact shifts to the run-up phase. For Hz, for instance, the CMCG Algorithm stops after CG iterations, while of the total computational time is spent in the time integration of (2.2), in the elliptic solver (DDM) and in the initial run-up. In contrast, for Hz, the CMCG Algorithm already stops after CG iterations, while of the total computational time is spent in the initial run-up and in the CG iteration. By modifying the run-up time , one could arbitrarily shift the relative computational cost between run-up and CG iterations and thus further optimize for a minimal total execution time.
4.3.2 3D cavity
Finally, we compute the scattered wave from a sound-soft cavity – see Figure 11 – and hence consider (2.1) in with , , , and
[TABLE]
We impose a homogeneous Dirichlet boundary condition on the obstacle and a Sommerfeld-like absorbing condition on the exterior boundary of .
Now, we discretize (2.2) with -FE in space and the second-order LF method in time. To control the pollution error, we set , as we increase the frequency . Figure 12 shows the total wave field with inside the cavity. For fixed parameters and mesh size, we now solve (2.1) at frequencies with the CMCG method using an increasing number of cores – see Table 2. Again, we observe in Figure 13 (better than) linear (strong) scaling with increasing number of cores. In contrast to the previous Marmousi problem, the ”do-nothing” approach without controllability fails here because the 3D cavity is not convex.
5 Concluding remarks
We have presented two inherently parallel controllability methods (CM) for the numerical solution of the Helmholtz equation in heterogeneous media. The first, based on the second-order formulation of the wave equation, uses a standard (continuous) FE discretization in space with order preserving mass-lumping. Each conjugate gradient (CG) iteration then requires the explicit time integration of a forward and backward wave equation, together with the solution of the symmetric and coercive elliptic problem (2.16), which is independent of the frequency. The second, based on the first-order (or mixed) formulation of the wave equation, uses a recent hybridized discontinuous Galerkin (HDG) discretization, which not only automatically yields a block-diagonal mass-matrix but also completely avoids solving (2.16). Hence, it is trivially parallelized and even leads to superconvergence after a local post-processing step.
Both CMCG methods are inherently parallel, as they lead to iterative algorithms whose convergence rate is independent of the number of cores on a distributed memory architecture. Thanks to the well-known parallel efficiency of explicit methods combined with the excellent scalability of two-level domain decomposition preconditioners for coercive elliptic problems up to thousands of cores implemented in HPDDM, even the second-order CMCG approach exhibits parallel strong scalability.
The CMCG method can be applied to general boundary-value problems governed by the Helmholtz equation, such as sound-soft or sound-hard scattering problems or wave propagation in physically bounded domains. Although the CMCG solution will generally contain higher order spurious eigenmodes, we have proposed in Section 2.2 a simple filtering procedure to remove them. Furthermore, including a transient initial run-up to determine a judicious initial guess significantly accelerates the CG iteration. In fact, for scattering from convex obstacles, simply solving the time-harmonically forced wave equation over a long-time without any controllability can provide an even simpler, highly parallel Helmholtz solver. For nonconvex obstacles, however, solving the wave equation without any controllability (”do-nothing” approach) is not a viable option, as the long time asymptotic convergence to the time-harmonic regime is simply too slow due to trapped modes. In all cases, the CMCG Algorithm combined with the initial run-up leads to the smallest time-to-solution.
The CMCG approach developed here for the Helmholtz equation immediately generalizes to other time-harmonic vector wave equations from electromagnetics or elasticity. Its implementation is non-intrusive and particularly useful when a parallel efficient time-dependent wave equation solver is at hand. In the presence of local mesh refinement, local time-stepping methods [31] permit to circumvent the increasingly stringent CFL condition without sacrificing the explicitness or inherent parallelism. Finally, the CMCG method can also be used to compute periodic, but not necessarily time-harmonic, solutions of the wave equations. In particular, if the source consists of a superposition of several time-harmonic sources (”super-shot”) with rational frequencies, the solutions to the different Helmholtz problems can be extracted via filtering from a single application of the CMCG method.
Acknowledgement: This work was supported by the Swiss National Science Foundation under grant SNF 200021_169243. Access to the HPC resources of CINES was granted under allocation 2018-A0040607330 by GENCI.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] O. G. Ernst, M. J. Gander, Why it is Difficult to Solve Helmholtz Problems with Classical Iterative Methods, Springer Berlin Heidelberg, Berlin, Heidelberg, 2012, pp. 325–363.
- 2[2] Y. Erlangga, C. Vuik, C. Oosterlee, On a class of preconditioners for solving the Helmholtz equation, Appl. Num. Mat. 50 (3) (2004) 409–425.
- 3[3] H. Calandra, S. Gratton, X. Vasseur, A Geometric Multigrid Preconditioner for the Solution of the Helmholtz Equation in Three-Dimensional Heterogeneous Media on Massively Parallel Computers, Springer Internat. Publ., 2017, pp. 141–155.
- 4[4] M. Bollhöfer, M. J. Grote, O. Schenk, Algebraic multilevel preconditioner for the Helmholtz equation in heterogeneous media, SIAM J. Sci. Comput. 31 (5) (2009) 3781–3805.
- 5[5] I. Graham, E. Spence, E. Vainikko, Domain decomposition preconditioning for high-frequency Helmholtz problems with absorption, Mathematics of Computation 86 (307) (2017) 2089–2127.
- 6[6] M. Bonazzoli, V. Dolean, I. G. Graham, E. A. Spence, P.-H. Tournier, A two-level domain-decomposition preconditioner for the time-harmonic Maxwell’s equations, Lect. Notes Comput. Sci. Eng.
- 7[7] B. Engquist, L. Ying, Sweeping preconditioner for the Helmholtz equation: Moving perfectly matched layers, Mult. Model. Sim. 9 (2011) 686–710.
- 8[8] M.-O. Bristeau, R. Glowinski, J. Périaux, Controllability Methods for the Calculation of Time-Periodic Solutions. Application to Scattering, J. Comput. Phys. 147 (2) (1998) 265–292.
