Hostname: page-component-76d6cb85b7-2r2wp Total loading time: 0 Render date: 2026-07-20T07:06:49.277Z Has data issue: false hasContentIssue false

Topological data analysis and diagnostics of compressible magnetohydrodynamic turbulence

Published online by Cambridge University Press:  07 August 2018

I. Makarenko*
Affiliation:
School of Mathematics, Statistics and Physics, Newcastle University, Newcastle upon TyneNE1 7RU, UK
P. Bushby
Affiliation:
School of Mathematics, Statistics and Physics, Newcastle University, Newcastle upon TyneNE1 7RU, UK
A. Fletcher
Affiliation:
School of Mathematics, Statistics and Physics, Newcastle University, Newcastle upon TyneNE1 7RU, UK
R. Henderson
Affiliation:
School of Mathematics, Statistics and Physics, Newcastle University, Newcastle upon TyneNE1 7RU, UK
N. Makarenko
Affiliation:
Central Astronomical Observatory, Russian Academy of Sciences, 65 Pulkovskoye Chaussee, Saint-Petersburg, 196140, Russia
A. Shukurov
Affiliation:
School of Mathematics, Statistics and Physics, Newcastle University, Newcastle upon TyneNE1 7RU, UK
*
Email address for correspondence: irina.makarenko@ncl.ac.uk
Rights & Permissions [Opens in a new window]

Abstract

The predictions of mean-field electrodynamics can now be probed using direct numerical simulations of random flows and magnetic fields. When modelling astrophysical magnetohydrodynamics, it is important to verify that such simulations are in agreement with observations. One of the main challenges in this area is to identify robust quantitative measures to compare structures found in simulations with those inferred from astrophysical observations. A similar challenge is to compare quantitatively results from different simulations. Topological data analysis offers a range of techniques, including the Betti numbers and persistence diagrams, that can be used to facilitate such a comparison. After describing these tools, we first apply them to synthetic random fields and demonstrate that, when the data are standardized in a straightforward manner, some topological measures are insensitive to either large-scale trends or the resolution of the data. Focusing upon one particular astrophysical example, we apply topological data analysis to H i observations of the turbulent interstellar medium (ISM) in the Milky Way and to recent magnetohydrodynamic simulations of the random, strongly compressible ISM. We stress that these topological techniques are generic and could be applied to any complex, multi-dimensional random field.

Information

Type
Research Article
Copyright
© Cambridge University Press 2018 
Figure 0

Figure 1. (a) The isocontours of the H i number density $n$ (in atom$~\text{cm}^{-3}$) from the Galactic All Sky Survey (Kalberla et al.2010) at $R=10~\text{kpc}$, $202.9^{\circ }\leqslant \unicode[STIX]{x1D719}\leqslant 208.6^{\circ }$, $|z|\leqslant 1.1~\text{kpc}$, with $(R,\unicode[STIX]{x1D719},z)$ the galactocentric cylindrical coordinates with the Sun at $(R,\unicode[STIX]{x1D719},z)=(8.5~\text{kpc},180^{\circ },0)$. The horizontal extent of the image is approximately $1~\text{kpc}$, its resolution is close to $17~\text{pc}$. (b) The isocontours of the gas number density $n$ (in atom$~\text{cm}^{-3}$) in a vertical plane, obtained from a three-dimensional magnetohydrodynamic simulation of Gent et al. (2013a,b) at a resolution of $4~\text{pc}$. White areas in both panels correspond to low density values, $n<3\times 10^{-3}~\text{cm}^{-3}$ on (a) and $5\times 10^{-4}~\text{cm}^{-3}$ on (b).

Figure 1

Figure 2. (ad) Sublevel set filtration of a function of one variable (e) and the resulting persistence diagram (f). The horizontal green line indicates the increasing threshold $h$; the values of the function $f(x)\leqslant h$ are shown in a solid line, while $f(x)>h$ in a dotted line. On each panel the sublevel set at a fixed $h$ is shown as the red intervals on the $x$ axis. The number of red intervals corresponds to a number of connected components, $\unicode[STIX]{x1D6FD}_{0}$, at this level.

