Geometry-based approximation of waves in complex domains††thanks: This research was funded in part by the Austrian Science Fund (FWF) projects 10.55776/F65 (MN, IP), 10.55776/P33477 (MN, IP), and 10.55776/ESP519 (MN).
Abstract
We consider wave propagation problems over 2-dimensional domains with piecewise-linear boundaries, possibly including scatterers. We assume that the wave speed is constant, and that the initial conditions and forcing terms are radially symmetric and compactly supported. We propose an approximation of the propagating wave as the sum of some special space-time functions. Each term in this sum identifies a particular field component, modeling the result of a single reflection or diffraction effect. We describe an algorithm for identifying such components automatically, based on the domain geometry. To showcase our proposed method, we present several numerical examples, such as waves scattering off wedges and waves propagating through a room in presence of obstacles. Software implementing our numerical algorithm is made available as open-source code.
Keywords: wave propagation, surrogate modeling, scattering, geometrical theory of diffraction.
AMS subject classifications: 35L05, 35Q60, 65M25, 78A45, 78M34.
1 Introduction
The discretization of numerical models for the simulation of complex phenomena results in high-dimensional systems to be solved, usually at an extremely high cost in terms of computational time and storage memory. Among these models, wave propagation problems represent an extremely interesting topic: relevant applications can be found, e.g., in the field of array imaging, where acoustic, electromagnetic, and elastic waves in scattering media are modeled by the reflectivity coefficient, which is often unknown. Some examples in this direction can be found in [1, 2, 3, 4], where inverse scattering problems are used to infer the reflectivity of one or more scatterers embedded either in a known and smooth medium, or in a randomly inhomogeneous medium. Another example of application of wave propagation problems is numerical acoustics, where the goal is to simulate the propagation of sound in a room, in presence of obstacles and walls with different absorbing and/or reflecting properties. See, e.g., [5, 6] for some frequency-domain examples of this.
Our focus here are problems in the time domain, whose numerical simulation is expensive, mainly because one needs to use both a fine spatial mesh and a carefully chosen time step in order to satisfy the CFL condition [7, 8]. In the interest of making these simulations feasible, model order reduction (MOR) [9, 10, 11] represents a promising framework, whose goal is to reduce the computational cost of solving the problem of interest.
In this context, it is well known [12] that wave propagation problems are characterized by a slowly decaying Kolmogorov -width. Because of this, classical linear-subspace MOR methods are not able to reproduce the behavior of the wave propagation without relying on a very high-dimensional linear manifold. This makes linear surrogate models unappealing, since they do not yield significant speed-ups. In recent years, methods that rely on nonlinear and/or hybrid space-time approaches have been proposed. See, e.g., [13, 14, 15] and references therein.
In this work, we focus on wave propagation over 2-dimensional spatial domains, possibly including obstacles. We aim at proposing a new approximation framework, which satisfies the main goal of MOR techniques, that is, making the computational cost of the numerical simulations more feasible. We limit our investigation to domains with piecewise-linear boundaries and a constant wave speed. The initial conditions and forcing terms are assumed to be compactly supported and radially symmetric around a “source point”. Under these assumptions, and following ideas similar to those in [5, 6], we propose to construct a surrogate model for the solution of the target problem as a superposition of some special space-time terms, which we call “field components”.
Each field component models a reflection or diffraction effect, and is characterized by:
-
•
a space-time propagation term, related to the free-space radially symmetric solution of the wave equation;
-
•
a spatial indicator function, determining the spatial support of each component;
-
•
a nonlinear spatial term encoding the angular modulation of the component, which is crucial when modeling diffraction effects.
To compute the “angular modulation” term, we leverage concepts from the frequency-domain geometric theory of diffraction [16, 17]. However, in order to obtain a time-domain diffraction model that is suitable for our purposes, we first need to adapt the available results, effectively developing a novel time-domain diffraction model in the process.
The number of field components appearing in the surrogate is determined by the number of reflection and diffraction effects that are required to faithfully approximate the target wave, which ultimately depends on the geometry of the physical domain.
Among the advantages of the proposed approach, we mention the fact that each field component is separable into time-radial and angular components (in the “polar coordinates” sense). As we will see, we can leverage this to drastically reduce the computational cost and storage memory requirements of our approximation strategy.
The rest of the paper is structured as follows. In Section 1.1 we present the problem of interest. In Section 2 we introduce the main ingredients of our method, and we present our surrogate modeling algorithm. In Sections 3 and 4 we detail how we model reflection and diffraction effects, respectively. In Section 5 we present some numerical results to showcase our method. Both simple benchmarks (wedges) and more complicated tests (2D room model with scatterers) are considered. Some final considerations follow in Section 6.
1.1 Target problem
We are interested in the numerical approximation of the solution of the wave equation in complex domains. In this work, we consider 2-dimensional domains only. However, most of our discussion generalizes to 3D. We defer a discussion on this till Section 6.
We denote by the physical domain in which the wave equation is considered. We assume that is either a closed polygon or a set-subtraction of polygons (to allow for multiply connected domains). We denote by and the number of edges and vertices of , respectively. We study the propagation of waves in over a given time interval of interest . The model problem is the wave equation with constant (unit) wave speed:
(1) |
with the Laplacian operator, defined, in 2 dimensions, as . The homogeneous Neumann condition (i.e., the last equation above) models the whole boundary as sound-hard [7]. More generally, all or parts of may be modeled as sound-soft via a Dirichlet-type condition: . Depending on the target application, impedance boundary conditions may also be appropriate: , with .
We assume that the initial conditions and , as well as the forcing term , have radial symmetry around a given point. Without loss of generality, we will take such point to be the origin of :
(2) |
for all , with . We further assume that the functions have compact support, namely, that there exist such that for all and . Moreover, to avoid incompatibilities with the boundary conditions, for simplicity we will only consider the situation where the supports of the functions are fully contained in .
2 Approximation framework
Before we can model boundary effects (reflection and diffraction), we need to understand how the solution would behave if no boundary were present. To this aim, we consider the wave equation in free space
(3) |
which we have obtained from Eq. 1 by replacing with the whole plane.
Due to radial symmetry (of the initial conditions and of the forcing term), we can recast the problem in polar coordinates. This allows us to define the free-space solution in the radial coordinate, as the solution of
(4) |
where is the Laplace operator in polar coordinates (under radial symmetry), i.e., , and for all . For closure, it may also be necessary to provide a condition at , e.g., if the data are sufficiently smooth [18]. Note that, by the compact support of the initial conditions and of the forcing term, and by the finite (unit) speed of propagation of the wave equation, we have whenever .
Remark 2.1.
Generally, the free-space solution is not available analytically, except for very simple choices of initial conditions and forcing term. Accordingly, in most applications, the function will need to be replaced with a suitable approximation. To this effect, one can discretize Eq. 4, e.g., with a finite element approximation (in space) and some timestepping scheme (in time). See Section 5 for more details on this.
Our goal is to approximate, for all , the solution of the wave equation problem in Eq. 1 with a surrogate, defined as a sum of special functions (field components):
(5) |
Therein, is the above-mentioned free-space radially symmetric solution of Eq. 4, and denotes the indicator function with support , i.e.,
(6) |
Moreover, in Eq. 5, we have introduced the following quantities:
-
•
is the number of field components used in the approximation.
-
•
is the location of the point source from which originates.
-
•
is a spatial delay, which is used for the synchronization of diffraction effects.
-
•
is the spatial support of .
-
•
is a weight function describing the angular modulation. We assume to be a positive-homogeneous function, i.e., for all .
Remark 2.2.
We refer to as “angular modulation” since, in 2D, the positive-homogeneity assumption is equivalent to requiring to depend only on the angle between the vector and some reference direction, e.g., the positive -axis.
Note that, due to the finite speed of propagation of the free-space solution , we have that a generic term is zero whenever , i.e., for small enough, depending on .
The number of field components in Eq. 5 will be determined based on how many boundary effects (reflections and diffractions) need to be included in in order to have a good approximation of the target wave . We describe a strategy for automatically identifying a good in the next section.
2.1 Building the low-rank skeleton
Recalling that solves the wave equation in Eq. 1 in the domain , we use the first term in Eq. 5, namely, , to approximate the outgoing component of , ignoring any effect due to the boundary , except for shadows. Then, given such , we use the other terms to correct this first approximation. Each extra term models a single effect due to a certain portion of the boundary, specifically, an edge (reflection off that edge) or a vertex (diffraction about that vertex).
Going back to the first field component , let us define it, by providing its “ingredients” , , , and , cf. Eq. 5. We set , the center of the initial condition, as well as , since no delay is necessary for this first term. Then, leveraging symmetry, we set , which corresponds to the (physical) assumption that the propagation of is purely radial. Finally, we set (the spatial support of the first field component around ) as the set of points that can be reached from via a straight line without going outside , i.e.,
(7) |
In summary, the first term of is
(8) |
Remark 2.3.
From a practical viewpoint, the implementation of spatial supports like is not trivial. In our code, we verify that an arbitrary point belongs to by checking if there are no intersections between the line segment from to and any of the edges composing . In some sense, this may be considered akin to “ray-tracing” [6]. A similar approach, with minor modifications, works for the other spatial supports related to reflected or diffracted waves, cf. Eqs. 14 and 15 below.
Then we can move to the subsequent terms , . Their expressions depend on our choice of reflection and diffraction modeling, and will be provided in the upcoming sections. Instead, in the rest of the present section we focus on understanding how large should be, in order for to provide a faithful approximation of . Equivalently, we want to count the number of times the wave gets reflected or diffracted at the boundary . This is done incrementally, starting from the initial value (no boundary effects) and then updating this guess as more and more boundary effects get “discovered”.
To help us in this endeavor, we employ what we call a timetable, which, in this work, is simply a list of vectors, each with size . (Note that similar ideas can can also be found in [19, 5, 6] and references therein.) The timetable is built incrementally starting from an empty list, appending one new vector every time a new term is added in the sum in Eq. 5, starting from . The entries of the -th timetable vector are the waiting times before comes in contact with an edge or a vertex of . If it is impossible for to “cast light” (along a straight path) onto a certain edge or vertex (e.g., and in Fig. 1), then the corresponding entry in the timetable is set to . After this, it suffices to look for the smallest not-yet-explored entry of the timetable to identify what the next term of the approximation should be111Note that ties are possible when selecting the smallest timetable entry, e.g., if reaches an edge and an adjacent vertex at the same time (for an example, see the bottom vertex and the two adjacent sides of the triangle in Fig. 1). In such cases, each of such timetable entries must be explored in arbitrary order, one after the other.. Once the entry in the timetable has been explored, its value is set to .
We start by describing how the first vector of the timetable (corresponding to ) is computed, and how allows us to identify the (geometric) features of . The vector can be partitioned into edges-related part (the first entries) and vertices-related part (the last entries).
-
•
Edge times. Given a generic edge () belonging to the domain boundary, we define the corresponding entry of as
(9) Note that we have taken the shortest path from to , and that we have denoted the closure of as .
-
•
Vertex times. Given a generic vertex () of the domain boundary, we set
(10)
Note that we have included the delay (which is actually zero here) as a way to streamline Eqs. 9 and 10 for the upcoming section. See Fig. 1 for a diagram showcasing these formulas.
The smallest entry of is the time at which the first “boundary event” (reflection or diffraction) can happen222We say “can happen” since not all vertices can cause diffraction, when hit from a certain point source. This issue is discussed in Section 4.. The index of the smallest entry tells us whether the event is a reflection (index ) or a diffraction (index ), and also what edge/vertex causes the event. From here, we use the models described in Sections 3 and 4 to build , by computing , , , and .
Then, the second timetable vector can be computed by replacing all subscripts “1” by “2” in Eqs. 9 and 10. This is followed by the construction of , and so on. The process continues until all not-yet-explored entries of the timetable are larger than , where, as mentioned above, is the half-width of the support of forcing term and initial conditions. Indeed, starting from this time instant, the would-be next terms of do not affect the approximation anymore, since, due to the finite speed of wave propagation, they only act (on ) after the end of the time horizon, i.e., for . The total number of field components is simply the number of vectors in the timetable.
We summarize the overall procedure for the construction of the terms in Algorithm 1. For ease of presentation, once an entry of the timetable has been explored, it is set to as a way for the algorithm to ignore it from that point forward.
In trapping domains, see, e.g., Section 5.2, the number of terms might be rather large due to waves repeatedly “bouncing back and forth” between two or more edges/vertices. A large , although necessary for a good approximation of all wavefronts, is undesirable since it increases the computational cost of both the construction of the surrogate and its evaluation.
In [19], it is suggested to set a fixed upper bound (e.g., 1 or 2) on the maximum number of successive diffraction events that are taken into account. Here, we propose and employ an alternative method that allows for a finer control on whether a certain field component is included or not, based on its magnitude. Specifically, we remove all terms that are smaller (in magnitude) than a certain tolerance tol, uniformly over and . This can be done as a post-processing step (thus speeding up the evaluation of but not its construction) or even while building the surrogate itself. This can be achieved with a simple modification of Algorithm 1, by introducing a test on the magnitude of each soon-to-be-added wave contribution , discarding terms that are too small.
3 Modeling reflection
We now present the strategy for modeling reflection due to an edge of the domain boundary . We rely on the well-known “geometrical optics” model, which describes wave propagation in terms of rays, not accounting for any diffraction [20]. We assume that we are adding a new term to the surrogate model in Eq. 5, due to a reflection phenomenon caused by the field component , . Specifically, we assume that a wave originating at hits the edge , which, in particular, requires . We need to prescribe several ingredients.
Spatial correction
We just transfer over from the incoming wave: . Indeed, as we will see in Section 4, we require the term only when modeling diffraction.
Source point
We use the method of images, which gives the position of as the reflection of with respect to the edge :
(11) |
where is the straight line on which edge lies. See Fig. 2 (left).
Weight function
Let be a generic point where we wish to evaluate the weight function . We define the incidence point as the intersection (if any) between edge and the segment from to . See Fig. 2 (left). According to the method of images, the amplitude of the reflected wave is equal (up to sign) to the amplitude of the incoming wave:
(12) |
Above and throughout this section, the sign depends on the type of boundary conditions on the edge (“” for Neumann, “” for Dirichlet).
Now, recall that we are assuming all weight functions to be positive-homogeneous. According to Remark 2.2, this means that is only a function of the angle between and the positive -axis. See Fig. 2 (left) for a graphical depiction. Specifically, with an abuse of notation, let and , where the “new” angle-dependent functions and are -periodic. By Eq. 12, we deduce the property
(13) |
where is the angle between edge and the positive -axis. This uniquely identifies , given and .
Spatial support
We first identify what portion of is actually “lit” by : . Note that we may have , for instance when obstacles are present between and . See Fig. 2 (right) for an illustration. Then, roughly speaking, we define the new support as the union of all line segments from that pass through . To be more precise, given , let be the intersection (if any) between and the line segment from to . Also, if exists, we define , which satisfies . The new support is defined as
(14) |
Figure 3 represents a possible output of the numerical algorithm. In this case, we simulate only the reflections, thus discarding, for the time being, any effect due to diffraction. It is clear that, by modeling reflection effects only, we may obtain a discontinuous approximation of the solution of our target problem, with discontinuities arising at the boundaries of the spatial supports identified so far. As we will see in the next section, introducing diffraction in our approximation will allow us to obtain a continuous approximation .
4 Modeling diffraction
Here, we describe a strategy for modeling waves diffracted by a vertex of the domain boundary . This is required in building a new field component whenever the smallest unexplored entry of the timetable is related to a vertex, i.e., in Algorithm 1, cf. Section 2.
In our modeling, we take inspiration from the uniform theory of diffraction (UTD) [17, 20, 21]. UTD provides an effective description of diffraction in the frequency domain, which we need to specialize for our time-domain modeling. This task is difficult for several reasons. On the one hand, standard approaches for frequency-to-time-domain conversion involve the inversion of the Fourier transform, which is rather costly in a numerical setting, where integration/convolution must be replaced by quadrature. (This issue actually affects also time-domain diffraction modeling based on impulse responses, see, e.g., [22, 23].) On the other hand, UTD is an asymptotic method, whose accuracy relies on assuming the frequency to be sufficiently large. As such, an inverse Fourier transform is not guaranteed to provide sound results, whenever the signal bandwidth includes low frequencies.
Both these reasons behoove us to develop a novel time-domain version of UTD. Specifically, we wish our diffraction modeling to fit in the framework of Eq. 5, so that:
-
•
Diffraction is modeled as a wave outgoing from a point source at some . This is actually in line with standard approaches, e.g., [24, 6], where diffraction is modeled through virtual sources on the vertex (in 2D) or edge (in 3D) that causes the diffraction event. This motivates the choice of the center , the diffraction vertex (we are employing the notation of Algorithm 1).
-
•
Diffraction has a spatial support , which (again in accordance to diffraction theory) we define as the set of all points that are visible (along straight-line paths) from , i.e.,
(15) -
•
The space-time dependence of the diffraction amplitude should be separable into an angular component , and a radial-temporal component, which, in fact, is assumed to coincide with the free-space wave propagation profile .
The last step is the most critical one, as it involves a simplifying modeling choice, specifically made to fit the approximate diffraction wave within our framework. Still, there are strong theoretical foundations for this, as we proceed to explain.
4.1 Modeling the angular modulation
From a phenomenological point of view, the angular modulation can be related to the diffraction coefficient appearing in geometrical diffraction theory [16, 20]. Indeed, the diffraction coefficient has exactly the desired role of scaling factor for the diffraction amplitude, which depends on the angle that the target measurement point forms with the edges adjacent the diffraction vertex. As such, we set equal to the UTD diffraction coefficient .
We define in full detail in Appendix A. Here, for our discussion, we only need the following basic facts: in 2-dimensional UTD, the diffraction coefficient depends on the above-mentioned angle between and , but also on (i) the domain geometry locally around the diffraction point, (ii) the location of the source that causes the diffraction, (iii) the frequency of the incident signal, and (iv) the distance .
The last two above-mentioned items are problematic in our framework: since we work in the time domain, we do not have a single incident frequency ; moreover, due to our separability assumption, we require the angular modulation to be independent of . However, frequency and radial distance always appear together, as a product, in the UTD diffraction coefficient. Specifically, such product can be interpreted as the distance between and the diffraction point , measured in wavelength units.
In practice, the value of determines how quickly the magnitude of decays to , as one moves away from a so-called “shadow boundary”, i.e., the boundary of the spatial support of either the incident or the reflected wave(s). Equivalently, determines the width of the transition region, which encompasses any shadow boundaries. See Appendices A and 15. Also, note that UTD requires to be large enough (), and that yields the geometrical-optics setting, i.e., a diffraction-free model, with .
Since the dependence of on the two troublesome terms happens only through , we propose the following strategy for defining a - and -independent angular modulation : we set as the diffraction coefficient obtained for some value of that is fixed a priori. Such value should be sufficiently large not to cause issues in UTD, but also sufficiently small to avoid the geometrical-optics pitfall.
Obviously, the specific choice of should be based on the ultimate approximation target: minimizing the discrepancy between and . However, it turns out that depends relatively mildly on the value of . See Appendix A for a theoretical justification, and Section 5.1 for some numerical tests. In our experiments, we settle for the value . A more careful quantitative investigation of the role of on the diffraction approximation accuracy is envisioned as a future research direction.
Instead of using frequency-domain UTD, the time-domain diffraction coefficient could be computed by convolution of the incoming wave with a “diffraction impulse response”, as done in [23, 25]. Such a convolution would need to be approximated (by quadrature) over and over, at each diffraction event. Notably, since the diffraction impulse response is not a Dirac delta, a convolution with it naturally introduces a radial modulation too. This entails that the diffraction wave does not behave like an angular modulation of the free-space wave , as assumed in our model.
Our modeling of diffraction through a diffraction coefficient that does not depend on time nor radius, although biased in the above-described way, is very efficient, as it avoids the expensive computation of convolutions with the diffraction impulse response. As we will show in our numerical experiments, this increased efficiency comes at the cost of a relatively small modeling error. As such, our approach remains justified.
4.2 Estimating the modeling error
We can assess the quality of our diffraction model a priori, by comparing its resulting approximation of the diffraction wave () with that obtained via the above-mentioned convolution approach [23], which we denote by here.
As before, assume that field component impinges on vertex , causing a diffraction event emanating from there. Given an arbitrary space-time position , the local discrepancy between the diffraction waves obtained with the two methods can be expressed by inverse Fourier transform, as
Above, denotes the Fourier transform operator, whereas is the UTD diffraction coefficient, which depends on both the position and the wavenumber , cf. Appendix A. On the other hand, is the diffraction coefficient used in our modeling, which is -independent and depends on only through the direction of . (Note that, in geometrical optics, one would set .)
It follows that, to achieve a small error, one should pick a value of close to that of , specifically at wavenumbers that lie closest to the Fourier spectrum of . In this way, we can expect that our approach, despite being based on a heuristic choice of , independently of , should do significantly better than geometrical optics.
This being said, our method has limitations, which are better seen by looking at the following global-in-wavenumber bound on the error magnitude:
(16) |
Our method may lead to gross errors if has large variations in . In this respect, it is worth nothing that, thanks to the availability of explicit formulas for , cf. Appendix A, it is possible to obtain an upper-bound for by direct inspection. Still, bound Eq. 16 is pessimistic, as we will show in our numerical experiments.
As a practical alternative, we propose a heuristic a posteriori error indicator, with the objective of obtaining better (but still approximate) information on the magnitude of the diffraction modeling error. To this aim, we apply the following multi-fidelity argument. Let be the approximation obtained through our method, including also diffraction terms, modeled as in Section 4.1. On the other hand, let be the approximation obtained with our approach, disregarding diffraction completely (“GO” stands for “geometrical optics”). As indicator of the approximation error , we simply use the cross-fidelity discrepancy . The justification behind this follows.
First, we note that, since reflection effects are modeled exactly in our approach, cf. Section 3, coincides with the superposition of all diffraction-caused effects. Second, we make the heuristic assumption that diffraction effects in are approximated with at most a relative error. (Of course, we have no way of verifying this in practice, as we would need access to the exact solution.) Accordingly, we have that and, by the triangular inequality,
We assess the reliability of this estimate in our numerical experiments in the next section.
5 Numerical results
In our experiments, we require a “reference” solution of Eq. 1 to validate our results. To this effect, we use the solution obtained by discretizing Eq. 1 with:
-
•
the P1-finite element (FE) method with mass-lumping, over a regular triangulation (mesh) of the physical domain ;
-
•
explicit leapfrog timestepping with a uniform time step that satisfies the CFL condition on the chosen mesh.
See [7, 8] for more details on this discretization strategy.
If the domain is unbounded, we first need to truncate it in such a way that reflections from the non-physical truncation boundary do not affect the solution in the region of interest for . Recalling that the problem data are supported in a ball of radius and center , this can be done, e.g., by truncating at the sphere with radius (we recall that we are assuming a unit wave speed) and center . In our tests, we rely on FEniCS [26] to carry out the FE discretization on 2-dimensional domains . Note that, instead, unbounded geometries are allowed in our proposed approach, making domain truncations unnecessary.
All our tests are performed in Python 3.8 on a machine with an 8-core 4.70 GHz Intel® processor. For reproducibility, our code is made available at https://github.com/pradovera/ray-wave-2d.
5.1 Some simple wedges
As a way to assess our proposed method in simple settings, we consider four different “wedge” domains. We define to be one of the portions of the plane delimited by two straight lines intersecting at a point, with being the outer angle at such point. The specific choices of wedge angles are reported in Table 1 for the four cases.
Example | exterior | incidence | number of | , cf. Eq. 17 |
---|---|---|---|---|
index | angle | angle | components | |
#1 | 5 | |||
#2 | 8 | |||
#3 | 4 | |||
#4 | 3 |
We set up a wave-propagation problem like Eq. 1, with an isotropic Gaussian with standard deviation . The center of is at a point located at a 4-unit distance from the wedge vertex, in the direction determined by the “incidence angle” . See Fig. 4 for a representation of the initial conditions in the four cases. We set , we enforce Neumann boundary conditions on the whole , and we seek the solution at the final time , i.e., time unit after the wave crest has reached the wedge vertex.
To this aim, we employ our proposed approach, see Section 2. First, we compute an approximation of the free-space solution , which solves Eq. 4, by employing the P1-FE method with explicit leapfrog timestepping. Note that, since Eq. 4 is cast in polar coordinates, we only need to discretize a 1D interval with P1-FE. Since the initial condition is supported within the unit disk, we have , and it suffices to approximate for . Since this space-time domain is only 2-dimensional, we can afford a very fine discretization. In our experiments, we employ a uniform Cartesian space-time grid, i.e., the mesh size is and the time step is . This satisfies the CFL condition. We show the resulting (which, in fact, we should denote by ) in Fig. 5. Note that, since we are solving the wave equation in 2D, the magnitude of decays like as , which corresponds to a spatial decay of . In 3D, the decay would be quicker, namely, in time and in space.
After this preliminary step, we use the timetable-based strategy from Section 2 to identify reflection and scattering effects, which are then added up to give the final approximation . We show the resulting in Fig. 6. In this figure, we also display a reference solution , which we obtain by direct discretization of Eq. 1 by P1-FE and leapfrog timestepping, as described at the beginning of Section 5.
In all four examples, we see that and seem qualitatively close. Notably, we can observe a good representation of the most prominent wavefronts, which are due to propagation of either the main “free-space” wave or to its reflections. Indeed, those wave contributions are reconstructed exactly: the only errors are the ones due to FE approximation and timestepping, which affect both and (the latter through the approximation of ). Instead, some differences are present when comparing diffraction effects, which arise as circular waves about the wedge vertex. We can quantitatively observe this in the last column of both Tables 1 and 6.
In example #1, we observe a very small error, which, in fact, is simply the (FE and timestepping) discretization error. This is related to the fact that the wedge index is an integer, thus making diffraction unnecessary in approximating the wave [17].
In the other examples, diffraction effects are necessary to correctly identify . While a good qualitative behavior can be observed in Fig. 6, we can see in Table 1 that a modest error is present. Specifically, as error measure, we use the supremum over of the relative -approximation error, defined as
(17) |
We see the largest error in example #4, where the relative -approximation error amounts to about . This example corresponds to a case of “almost grazing” incidence, with the source point being located rather close to one of the wedge’s edges. In turn, this leads to two shadow boundaries located very close to each other, with overlapping transition regions, cf. Appendix A. We interpret this result as evidence of the fact that our diffraction model from Section 4 is less accurate with grazing than with non-grazing incidence. Despite this, the error remains small in all the above tests, and our diffraction model may be considered satisfactory overall.
5.1.1 Building a cavity out of wedges
As a slightly more complicated example, we now combine the four wedges from the previous section to obtain the open cavity represented in Fig. 7. In this case, more reflection and diffraction effects arise, due to the trapping nature of the domain. Our initial conditions and forcing term are the same as before, but now all edges are sound-soft. Accordingly, we model them using Dirichlet boundary conditions. The time horizon is .
Using our strategy from Section 2, we build the approximation , which contains wave terms ( source wave, reflected waves, and diffraction waves). As visual reference, we display the source points of all field components in Fig. 7. Each dotted line segment is a “causality link”, showing how one field component causes the next, by either reflection or diffraction.
In Fig. 8, we compare the approximation with the reference solution , obtained as described at the beginning of Section 5, on a spatial mesh with around degrees of freedom. Once more, we see a good qualitative agreement between and , with the most important features of being identified well. We see “error waves” of small amplitude propagating from the 3 vertices of that generate diffraction effects. These correspond to errors in diffraction modeling. More quantitatively, the relative -approximation errors are roughly (at ), (at ), and (at ).
The approximation is built in approximately ms, out of which ms are used to compute the free-space solution . This is a surprisingly small time, compared to the computation of the reference , which takes about a minute, with the 2D meshing alone taking around s. Note that we are including also the meshing time in order to have a fair comparison of the costs incurred by the two considered methods, with the target being obtaining a reasonably accurate approximate solution of the wave equation.
As an additional experiment to validate our diffraction modeling, we study how the approximation error depends on the choice of , which affects the diffraction coefficient by being (roughly) inversely proportional to the width of the transition regions around shadow boundaries, cf. Section 4. We compute the -approximation error at times and , for values of between and . Note that every value of involves the computation of a new diffraction coefficient for each diffraction event, but otherwise does not require retraining the surrogate model : only the angular weights vary, while all other terms in Eq. 5 remain the same.
In Fig. 9, we show how the errors have a minimum around for , and around for . This shift in the minimum point seems to suggest that larger values of should be used for approximations at longer times, an observation that may be especially relevant for simulations over long time horizons. That being said, the error appears to vary only mildly around the locations of such minima: for instance, at , the relative error obtained for is , only slightly more than the minimum error, . (Note also the narrowness of the vertical scale of the plot.) This provides an empirical justification for choosing a single value of (around ) for all diffraction events, and for all times .
5.2 A tall room
We now move to a simplified sound propagation problem in a room. For simplicity, we consider a 2-dimensional problem, thus assuming an infinitely tall room, and modeling line sources in the -direction (e.g., an array of loudspeakers) as point sources.
The complicated domain is depicted in Fig. 10. It is composed of two communicating “rooms” with sound-hard walls, as well as of a third large room (above), which is modeled as infinitely large. In the main room, three sound-soft triangular obstacles are also present.
Setting once more , we are interested in modeling the propagation of an initial condition modeled as a Ricker wavelet centered at , see Fig. 10 (top left), over the time horizon , with . To this aim, we employ our proposed method from Section 2.
As in the previous example, we start by computing an approximation of the free-space solution for , see Eq. 4, with being the radius of the support of the initial condition . Again, we use P1-FE with leapfrog timestepping for this.
Since many reflective surfaces face each other, the domain is trapping. Accordingly, we expect the number of waves in the approximation to be rather large. In the interest of reducing the number of such terms, we employ the on-the-fly tolerance-based strategy described in Section 2.1, removing all wave terms whose magnitude is smaller than . After this, terms are left. Although this value of may seem large, the evaluation of the corresponding surrogate is rather quick, due to the explicit nature of each wave contribution (and to the fact that their supports are smaller than the whole ).
We show the resulting for the four times in Fig. 10. There, we can see why so many terms are necessary for the approximation of : we must model many reflection and diffraction effects. Since energy escapes the system only through the top “door”, the wave will persist for quite a long time. Accordingly, a larger will make a larger necessary.
In order to better inspect this effect, we show the trace of the solution at the arbitrarily chosen point in Fig. 11. We notice that oscillations persist for . We use this last plot also to validate our results. To this aim, we compare:
-
•
The surrogate obtained as described above, with .
-
•
The surrogate obtained with our strategy, but with . This leads to an increased number of rays .
-
•
The reference solution obtained by the P1-FE with leapfrog timestepping, as described at the beginning of Section 5. The mesh size must be chosen small enough to well resolve both the initial condition and the domain , as well as propagation of the solution itself. In our case, we found that a mesh with approximately elements leads to sufficient accuracy for a comparison with both above surrogate models . To satisfy the CFL condition on this mesh, we choose a time step .
We can observe that the two surrogates obtained with our approach give very similar results. Indeed, the cutoff tolerance tol affects the results only for sufficiently large , due to the accumulation of “small” waves that are excluded from the coarser surrogate but included in the finer one.
Moreover, taking the FE solution as reference, we see that most of the peaks of the surrogates are aligned with the FE ones (i.e., the “phase” of the wave is well approximated), but there are some noticeable discrepancies in their amplitudes. This is due to the fact that, in our approach, reflection is modeled exactly, whereas the magnitudes of the diffraction waves are only approximated. For this reason, we should not expect the amplitude error to get smaller if we reduce tol. The only effective way of improving the approximation would be using a more accurate diffraction model.
As a final result, we also report:
-
•
The “construction” time, i.e., the time required to compute the numerical solution. For , this means executing Algorithm 1. For , this means building the mesh, assembling the FE stiffness and (lumped) mass matrices, and carrying out the timestepping.
-
•
The “evaluation” time, i.e., the time required to evaluate the numerical solution ( or ) at a single -point.
They can be found in Table 2.
() | () | ||
---|---|---|---|
Construction | |||
Evaluation |
We can observe the increased construction and evaluation times that result from decreasing tol. Moreover, we see that, in this example, our proposed approach is more competitive in the construction phase, but less so in the evaluation phase. The larger evaluation time of our surrogate is ultimately due to the nonlinearity of the functions that appear in . In this context, it may be surprising to note that, in our implementation, the most expensive step in evaluating (taking about half of the online time) is determining whether an evaluation point is in the spatial supports or not. On the other hand, evaluating the FE solution at a space-time point is an extremely cheap operation, essentially corresponding to a vector dot product.
This being said, we can notice a clear advantage of our approach in this context. Once the approximation has been built, it can easily be evaluated at arbitrary locations in space and time, namely, not only at the final time . This is because all the terms defining the approximate expansion Eq. 5 (, , etc.) are cheap to store in memory. One cannot usually do the same with the FE solution. Indeed, once the time-stepping has been carried out, the evaluation of at arbitrary instants before (by space-time interpolation) is possible only if the whole sequence of solution at all time-steps has been stored, a practice that is commonly avoided due to the (often) unfeasible memory requirements.
5.2.1 A time-harmonic source
One of the advantages of our approach is that it allows changing the source terms of the problem in a seamless way. Notably, under minor technical constraints (e.g., the spatial support of the new source term should not be larger than the old one), this kind of change does not require training a new surrogate.
To showcase this, we approximate the wave propagating from a time-harmonic point source at with angular frequency . In our tests, we pick . To this aim, we define as the solution of the following (-dependent) problem:
(18) |
where denotes a narrow 2-dimensional Gaussian, centered at and with standard deviation .
As usual, we define as the (-dependent) solution of the free-space version of Eq. 18 in radial-temporal coordinates. To obtain an approximation for the wave generated by the time-harmonic source for an arbitrary , it suffices to plug the corresponding in each term of the surrogate from the previous section! We show the results of our approximation in Fig. 12, where we can observe a very good agreement between approximation and reference FE solution.
We display the approximation error in Fig. 13. There, we also display an a priori error bound based on Eq. 17, as well as the heuristic a posteriori error indicator , with being the approximation obtained with our approach under the assumption of geometrical optics. The a priori error bound is piecewise-constant since time-independent terms are added to the error whenever new diffraction waves reach .
For , no diffraction is present, the error indicators are both zero, since the only errors are due to discretization of the PDE333Discretization errors are invisible to the two indicators but can normally be estimated through other means, e.g., using standard results for FEM-based approximation of the wave equation.. For , the a priori estimator provides a reliable but pessimistic upper bound for the error. On the other hand, the a posteriori indicator manages to stay much closer to the actual error. Although not substantiated by theory, this error indicator seems quite effective at giving quantitative information on the error magnitude, without the need to compute a reference solution.
Note that using FE to approximate the wave requires carrying out a new simulation from scratch for every frequency to be studied. To this end, one needs to choose a mesh with -dependent resolution: the mesh size should be small enough for the well-known pollution effect (see, e.g., [27]) to be absent.
A constraint on the mesh resolution is present also in our proposed approach. However, it only applies to the problem defining the free-space solution , which is 1-dimensional in space. Hence, having to refine the mesh represents a much smaller obstacle to efficiency. In particular, as the frequency increases, the computation of becomes comparatively more and more efficient, with respect to the computation of .
6 Conclusions
We have presented a surrogate modeling strategy for approximating waves propagating through complex 2-dimensional domains with polygonal boundaries. Our method relies on the automatic identification of reflection and diffraction effects caused by the domain geometry. Each effect is modeled through a relatively simple nonlinear expression. Reflection-related components are built using geometrical optics, whereas diffraction-related components are modeled by a novel ad hoc modification of the geometrical theory of diffraction. We have also provided estimators for the quality of the approximation achieved by our method.
In our numerical tests, we have observed a good accuracy, with the main features of the target wave being well identified. Notably, our diffraction model has proven to be fairly effective. Still, it relies on the parameter , which, in some sense, determines the strength of surrogate diffraction effects. Although we have presented some heuristics for choosing , more refined strategies for selecting and, more generally, a thorough validation of our diffraction model remain open issues.
In terms of complexity, our method requires the solution of a simplified 1D-in-space problem, much simpler than the original 2D-in-space one. Another favorable aspect of our algorithm is its potential to be run on parallel architectures, since the computation of different rays can be carried out independently. This is not the case for standard timestepping-based discretizations, due to their intrinsically sequential nature.
6.1 Open questions and possible extensions
We now present some open questions concerning our method, which give cues for further research on the subject.
Additional physics
A first question is whether our algorithm may be applied to wave equations incorporating further physical effects, like dissipation. In such setting, information can propagate faster than the wave speed due to diffusion. In our opinion, it should still be possible to apply our method to some effect, as long as dissipation is kept low, so as to maintain at least a partial notion of causality.
3D
Concerning other extensions, we have already mentioned that our geometry-based approach to wave propagation generalizes from 2D to 3D. In 3D, reflection and diffraction happen at facets and edges, as opposed to edges and vertices, respectively [20]. Moving from polygons to polyhedra leads to an increase in the “optical entities” to be considered (e.g., triangles have 3 edges and 3 vertices, whereas tetrahedra have 4 facets and 6 edges), especially if complex 2D surfaces need to be meshed. This leads to an increase in the number of field components to be considered. If the number of successive reflections/diffractions is large, this effect is further amplified. For instance, if at most 3 (resp., 5) successive reflection or diffraction events happen involving tetrahedral scatterers, we may expect the cost of our method to increase by a factor of 5 (resp., 13) with respect to a similar simulation with triangular scatterers in 2D.
Moreover, some additional implementation issues arise in 3D due to the higher spatial dimension. For instance, when computing the spatial supports , our current strategy, cf. Remark 2.3, could be rather expensive if implemented naively, especially if the number of facets of is large. More sophisticated strategies to represent the sets , e.g., involving beam-tracing [6] as opposed to ray-tracing, may be required to handle 3 dimensions more effectively. That being said, besides the geometrical side, our method still only requires solving a 1D FEM problem in spherical symmetry, even though the physical dimension of the underlying problem has increased.
Coupling with other methods
Our method is not too well suited to approximate wave propagation in trapping media, since the number of terms in the approximation may increase dramatically. To alleviate this issue, one might consider splitting the domain into non-trapping and trapping parts. Our approach could be then applied to approximate wave propagation in non-trapping subdomains, while standard MOR approaches (based, e.g., on projection onto a basis of standing waves) may deliver an efficient approximation over the trapping region. As in other MOR methods based on domain decomposition [28, 29], the most complex step is the (dynamic) coupling between subdomains. This remains an open issue for our method. We also note that, more generally, developing such an approach could also enable applying our method within multi-physics problems, e.g., when modeling the interaction between propagating wave and structures.
Parametrized problems
Finally, we recall that, in many applications, the ultimate target is understanding how the wave solving Eq. 1 depends on underlying parameters , e.g., the forcing term , the shape of the domain , etc. In this setting, MOR tries to construct a surrogate model of the form , providing a good approximation of over a whole range of parameter values. Even though our technique was presented here in the non-parametric setting, we believe that it potentially allows incorporating the parameter dependence in a natural and efficient way. In our opinion, this might be achievable by leveraging the simple and interpretable structure of the field components (free-space solution, spatial support, and angular modulation). As a simple preliminary example, we showcased this in Section 5.2.1 for a parametric source term, with the parameter being the frequency. We are currently investigating how to extend our method to more complicated parametric problems.
Appendix A UTD diffraction coefficient
Consider the setup shown in Fig. 14: a wedge with exterior angle and vertex is hit by a wave coming from , located at an angular position . The angle is measured from one of the two sides of the wedge. For simplicity, we assume that each of the wedge’s sides is either sound-soft or sound-hard. For a discussion of the UTD coefficients in the case of impedance boundary conditions, we refer to [30].
Let be a point located at distance from , at an angle . The diffraction coefficient represents the magnitude (and sign) of the diffraction wave at , assuming that the incident wave, with origin at , is time-harmonic with unit amplitude and frequency . UTD [17] predicts a diffraction coefficient
with the sign depending on the type of boundary conditions (“” for Neumann, “” for Dirichlet). Given the wedge index , all contributions have the form
with
and
The integers are defined as
with square brackets denoting the rounding operator, which yields the integer that is closest to its argument.
The diffraction coefficient has unit jumps (with suitable signs) at the shadow boundaries, i.e., at the angular positions corresponding to boundaries of the spatial support of the source wave (in which case, we have an “incident shadow boundary”, ISB) or of one of its reflections (in which case, we have a “reflection shadow boundary”, RSB). The locations of the shadow boundaries can be identified geometrically. For instance, for convex wedges (), shadow boundaries are at (which is an ISB if , and an RSB otherwise) and at (which is an ISB if , and an RSB otherwise).
The diffraction coefficient for , , Neumann conditions, and are shown in Fig. 15 (left). Two jumps happen, at an RSB (at ) and at an ISB (at ). Similar results are obtained for Dirichlet conditions, cf. Fig. 15 (right).
We can observe that the value of determines how quickly decays to 0 around each shadow boundaries: larger values of yield a narrower “transition region”, which, loosely speaking, is the support of around each discontinuity. Indeed, asymptotically in , the width of each transition region is proportional to [20].
References
- [1] L. Borcea, V. Druskin, A. V. Mamonov, M. Zaslavsky, Robust nonlinear processing of active array data in inverse scattering via truncated reduced order models, Journal of Computational Physics 381 (2019) 1–26. doi:10.1016/j.jcp.2018.12.021.
- [2] L. Borcea, V. Druskin, A. V. Mamonov, M. Zaslavsky, J. Zimmerling, Reduced order model approach to inverse scattering, SIAM Journal on Imaging Sciences 13 (2) (2020) 685–723. doi:10.1137/19M1296355.
- [3] L. Borcea, G. Papanicolaou, C. Tsogka, J. Berryman, Imaging and time reversal in random media, Inverse Problems 18 (5) (2002). doi:10.1088/0266-5611/18/5/303.
- [4] P. H. Tournier, I. Aliferis, M. Bonazzoli, M. de Buhan, M. Darbas, V. Dolean, F. Hecht, P. Jolivet, I. El Kanfoud, C. Migliaccio, F. Nataf, C. Pichot, S. Semenov, Microwave tomographic imaging of cerebrovascular accidents by using high-performance computing, Parallel Computing 85 (2019) 88–97. doi:10.1016/j.parco.2019.02.004.
- [5] S. F. Potter, M. K. Cameron, R. Duraiswami, Numerical geometric acoustics: An eikonal-based approach for modeling sound propagation in 3D environments, Journal of Computational Physics 486 (2023) Article 112111. doi:https://doi.org/10.1016/j.jcp.2023.112111.
- [6] L. Savioja, U. P. Svensson, Overview of geometrical room acoustic modeling techniques, The Journal of the Acoustical Society of America 138 (2) (2015) 708–730. doi:10.1121/1.4926438.
- [7] G. Cohen, A. Hauck, M. Kaltenbacher, T. Otsuru, Different Types of Finite Elements, in: S. Marburg, B. Nolte (Eds.), Computational Acoustics of Noise Propagation in Fluids - Finite and Boundary Element Methods, Springer Berlin Heidelberg, Berlin, Heidelberg, 2008, pp. 57–88. doi:10.1007/978-3-540-77448-8_3.
- [8] E. Hairer, G. Wanner, C. Lubich, Geometric Numerical Integration, Vol. 31 of Springer Series in Computational Mathematics, Springer Berlin Heidelberg, Berlin, Heidelberg, 2002. doi:10.1007/978-3-662-05018-7.
- [9] P. Benner, M. Ohlberger, A. Cohen, K. Willcox, Model reduction and approximation: theory and algorithms, SIAM, 2017. doi:10.1137/1.9781611974829.
- [10] S. Glas, A. T. Patera, K. Urban, A reduced basis method for the wave equation, International Journal of Computational Fluid Dynamics 34 (2) (2020) 139–146. doi:10.1080/10618562.2019.1686486.
- [11] J. S. Hesthaven, C. Pagliantini, G. Rozza, Reduced basis methods for time-dependent problems, Acta Numerica 31 (2022) 265–345. doi:10.1017/S0962492922000058.
- [12] C. Greif, K. Urban, Decay of the Kolmogorov N-width for wave problems, Applied Mathematics Letters 96 (2019) 216–222. doi:10.1016/j.aml.2019.05.013.
- [13] N. Cagniart, Y. Maday, B. Stamm, Model Order Reduction for Problems with Large Convection Effects, in: Contributions to Partial Differential Equations and Applications, Vol. 47, Springer International Publishing, Cham, 2019, pp. 131–150. doi:10.1007/978-3-319-78325-3_10.
- [14] H. Kleikamp, M. Ohlberger, S. Rave, Nonlinear model order reduction using diffeomorphic transformations of a space-time domain, in: MATHMOD 2022 Discussion Contribution Volume, ARGESIM Publisher Vienna, 2022, pp. 57–58. doi:10.11128/arep.17.a17129.
- [15] J. Reiss, P. Schulze, J. Sesterhenn, V. Mehrmann, The shifted proper orthogonal decomposition: A mode decomposition for multiple transport phenomena, SIAM Journal on Scientific Computing 40 (3) (2018) A1322–A1344. doi:10.1137/17M1140571.
- [16] J. B. Keller, Geometrical theory of diffraction, J. Opt. Soc. Am. 52 (2) (1962) 116–130. doi:10.1364/JOSA.52.000116.
- [17] R. G. Kouyoumjian, P. H. Pathak, A uniform geometrical theory of diffraction for an edge in a perfectly conducting surface, Proceedings of the IEEE 62 (11) (1974) 1448–1461. doi:10.1109/PROC.1974.9651.
- [18] A. G. Mackie, The generalized radially symmetric wave equation, Proceedings of the Royal Society of London. Series A, Mathematical and Physical Sciences 236 (1205) (1956) 265–277.
- [19] H. Lee, B.-H. Lee, An efficient algorithm for the image model technique, Applied Acoustics 24 (2) (1988) 87–115. doi:10.1016/0003-682X(88)90033-3.
- [20] D. A. McNamara, C. W. I. Pistorius, J. A. G. Malherbe, Introduction to the uniform geometrical theory of diffraction, Artech House Norwood, MA, 1990.
- [21] M. A. Nethercote, R. C. Assier, I. D. Abrahams, Analytical methods for perfect wedge diffraction: A review, Wave Motion 93 (Mar. 2020). doi:10.1016/j.wavemoti.2019.102479.
- [22] P. T. Calamia, U. P. Svensson, Fast time-domain edge-diffraction calculations for interactive acoustic simulations, EURASIP Journal on Advances in Signal Processing 2007 (2006) 1–10.
- [23] U. P. Svensson, R. I. Fred, J. Vanderkooy, An analytic secondary source model of edge diffraction impulse responses, The Journal of the Acoustical Society of America 106 (5) (1999) 2331–2344. doi:10.1121/1.428071.
- [24] M. A. Biot, I. Tolstoy, Formulation of wave propagation in infinite media by normal coordinates with an application to diffraction, The Journal of the Acoustical Society of America 29 (3) (2005) 381–391. doi:10.1121/1.1908899.
-
[25]
R. R. Torres, U. P. Svensson, M. Kleiner,
Computation of edge diffraction for
more accurate room acoustics auralization, The Journal of the Acoustical
Society of America 109 (2) (2001) 600–610.
doi:10.1121/1.1340647.
URL https://doi.org/10.1121/1.1340647 - [26] M. S. Alnæs, J. Blechta, J. Hake, Others, The FEniCS Project version 1.5, Archive of Numerical Software 3 (100) (2015).
- [27] I. M. Babuška, S. A. Sauter, Is the pollution effect of the FEM avoidable for the Helmholtz equation considering high wave numbers?, SIAM Journal on Numerical Analysis 34 (6) (1997) 2392–2423. doi:10.1137/S0036142994269186.
- [28] A. de Castro, P. Kuberry, I. Tezaur, P. Bochev, A novel partitioned approach for reduced order model—finite element model (ROM-FEM) and ROM-ROM coupling, pp. 475–489. doi:10.1061/9780784484470.044.
-
[29]
T. Taddei, X. Xu, L. Zhang,
A
non-overlapping optimization-based domain decomposition approach to
component-based model reduction of incompressible flows, Journal of
Computational Physics 509 (2024) 113038.
doi:https://doi.org/10.1016/j.jcp.2024.113038.
URL https://www.sciencedirect.com/science/article/pii/S0021999124002870 - [30] R. Tiberio, G. Pelosi, G. Manara, A uniform GTD formulation for the diffraction by a wedge with impedance faces, IEEE Transactions on Antennas and Propagation 33 (8) (1985) 867–873. doi:10.1109/TAP.1985.1143687.