Figure 2

Figure 3. (a) A Gaussian random function $y=f(x)$, with the minima marked as green points, and the maxima as red ones. (b) The persistence diagram obtained as the result of sublevel set filtration of this function. Every point corresponds to one persistent pair $(u_{i},v_{i})$, $i=1,\ldots ,8$. (c) One more way to illustrate the result of topological filtration of $f$ is to plot pairs $(u_{i},v_{i})$ as a sequence of barcodes, horizontal lines $u_{i}\leqslant h\leqslant v_{i}$, one for each component. The red vertical line in (c) corresponds to the threshold value $h=0$. This line intercepts five out of the eight barcodes, which means there are five components at this level: $\unicode[STIX]{x1D6FD}_{0}=5$. The total length $L_{T}$ of these barcodes is equal to 61. As will be demonstrated below, $L_{T}(h)$ is a useful statistic for comparison of random functions.

Figure 3

Figure 4. Topological filtration of a continuous, smooth, 2-D Gaussian scalar field, $f(x,y)$ (colour coded with the colour bar in (f)), which has a vanishing mean value, unit standard deviation, and an autocorrelation function $C(l)=\exp [-l^{2}/(2L^{2})]$, where $L\approx 15$. Sublevel sets, i.e. regions where $f(x,y)\leqslant h$, are shown for increasing values of $h$: (a)$h=-1.5$, (b) $h=-1.48$, (c) $h=0.2$, (d) $h=0.6$ and (e) $h=0.72$. The components (C) and holes (H) are labelled in (ae) as described in the text. (g,h) Show how the components merge and the holes split as the level $h$ changes. (f) Presents the full range of $f(x,y)$.

Figure 4

Figure 5. Signal standardization affects persistence diagrams. (a) A signal $f(x)$ of (3.2) (the solid blue line), and its shifted $f_{1}=f+10$ (dashed red) and scaled $f_{2}=3f$ versions (dash-dotted green). The persistence diagrams of (b) $f$ (circles) and $f_{1}$ (crosses), and (c) $f$ (circles) and $f_{2}$ (triangles). (d) The persistence diagrams of the signals $f$, $f_{1}$ and $f_{2}$ coincide when they are standardized.

Figure 5

Figure 6. Influence of a linear trend on persistence diagrams. (a) Gaussian $\unicode[STIX]{x1D6FF}$-correlated random fluctuations with zero mean and unit standard deviation. (b) A new signal $f_{2}=f_{0}+f_{1}$ (magenta), formed by combining the Gaussian fluctuations $f_{1}$ and a linear trend$f_{0}=x/2$ (dashed black line). (c) The persistence diagram for the functions $f_{1}$ and $f_{2}$ obtained without standardization. (d) The persistence diagram obtained after standardization of both signals, using (3.1). In the persistence diagrams, components arising solely from the fluctuations are shown as blue dots and those from the fluctuations plus trend are shown as magenta triangles.

Figure 6

Figure 7. Influence of a linear trend and standardization on the Betti numbers ($\unicode[STIX]{x1D6FD}_{0}$ in 1-D case), and the total barcode length $L_{T}$ at levels. (a) The number of components $\unicode[STIX]{x1D6FD}_{0}/d$ at each level $h$, calculated per unit length of the graph (here $d$ is the length along the $x$-axis). The result is shown for the Gaussian $\unicode[STIX]{x1D6FF}$-correlated noise $f_{1}$ (solid blue line) and for the function $f_{2}$ (in the dotted magenta line), that is the sum of a linear trend $f_{0}=x/2$ and the noise $f_{1}$. (b) The normalized Betti number $\unicode[STIX]{x1D6FD}_{0}/d$ after standardization of the functions $f_{1}$ and $f_{2}$, using (3.1). (c) The variation of $\unicode[STIX]{x1D6FD}_{0}/d$ with $h$ normalized so that the area under each curve is one and (d) the corresponding normalized total barcode length $L_{T}(h)$.

Figure 7

Figure 8. The influence of a trend on a persistence diagram. (a) Solid black line: the 1-D signal $f(x)$ of (3.2), as shown in figure 5(a), with added Gaussian $\unicode[STIX]{x1D6FF}$-correlated random noise with standard deviation $A=1$. Dash-dotted green line: the Gaussian random noise added with $A=2.5$. The persistence diagrams for the signals shown in (a): (b) $A=1$, (c) $A=2.5$. The red triangular markers on the persistence diagrams correspond to $f(x)$ in the absence of noise (i.e. $A=0$).

Figure 8

Figure 9. Original (a,c) and normalized (b,d) plots of $\unicode[STIX]{x1D6FD}_{0}/d$ and $L_{T}$ for function (3.2) with added noise of various standard deviations $A$.

Figure 9

Figure 10. (a) Gaussian smoothing of H i number density in the Milky Way from Kalberla et al. (2010) at $R=10~\text{kpc}$. (a) Represents a cross-section of the gas density distribution, $n(\unicode[STIX]{x1D719},z)$. Here the field is shown after standardization, so that negative $n$ values occur. The results of blurring this image by a Gaussian function with a kernel width $l=2$, 4 and 6 are shown in (b,c,d), respectively. We applied the Gaussian smoothing to the original (non-standardized) field, and then standardized the obtained 2-D matrix. The colour bars are identical in all panels, the gas density values are in $\unicode[STIX]{x1D70E}_{n}$ units, the number of contours on each map equals to 80.

Figure 10

Figure 11. Topological characteristics of the observed H i number density $n$ of figure 10 under Gaussian smoothing. The dependence of the Betti numbers per unit area, (a) $\unicode[STIX]{x1D6FD}_{0}$ and (b) $\unicode[STIX]{x1D6FD}_{1}$ versus the isocontour level $h$ (given in the units of $\unicode[STIX]{x1D70E}_{n}$, the standard deviation of $n$). The total length of barcodes (in the units of $\unicode[STIX]{x1D70E}_{n}$) is shown as a function of $h$ for (c) $\unicode[STIX]{x1D6FD}_{0}$ and (d) $\unicode[STIX]{x1D6FD}_{1}$. Solid blue lines are for the density field at the original resolution, the other lines represent fields smoothed using the Gaussian kernel (5.1) with $l=2$, 4 and 6.

Figure 11

Figure 12. As figure 11, but with all curves normalized to unit underlying area.

Figure 12

Figure 13. The H i number density $n\;(\text{atom}~\text{cm}^{-3})$ from the GASS survey (Kalberla et al.2010) in $5~\text{kpc}$-wide strips along the galactic mid-plane ($|z|\leqslant 2.5~\text{kpc}$) at $R=10~\text{kpc}$ (a) and $20~\text{kpc}$ (b). The vertical lines in (a) separate three regions where gas density apparently has distinct properties and which are analysed separately.

Figure 13

Figure 14. Results of topological analysis of the H i number density in four regions in the Milky Way (as specified in the legends) shown in figure 13 and described in the text. (a,b) Betti numbers per unit area, $\unicode[STIX]{x1D6FD}_{0}$ and $\unicode[STIX]{x1D6FD}_{1}$, respectively. (c,d) Total barcode lengths for $\unicode[STIX]{x1D6FD}_{0}$ $\unicode[STIX]{x1D6FD}_{1}$, respectively. All variables are presented as functions of the level height $h$ in the units of the standard deviation of the density variations $\unicode[STIX]{x1D70E}_{n}$. All curves are normalized to the unit underlying area.

Figure 14

Figure 15. As figure 14 but for the simulated interstellar gas. The error bars represent the standard deviation of the scatter of the corresponding variable between the twelve snapshots used for the analysis.