hammurabi X: Simulating Galactic Synchrotron Emission with Random Magnetic Fields
Jiaxin Wang (1), Tess R. Jaffe (2), Torsten A. En{\ss}lin (3), Piero, Ullio (1), Shamik Ghosh (4), Larissa Santos (5) ((1) SISSA, (2) UMD, (3) MPA,, (4) USTC, (5) Yangzhou U.)

TL;DR
The paper introduces an updated version of the hammurabi simulator for Galactic polarized emission, featuring modern C++ implementation, multi-threading, and new methods for simulating divergence-free Gaussian random magnetic fields, with applications to synchrotron foregrounds.
Contribution
It presents a fully renewed, multi-threaded version of the hammurabi simulator with new techniques for modeling divergence-free Gaussian magnetic fields in Galactic synchrotron emission.
Findings
Gaussian random magnetic fields can produce B/E polarization ratios below unity.
New methods enable efficient simulation of divergence-free magnetic fields on Galactic and local scales.
The updated simulator improves computational performance and modeling accuracy.
Abstract
We present version X of the hammurabi package, the HEALPix-based numeric simulator for Galactic polarized emission. Improving on its earlier design, we have fully renewed the framework with modern C++ standards and features. Multi-threading support has been built in to meet the growing computational workload in future research. For the first time, we present precision profiles of hammurabi line-of-sight integral kernel with multi-layer HEALPix shells. In addition to fundamental improvements, this report focuses on simulating polarized synchrotron emission with Gaussian random magnetic fields. Two fast methods are proposed for realizing divergence-free random magnetic fields either on the Galactic scale where a field alignment and strength modulation are imposed, or on a local scale where more physically motivated models like a parameterized magneto-hydrodynamic (MHD) turbulence can be…
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.
hammurabi X: Simulating Galactic Synchrotron Emission with Random Magnetic Fields
Scuola Internazionale Superiore di Studi Avanzati, Via Bonomea 265, 34136 Trieste, Italy
Department of Astronomy, Shanghai Jiao Tong University, Shanghai, 200240, China
Istituto Nazionale di Fisica Nucleare, Sezione di Trieste, Via Bonomea 265, 34136 Trieste, Italy
Department of Astronomy, University of Maryland, College Park, MD, 20742, USA
CRESST, NASA Goddard Space Flight Center, Greenbelt, MD 20771, USA
Max Planck Institute for Astrophysics, Karl-Schwarzschild-Str. 1, D-85741 Garching, Germany
Piero Ullio
Scuola Internazionale Superiore di Studi Avanzati, Via Bonomea 265, 34136 Trieste, Italy
Istituto Nazionale di Fisica Nucleare, Sezione di Trieste, Via Bonomea 265, 34136 Trieste, Italy
CAS Key Laboratory for Research in Galaxies and Cosmology, Department of Astronomy, University of Science and Technology of China, Hefei 230026, China
School of Astronomy and Space Sciences, University of Science and Technology of China, Hefei, 230026, China
Center for Gravitation and Cosmology, College of Physical Science and Technology, Yangzhou University, Yangzhou 225009, China
Abstract
We present version X of the hammurabi package, the HEALPix-based numeric simulator for Galactic polarized emission. Improving on its earlier design, we have fully renewed the framework with modern C++ standards and features. Multi-threading support has been built in to meet the growing computational workload in future research. For the first time, we present precision profiles of hammurabi line-of-sight integral kernel with multi-layer HEALPix shells. In addition to fundamental improvements, this report focuses on simulating polarized synchrotron emission with Gaussian random magnetic fields. Two fast methods are proposed for realizing divergence-free random magnetic fields either on the Galactic scale where a field alignment and strength modulation are imposed, or on a local scale where more physically motivated models like a parameterized magneto-hydrodynamic (MHD) turbulence can be applied. As an example application, we discuss the phenomenological implications of Gaussian random magnetic fields for high Galactic latitude synchrotron foregrounds. In this, we numerically find B/E polarization mode ratios lower than unity based on Gaussian realizations of either MHD turbulent spectra or in spatially aligned magnetic fields.
1 introduction
The Galactic synchrotron emission from the diffuse distribution of relativistic electrons and positrons in the magnetized interstellar medium (ISM)111Acronyms used in the text:
CR (cosmic ray),
CMBR (cosmic microwave background radiation),
FFT (fast Fourier transform),
GMF (Galactic magnetic field),
ISM (interstellar medium),
LoS (line-of-sight),
MHD (magneto-hydrodynamics),
TE (thermal electron) . is the dominant signal in the polarized sky observed at frequencies ranging from to , therefore, it is one of the best friends to scientists who study multi-phase ISM structure and cosmic ray (CR) transport properties. To those who study the cosmic microwave background radiation (CMBR), 21cm cosmology and the early Universe, however, it is one of their worst enemies. Despite the difference between their scientific purposes, both fields recognize the importance of physical modelling of the mechanisms and environments associated with polarized synchrotron emission, absorption and Faraday rotation, which in the end provide a realistic description of the foreground observables. The fundamental physical principles of the radiative transfer processes have been fully understood for around half a century (Rybicki & Lightman, 1979), but with the growing precision and range of observations we are challenged by various local structures and non-linear phenomena within the Galaxy. This is slowing down conceptual and theoretical advancements in related research fields since the observables are no longer analytically calculable in a high-resolution and non-perturbative regime. To overcome the challenge, hammurabi (Waelkens et al., 2009) was developed to help us in simulating complicated observables with 3D modelling of the physical components of the Galaxy.
Over the last decade, we have witnessed wide scientific applications of hammurabi for example, in estimating and removing Galactic synchrotron foreground contamination (Dolag et al., 2015; Switzer & Liu, 2014), in understanding magnetic fields of astrophysical objects varying from supernova remnants (West et al., 2017) to the Galaxy (Jaffe et al., 2013; Planck Collaboration Int. XLII 2016 et al., 2016) and even to the local Universe (Hutschenreuter et al., 2018). Despite the successful applications of hammurabi , we have noticed that after years of modifications and the accumulation of modules and functions with outdated programming standards, the package might have been compromised by numeric issues and the lack of a properly maintained testing suite. Given the trend towards high-resolution and computation-dominated studies, it is the right time to provide a precision guaranteed high-performance pipeline for simulating polarized synchrotron emission, absorption and Faraday rotation. Thus a thorough upgrading project has been performed, where we mainly focus on redesigning the code structure and work-flow, calibrating the numeric algorithms and methods, improving the user experience and setting up new conventions for future maintenance and development.
In addition to the technical improvements, we also keep up with recent progress in physical modelling of Galactic foreground emission with the turbulent Galactic magnetic field (GMF), e.g., phenomenological research carried out by Beck et al. (2016), analytic estimations calculated by Cho & Lazarian (2002); Caldwell et al. (2016); Kandel et al. (2017, 2018), and heavy simulations analyzed by Akahori et al. (2013); Kritsuk et al. (2018); Brandenburg et al. (2019). For future work about inferring the GMF configuration from observational data (e.g., Galactic synchrotron and dust emission, dispersion measure and Faraday rotation measure) we need physically motivated and numerically fast magnetic field simulators, instead of setting up trivial random fields or directly adopting expensive magneto-hydrodynamics (MHD) simulators. The balance has to be made between the computational cost and the modelling complexity. Low computational cost is required by any analysis that infers model parameters directly from data in a Bayesian fashion, where GMF models have to be evaluated repeatedly while the Bayesian inference algorithms sample through the often very high dimensional parameter space. Full MHD simulations are currently prohibitively expensive to be used within such algorithms, there, fast emulators for the main statistical properties of typical MHD simulations are needed instead.
In this report, we propose two fast (in contrast to MHD simulation) random GMF generators which satisfy certain criteria. A project for studying the GMF configuration with numeric simulation has been proposed (Boulanger et al., 2018) by using a computational inference engine. Though the main motivation for hammurabi X is the construction of a Bayesian magnetic field inference engine, we herein present an analysis of the angular power spectrum focusing on the synchrotron B/E ratio as a possible guide for future studies.
This report is arranged as follows. In Section 2 we present a brief technical description of the hammurabi X package with precision and performance profiles. Section 3 presents mathematical details of the random GMF generators and the properties of their products. In Section 4, we illustrate and discuss the influence of random GMF models on simulated synchrotron foreground angular power spectra. A summary is provided as Section 5 with prospects for future work.
Further more, in Appendix A we present the detailed numerical implementation of calculating the synchrotron emissivity and Faraday rotation. In Appendix B we provide our method for vector field FFT in generating magnetic fields and its precision profile. The precision related to pseudo- estimation is addressed in Appendix C, and finally in Appendix D we briefly discuss about the divergence cleaning in generating random magnetic fields.
2 hammurabi X
2.1 overview
The hammurabi code (Waelkens et al., 2009) is an astrophysical simulator based on 3D models of the components of the magnetised ISM such as magnetic fields, thermal electrons, relativistic electrons, and dust grains. It performs an efficient line-of-sight (LoS) integral through the simulated Galaxy model using a HEALPix-based222https://healpix.jpl.nasa.gov (Górski et al., 2005) nested grid to produce observables such as Faraday rotation measure and diffuse synchrotron and thermal dust emission333This report focuses on the Galactic synchrotron emission, while the report for simulating thermal dust emission with hammurabi X is under preparation. in full Stokes , and , while taking into account beam and depth depolarization as well as Faraday effects. The updated version, hammurabi X (Wang et al., 2019)444hammurabi X is available in the repository https://bitbucket.org/hammurabicode/hamx, with detailed documentation. Recently, hammurabi X has already been used to generate extra-Galactic Faraday rotation maps from primordial magnetic fields in Hutschenreuter et al. (2018)., has been developed to achieve higher computing performance and precision. Specific efforts have been devoted to the parallel computing of LoS integral and vector filed FFT.
hammurabi X currently uses the HEALPix library (Górski et al., 2005) for observable production, where the LoS integral accumulates through several layers of spherical shells with adaptable HEALPix resolutions. We provide two modes of integral shell arrangements. In the auto-shell mode, given as the maximum simulation radius, the shell out of total shells covers the radial distance from to , except for the first shell which starts at the observer. The shell is by default set up with the HEALPix resolution controlling parameter ,555 means the number of full sky pixels is . where represents the lowest simulation resolution at the first shell. Alternatively in the manual-shell mode, shells are defined explicitly by a series of dividing radii and HEALPix ’s. The radial resolution along the LoS integral is uniformly set by the minimal radial distance for each shell. The auto-shell mode follows the idea that the integral domain is discretized with elemental bins of the same volume, while the manual-shell mode allows users to refine specific regions to meet special realization requirements.
The LoS integral is carried out hierarchically: at the top level the integral is divided into multiple shells with given spherical resolution settings, while at the bottom level inside each shell (where the spherical resolution is fixed) the radial integral is carried out with the midpoint rule for each radial bin. Accumulation of observable information from the inner to outer shells is applied at the top level. We emphasize that in hammurabi X , the simulation spherical resolution for each shell can be independent of that in the outputs, which means that we can simulate with an arbitrary number of shells and assign each shell with a unique value. During each step of the shell accumulating process, we interpolate (with the linear interpolation provided by HEALPix library) the current result into the output resolution. Consequently, such interpolation between different angular resolutions will inevitably create a certain level of precision loss.
Previously in hammurabi, the generation of the anisotropic component of the random field as well as the modulation of the field strength following various parametric forms lead to artificial magnetic field divergence. Now we propose two improved solutions for simulating the random magnetic field. On Galactic scales, a triple Fourier transform scheme is proposed to restore the divergence-free condition via a cleaning process. This imposes the divergence-free property in the random magnetic field (unlike in Planck Collaboration Int. XLII 2016 et al. 2016), which will be discussed in detail in Section 3.3 with its observational implication in Section 4. Alternatively, in a given local region666The local region means any small-scale spatial domain where the mean magnetic field can be treated or approximated as uniform distribution. This implies that the local generator cannot be applied to realize large-scale random magnetic fields, which are typically handled by the global generator. In Section 4 we will present and analyze local realizations at the solar neighbourhood as an example., a vector-field decomposition scheme is capable of simulating more detailed random field power-spectra.
Fast Fourier transforms (FFTs) are necessary for translating the power spectra of random fields into discrete magnetic field realizations on 3D spatial grids. Random field generators in hammurabi X currently use the FFTW library777http://www.fftw.org. The detailed implementation will be discussed in Section 3. In cases where the field is input from an external or internal discrete grid, e.g., a random GMF, the LoS integral at a given position does linear interpolation (in each phase-space dimension) from nearby grid points. The interpolation algorithm has been calibrated, so the high-resolution outputs are no longer contaminated by the numerical flaws in earlier versions of hammurabi. As illustrated in Figure 1, the interpolation process in the earlier version of hammurabi did not properly calculate the volume of elemental discretization, which resulted, for example, in negative values of the simulated dispersion measure and incorrect small scale features in comparison to the corrected method in hammurabi X. In this new version, unit tests for linear interpolation can be found in the public repository.
Generally speaking, the precision of the linear interpolation (and the corresponding discretization) can in principle be characterized by the goodness of the approximation. This is explicitly affected by the discretization resolution and the arrangement of the sampling/supporting points, and also by the smoothness (as measured by the inverse of the second order derivative) of the approximation target. In hammurabi X the interpolation affects the precision in realizing the power spectrum of the random magnetic field generation. This can be improved by increasing the sampling resolution. Furthermore, the linear interpolation does not preserve the divergence, but the precision can be improved either by increasing sampling resolution888If we estimate the divergence by the finite difference in the spatial domain, the precision exponentially improves as a function of the number of sample points in each direction. or by matching the elemental discretization volume in the LoS integral with that in the field generation (as discussed by Waelkens et al. (2009)).
2.2 precision and performance profiles
Profiling999The hammurabi X wiki page https://bitbucket.org/hammurabicode/hamx/wiki/Home presents detailed verification, performance and precision profiles, implementation methods and online documentation. the numerical precision in producing observables is critical in guiding practical applications. A standard hammurabi Xsimulation routine consists of two major building blocks. The first part is the numerical implementation of specific physical processes like synchrotron emission and Faraday rotation, and the second part is the LoS integral that is universal to all observables. In the following integrated precision check, the correctness of both will be verified and profiled together.
A given magnetic field vector can be decomposed into directions parallel (horizontal) and perpendicular (vertical/poloidal) to the Galactic disk, or to be specific, the plane (with pointing towards Galactic longitude ) in the hammurabi X convention, i.e., and at a given Galactic longitude-latitude position . The LoS direction from the observer to the target field position reads
[TABLE]
where is conventionally pointing from the observer to the Galactic centre. In the same observer-centric Cartesian frame we can explicitly write down two field components as
[TABLE]
where represents the projected direction of in the plane. Then it is straight forward to calculate two key quantities for the calculation of synchrotron emissivity and Faraday rotation respectively
[TABLE]
It is obvious that Faraday rotation is more sensitive to at low Galactic latitudes, and to at high latitudes. On the contrary, synchrotron emissivity, which is proportional to some power of , is more sensitive to at low Galactic latitudes and to at high latitudes.
Precision checks require a baseline model for each field, from which analytic descriptions of the observables can be explicitly derived. Here we assume spatially homogeneous distributions for the cosmic-ray electrons (CREs), thermal electrons (TEs) and the GMF within a given radial distance to observer. The spectral index of the CRE energy distribution is assumed to be a constant, and consequently CRE density is described by
[TABLE]
where represents CRE Lorentz factor, represents the constant spectral index of CRE. With the assumed homogeneity in all fields, we can calculate intrinsic synchrotron total intensity and polarization Stokes parameter and (in the IAU convention101010Detailed description for IAU and CMB polarization conventions can be found at https://lambda.gsfc.nasa.gov/product/about/pol_convention.cfm.) before applying the Faraday rotation (Rybicki & Lightman, 1979)
[TABLE]
where is the electron charge, and is the electron mass, is the spherical LoS integral depth, and is the observational frequency. The intrinsic polarization angle can be derived from
[TABLE]
as illustrated in Figure 2. With the same modelling, Faraday depth can be described by
[TABLE]
where represents constant homogeneous TE density assumed within spherical radius . In the end, the observed synchrotron polarization Stokes parameters and reflect the Faraday rotation as
[TABLE]
which indicates that the polarized intensity receive a correction factor known as the Faraday depolarization. The formulae above analytically derive calculable results for reference in verifying the numerical outputs. In real applications, the magnetic field and CRE spectral index are not constant, and the methods used by hammurabi X for calculating synchrotron emissivity and Faraday rotation can be more generic, as presented in Appendix A.
Figure 3 presents the absolute and relative numeric error distribution of synchrotron total intensity from a single LoS integral shell. For an observable , the absolute error is defined as the difference between simulated output and the analytic reference as , while the relative error is defined by . The Faraday depth calculator shares a similar error distribution as the calculator of synchrotron total intensity. Meanwhile, Figure 4 presents the absolute and relative numeric error distributions of synchrotron Stokes also from a single LoS integral shell, which serves as an example for illustrating the numeric precision in calculating tensor fields. With constant field models in testing, the numeric errors are mainly induced by the integration and interpolation methods and therefore independent of the LoS resolution. Even with simple field settings, we can observe a few percent relative error appearing in Figure 4. Considering the future usage of hammurabi X in inferring Galactic component structures with astrophysical measurements, if the magnitude of such numerical errors are larger than the observational uncertainties, a Bayesian analysis with hammurabi X will consequently suffer from higher uncertainties and bias in parameter estimation.
In terms of the multi-shell arrangement in real application, the output precision is affected by the spherical surface interpolation provided by the HEALPix library. The motivation of allowing different resolution settings along with the divided LoS integral shells is to save computing resources as mentioned in Planck Collaboration Int. XLII 2016 et al. (2016). It is worth noticing that in the simulation, the pixel values are calculated along their central spherical coordinates. This is different from the actual astrophysical measurements where each pixel value is estimated based on many observational hits. And thus for quickly comparing low resolution simulation results with high-resolution data, we recommend interpolating data on the sky, concerning simulations’ sample directions, instead of downgrading data by averaging over high-resolution pixels. In this way, we avoid comparing exactly predicted values of simulation to region-averaged values of measurements. Alternatively, a very stringent simulation should be designed to mimic the true observation beams, which is computational heavy without hammurabi’s method. But even with our method, no simulation can capture reality perfectly, and the user must always be careful to test that the simulation resolution is sufficient for probing the observational property in question.
The testing cases displayed above are prepared by assuming constant magnetic field and thermal electron field distributions. The numerical errors would inevitably grow larger when the input Galactic components have small scale features near or below the discretization resolution. This issue can be handled efficiently in the future by an adaptively refined mesh/pixelization.
The computationally heavy processes in hammurabi X are the LoS integration for HEALPix map pixels, the random field generation with FFTs, and the linear interpolation for fields prepared in grids (e.g., internal random fields and other external fields). Massive observable production, HEALPix map distribution and recycling of physical fields require MPI111111Message Passing Interface (MPI) is a standardized and portable message-passing standard designed by a group of researchers from academia and industry to function on a wide variety of parallel computing architectures. parallelization and therefore are beyond our scope in this report. In this work, multi-threading is always essential at the bottom level of parallelism. Figure 5 presents the strong scaling121212Strong scaling is defined as how the solution time varies with the number of processors for a fixed total problem size. in observable production with various GMF and TE field combinations. The strong scaling with either computationally heavy (with random field generation) or light (without random field generation) pipelines follows the Amdahl law (Amdahl, 1967) with around serial remnants. Note that the speedup properties are not very sensitive to the resolution setting in various simulation routines, since the workload of pure numerical operations is proportional to the discretization resolution.
3 Gaussian random GMF
3.1 general discussion
Realization of turbulent magnetic field is a major module in hammurabi X, since the correctness of most simulations relies on physically motivated and accurate description of the turbulent fields in the multi-phase ISM. In this section we present two Gaussian random GMF generators that are by definition divergence-free and capable of realizing field alignment and/or strength modulation on Galactic scales or an anisotropic131313In this work, spatially anisotropic random GMF means it is locally aligned either parallel or perpendicular to a preferred direction (e.g., by alignment parameter in the global random GMF generator), while spectral anisotropy means the anisotropy in the frequency domain (usually due to an anisotropic power spectrum, e.g., the MHD turbulent magnetic field). We emphasize that in a local MHD turbulent magnetic field realization, the spectral anisotropy results in the spatially anisotropic distribution. power spectrum on small scales.
There are several criteria that a random GMF generator should satisfy. That it be divergence-free (or solenoidal) is always the prime feature of any magnetic field. Absolute zero divergence is hard to define under discretisation, but in principle either a vector-field decomposition or a Gram-Schmidt process in the frequency domain is capable of cleaning field divergence. In realistic cases when a large-scale spatial domain is expected to be filled with random magnetic fields, the field strength and alignment need to be correlated with the large-scale structures in the Galaxy. This requirement complicates the generating process, because the divergence-free property should also be satisfied simultaneously. It is straightforward to generate a divergence-free Gaussian random field, and equally simple to then re-scale or stretch it as done in Jaffe et al. (2010). But the re-profiling process destroys the divergence-free property if it is applied naively.
A triple Fourier transform scheme is thus proposed mainly to reconcile these two requirements. At Galactic scales, the new scheme allows modification of the Gaussian random realization by a given inhomogeneous spatial profile for the field strength. Note that aligning the magnetic field to a given direction is easy to implement in the spatial domain, but locally varying anisotropy in the energy power spectra is not feasible by a single FFT. In studies of Galactic emission from MHD plasma, the dependency of local structure on a varying direction profile breaks the symmetry required for using the FFT. To perform more detailed modelling of the turbulent GMF power spectrum, we provide a local generator (‘local’ in the sense that the mean field can be approximated in uniform distribution) with explicit or implicit vector decomposition.
3.2 power spectrum
Consider a magnetic field distribution and its counterpart in the frequency domain, where and represent the regular and turbulent fields respectively. The simplest turbulent power spectrum is represented by the trace of the isotropic magnetic field spectrum tensor in scalar form, 141414 means an ensemble average over all field realizations.. This kind of spectrum is widely used as a first approach to the turbulent field realization where the spectral shape is important. In general we could parameterize the basic scalar spectrum as
[TABLE]
where represents the Heaviside step function. The last term in equation (3.2) represents the forward magnetic cascading of MHD turbulence from the injection scale to small scales (), while the first two terms describe the inverse cascading (Pouquet et al., 1976) in MHD turbulence from to scale which corresponds to the physical size of the MHD system. According to the simulation results from Brandenburg et al. (2019), we set and by default in this work if not specified. Note that although not explicitly mentioned here, the Nyquist frequency cutoff requires an extra Heaviside factor in equation (3.2).
In terms of more physical parameterization, we are interested in realizing theoretical descriptions of turbulence in the compressible plasma recently discussed by Cho & Lazarian (2002), Caldwell et al. (2016) and Kandel et al. (2017). In a compressible plasma, turbulence can be decomposed into Alfvén, fast and slow modes. Two critical plasma status parameters are the ratio and the Alfvén Mach number . The plasma is the ratio of gas pressure to magnetic pressure, which represents compressibility of the plasma, with indicating the in-compressible regime. The Alfvén Mach number is the ratio of the injection velocity to the Alfvén velocity, with representing the super-Alfvénic regime while means sub-Alfvénic turbulence. The general form of the compressible MHD magnetic field spectrum tensor trace reads
[TABLE]
where denotes one of the three MHD modes as described in detail in Section 4.1. In hammurabi X, compressible MHD is only realized by the local generator, thus is adopted with taken as the regular field near the observer. A detailed application example of and is presented in Section 4. Some additional information can be found in Appendix B for readers who are interested in the technical shortcuts in random field generation and the sampling precision.
3.3 global random GMF generator
One major task of hammurabi X is to generate a random GMF that can cover a specific scale in the spatial domain. However, an inhomogeneous correlation structure is not diagonal in the frequency domain. In this case, we try to impose an energy density and alignment profile in the spatial domain after the random realization is generated in the frequency domain with an isotropic spectrum. Then the field divergence can be cleaned back in the frequency domain with the Gram-Schmidt process. The whole procedure of this scheme requires two backward and one forward FFTs.
After a Gaussian random magnetic field is realized in the frequency domain, each grid point holds a vector drawn from an isotropic field dispersion. The key to the triple transform is the large-scale alignment and energy density modulation process. The alignment direction at different Galactic positions should be pre-defined like the energy density profile. We introduce the alignment parameter for imposing the alignment profile by
[TABLE]
means no preferred alignment direction, while () indicates extremely perpendicular (parallel) alignment with respect to . (Previously, the alignment operation in hammurabi was carried out by regulating only (Jaffe et al., 2010), which is phenomenological equivalent to our approach presented here.) Note that and can either be defined as a global constant or as a function of other physical quantities such as the regular magnetic field and the Galactic ISM structure (detailed description can be found in the hammurabi X wiki page).
For regulating the field energy density, a simple example with exponential scaling profile (which can be customized in future studies) is proposed as
[TABLE]
where is the coordinate in the Galactic cylindrical frame, and represents the solar position in the Galactic cylindrical frame. The energy density modulation acts on the vector field amplitude through
[TABLE]
The above operations of reorienting, stretching and squeezing magnetic field vectors in the spatial domain do not promise a divergence-free result. To clean the divergence, we transform the re-profiled field forward into the frequency domain and apply the Gram-Schmidt process
[TABLE]
where indicates the frequency-domain complex vector. The coefficient is for preserving the spectral power statistically. The second backward Fourier transform is then carried out to provide the final random GMF vector distribution in the spatial domain.
Note that separating the divergence cleaning process from spatial re-profiling comes with a cost. Strong alignment with or are not realizable because the Gram-Schmidt process reestablishes some extra spatial isotropy according to equation (23). Figure 6 presents typical results of the global random generator in the form of magnetic field probability density distributions, where we assume a Kolmogorov power spectrum. The distributions of and are expected to be identical with the imposed alignment direction being . Note that the global generator is designed for realizing the inhomogeneity and anisotropy in both spatial and frequency domains, which we then have to process with divergence cleaning to provide conceptually acceptable realizations.
3.4 local random GMF generator
The local generator is proposed for realizing random GMFs in small scale regions, like the solar neighbourhood, where the regular field can be approximated as homogeneous with a uniform direction, or more precisely speaking, where the random magnetic field 2-point correlation tensor can be approximated to be independent of the spatial position. With this assumption, random fields can be realized with a single FFT. Here we describe the vector decomposition method for realizing a Gaussian random magnetic field with a generic anisotropic power spectrum tensor , where represents extra parameters in addition to the wave-vector. By assuming Gaussianity the power spectrum tensor reads
[TABLE]
where represents the complex magnetic field vectors in the frequency domain. Depending on the specific form of the given power spectrum tensor, the vector field decomposition can be either explicit or implicit.
The implicit vector decomposition sets up two modes (vector bases) for a complex Fourier vector , which means
[TABLE]
where the two orthogonal basis vectors bind with the complex scalar respectively. The vectors form a Cartesian frame, and to ensure the divergence-free property of the resulting fields we choose . During the Fourier transform of into the spatial domain we have to consider an orthogonal base aligned with the Cartesian grid of , and here we adopt one convenient base representation as
[TABLE]
where . Then we can proceed by projecting the complex field amplitude into this spatial frame
[TABLE]
where represents the spatial Cartesian coordinate. Implicit decomposition is irrelevant to the choice of the base and useful in the case where only the spectrum trace (over the indices) is given. The amplitude of can be drawn from Gaussian distributions with zero mean and variances which satisfy
[TABLE]
with represents the frequency domain discretization resolution. equation (31) indicates that the field amplitudes should have a joint power spectrum equal to the trace of the total power spectrum.
The explicit decomposition should be used when the power spectrum tensor is available along with the explicitly defined base , where
[TABLE]
A practical example is realizing Alfvén, fast and slow modes of a MHD turbulent magnetic field in a compressible plasma. Given a local regular GMF field , an Alfvén wave propagates along with magnetic turbulence in direction while slow and fast waves generate magnetic turbulence in direction . A detailed parameterization of compressible MHD turbulent power spectrum will be introduced in Section 4 following the corresponding references therein. Note that when the wave-vector is aligned with , the amplitudes of the Alfvén and slow modes vanish and the fast mode realization requires an implicit decomposition as the base is undefined.
Figure 7 presents typical examples of the distribution of the random GMF from the local generator. In comparison to the magnetic field distribution from the global generator where the spatial anisotropy is defined by the orientation alignment, the local generator is capable of realizing more subtle field properties, e.g., the spectral anisotropic MHD wave types described in Section 4. At the phenomenological level, the global generator can mimic the random magnetic field orientation alignment of the local realizations as illustrated by Figure 6 and Figure 7, but the spectral anisotropy is uniquely realizable by the local generator.
4 application example
To demonstrate the usefulness of hammurabi X we investigate the properties of simulated synchrotron emission at high Galactic latitudes according to different random magnetic field configurations. By focusing on the high latitude sky we concentrate on the properties of physical fields near the solar neighbourhood where both global and local random generators can be applied.
Alves et al. (2016) reported a synchrotron B/E ratio151515The ratio between the B-mode and the E-mode of synchrotron angular power spectrum, i.e., . around at angular modes (similar result has also been reported at high Galactic latitudes by Krachmalnicoff et al. (2018)), which a successful modelling of the GMF should be able to explain. Besides, a low polarization fraction at high Galactic latitudes is observed (Planck Collaboration 2015 results. XXV et al., 2015). According to recent theoretical work by Kandel et al. (2018), it may be possible to achieve a synchrotron B/E ratio lower than at high Galactic latitudes with compressible MHD turbulence, especially with slow and/or Alfvén modes at low Mach number . An analytic calculation of the angular power spectrum observed in polarized synchrotron emission is not a trivial task. As presented in theoretical estimations carried out by Caldwell et al. (2016), Kandel et al. (2017) and Kandel et al. (2018), it is impossible to avoid a certain level of simplification, e.g., the flat sky assumption, the Limber approximation, and the limitation of the perturbative regime. Now with the help of hammurabi X we can approach this topic numerically without being confined by the limits in analytic work.
To avoid distractions from other Galactic components or local structure models, in the following analyses, we assume a uniform distribution for the regular GMF parallel to the Galactic disk and a homogeneous CR electron density with a fixed spectral index. No spatial modulation of the field strength is performed, but we use the ability to model the field orientation alignment described in Section 3.3. The detailed modelling of MHD turbulence is briefly presented in the following.
4.1 parameterized MHD turbulence
A realistic formulation of the local turbulent GMF is essential in this work, where simple random field generators usually cannot take into account the anisotropy imprinted on the wave-vector phases of the power spectrum. The local generator we have designed in hammurabi X is capable of carrying out a theoretical parameterization of MHD turbulent modes which have been discussed by Cho & Lazarian (2002); Caldwell et al. (2016); Kandel et al. (2017, 2018). As described in these references, the turbulent field power spectra for Alfvén, fast and slow modes can be formulated as
[TABLE]
where representing Alfvén, fast and slow modes respectively161616In this work the subscript represents Alfvén, represents fast and represents slow.. The two critical MHD parameters are the Alfvén Mach number and the plasma which is the ratio of gas pressure to magnetic pressure. In the sub-Alfvénic () low- () regime, the spectral indices in equation (4.1) can be approximated as , and (Cho & Lazarian, 2002). The Alfvén speed which should appear in is absorbed by the normalization factor for simplicity.
4.2 high latitude synchrotron emission
With the improved precision in hammurabi X, we present high-resolution Galactic synchrotron emission simulations with analytic models as described above. Presented in Figure 8 are the examples of synchrotron polarization at high Galactic latitudes predicted by a uniform regular GMF parallel to the Galactic disk and a random component from the global generator with a Kolmogorov power spectrum. Maps of synchrotron polarization from the same regular GMF but the local generator using a compressible MHD model are presented in Figure 9. Since we are presenting only illustrative models, the absolute strength of regular and random GMF is not essential here.
The most prominent feature of the high latitude synchrotron polarization is the quadrupolar structure that results from the GMF orientation at the solar neighbourhood. As the examples displayed in Figure 8, the quadrupole direction is largely determined by the regular field, but on top of which we can observe a flip in the polarization between the regimes when versus . When the random GMF has no preferred alignment, i.e., the case, the quadrupole pattern is undermined by the isotropic random field contribution. This is visually clear because the random field strength dominates. In Figure 9 the quadruple pattern is well preserved with MHD turbulence injection scale , and also a flip in the polarization can be observed with the pure Alfvén mode when the random field dominates. When the spatial distribution or random GMF is close to spatially isotropic171717The local generator has no field alignment parameter like that can ensure an absolutely spatially isotropic distribution with respect to . with (and Alfvén Mach number , plasma parameter ) as displayed by the top panel in Figure 7, we observe a similar trend of weakening the quadrupole pattern as demonstrated by Figure 9.
The synchrotron polarization fraction (or the degree of linear polarization) is mainly determined by the CRE spectral shape when a uniformly distributed regular GMF dominates. Assuming a constant CRE spectral index , the synchrotron polarization fraction is much higher than that observed from Planck data (Planck Collaboration Int. XLII 2016 et al., 2016). Figures 10 and 11 demonstrate that the synchrotron polarization fraction can be suppressed by a Gaussian random field as long as the random field is not strongly anisotropic in the spatial domain. The suppression in polarization fraction grows with the increasing of random field strength but depends on the specific field modelling. Recall that the addition of a random component to the magnetic field direction functions as a random walk in the polarization plane, which means that even for a purely turbulent field, the polarized intensity continues to increase with the number of turbulent cells added along the LoS. In principle, the increase goes as the square-root of the number of cells, while the total intensity increases linearly, so the fraction should decrease accordingly. In practice, the precise trend is complicated by the effect of the observational beam and the locally varying anisotropy. The shape of the polarization fraction for the model in Figure 10, for example, is due to the anisotropic random field cancelling with the regular field before beginning to dominate. An inhomogeneous distribution (by field strength modulation) of the random field can change the efficiency of suppression differently depending on the field alignment, but the common features described above are preserved.
The above analyses imply that interpreting the synchrotron polarization toward the poles as due to the local field direction neglects the possible effects of anisotropic turbulence, which can mimic or flip the morphology. Though the physical process is different, the geometry of the field and its effect on the observables is the same for polarized dust emission. This work illustrates the opportunity for retrieving useful information of local magnetic turbulence structure with high latitude Galactic polarized emission, and also shows the challenge from the degeneracy between random and regular magnetic field orientations when using emission data alone. It suggests that we need to be careful about realizing the local GMF structure to avoid misleading conclusions. For example, it has been proposed recently by Alves et al. (2018) that according to observations, the regular magnetic field structure may play a dominant role in Galactic dust emission near the solar neighbourhood. We also emphasize that the Galactic synchrotron emission is also affected by the warm ISM in the Galactic thick disk and even the halo. The random field generators in hammurabi X can be used to bridge the gap between simple large-scale field models and computationally intensive MHD simulations, and push toward more realistic analysis and modelling than previous methods.
4.3 angular power spectrum
The large angular scale Galactic synchrotron polarization pattern driven mainly by the GMF orientation at the solar neighbourhood is quite evident as illustrated in Figures 8 and 9. However, the small angular structures can be analyzed with the angular power spectrum, which can be decomposed by rotation-invariant components, i.e., the T, E and B modes (Hu & White, 1997a). With the two random field generators proposed in this work, we intend to figure out which properties of the random GMF are imprinted on the synchrotron B/E ratio. Specifically, we are interested in verifying whether MHD turbulence modes are capable of producing in both the perturbative and the non-perturbative regimes. Since we are focusing on high latitude polarization, pixels at Galactic latitude within are masked out. We also set a lower limit to the radius in the LoS integral according to the random field grid resolution and the spherical mode range. Technical details of the precision checks for the pseudo- estimation is discussed in Appendix C.
We present in Figure 12 the B/E ratio distribution (by collecting results from an ensemble of realizations with each given parameter set) for varying random field strengths and alignments of the global random GMF. Figure 12 implies that to reproduce we either need random GMF in the non-perturbative regime () or parallel alignment (). We also note that the divergence cleaning step is what leads to . As illustrated in the same figure, all realizations end up with regardless of random field alignment, when the Gram-Schmidt process is switched off. This is expected given that a simple Gaussian random field should have on average, whereas a magnetic field must be divergence-free and therefore the difference between the naive random vector field and the magnetic field, which has been ignored in many previous analyses, is crucial in studying Galactic emissions. Now we conclude that the divergence-free random magnetic field can provide synchrotron . The Gram-Schmidt cleaning method is computationally useful and correct for reproducing the divergence-free random magnetic field (which in the simplest case can alternatively be obtained from a Gaussian random vector potential as shown in Appendix D where synchrotron arises naturally out of either method in the non-perturbative regime) and has the added benefit that we can spatially modulate its strength and orientation.
By contrast, the s estimated from the local MHD realizations have a clear analytic representation, to which simulations can be directly compared. To look for the low B/E ratio according to Kandel et al. (2018), we keep the random GMF strength at the perturbative level and tune the MHD Mach number and plasma parameter . As illustrated in Figure 13, we find clear evidence that a Gaussian realization of MHD turbulence can provide a synchrotron B/E ratio smaller than , in both perturbative and non-perturbative regimes. The fast mode in a sub-Alfvénic low- plasma has a unique power spectrum shape and is less affected by the anisotropy function than the slow mode. By assuming equal power in the turbulence modes at the injection scale, the observed angular power spectra are mainly influenced by the fast mode and so the B/E ratio has different behaviour for the case where slow and Alfvén modes dominate. With the given MHD Mach number and plasma parameter, slow mode turbulence results in a much lower B/E ratio than that from the Alfvén mode, while fast mode prefers in perturbative regime. These features are conceptually consistent with analytic predictions by Kandel et al. (2018) as demonstrated in the top panel of Figure 13, where the differences between two estimations are likely because of the simplification in analytic derivation, e.g., the Limber and flat-sky approximations. Beyond the perturbative regime, we observe the B/E ratio evolves with the growth of random field strength and suggests an upper limit for the random field strength to achieve the observed B/E ratio with solely MHD turbulence.
The observational implications of the Galactic synchrotron emission from above two types of random field realizations are that both the divergence-free and MHD turbulent nature of the field are important for producing synchrotron (aside from the fact that the divergence-free condition is physically required). It is possible to use directly the angular power spectra estimated in the way presented here for studying Galactic components like the work by Vansyngel et al. (2018), but we should be aware of the numeric uncertainty if the simulation resolution is lower than that of astrophysical measurements, in addition to the fundamental difference between simulation and observation mentioned in Section 2.
5 summary
In this report, we have presented hammurabi X, the improved version of hammurabi. We have redesigned the package properly with calibrated precision and multi-threading support. This report focuses on the implementation of the synchrotron emission simulation in hammurabi X and its relation to the random magnetic field realization. The technical features and profiles associated with Galactic synchrotron emission have been, for the first time, reported in detail.
Two fast methods for generating divergence-free Gaussian random magnetic fields covering either Galactic scales or a local region have been proposed. This is a crucial improvement (in computing accuracy and the capability of realizing physical features) over not only the previous versions of hammurabi but also previous fast methods of simulating the GMF and the resulting diffuse Galactic polarized emission from the ISM. It is increasingly clear that simplistic treatments of the turbulent component of the ISM do not produce simulated observables of sufficient complexity to be useful in comparison to the data. Though full MHD turbulence realizations are computationally too expensive for the usage in large-scale GMF model fitting, using the statistical properties of these MHD simulations is an important intermediate step pursued here. The new hammurabi X provides the ability for the first time to generate Gaussian simulations that capture some of the properties of fast, slow, and Alvén modes of MHD turbulence in a computationally efficient approximation. Using these more realistic numerical methods for simulating the magnetized ISM will lead to results that can be more directly linked to physical theory.
We have further demonstrated the importance of these improvements by studying two properties of the GMF that have been discussed in the literature. Firstly, we have shown the importance of including a treatment of the anisotropic turbulence in the local ISM when attempting to interpret high-latitude synchrotron polarization as an indication of the local magnetic field direction. Any such modelling of the local field can use hammurabi X to quantify how much this affects the results, particularly with the addition of Faraday depth to break the degeneracy of using only polarized diffuse emission. Secondly, using our new numerical methods, we have found that a Gaussian random realization with either the global field orientation alignment or the local MHD parameterization can produce in synchrotron emission at high Galactic latitudes. Comparing the B/E ratio predicted by the global random GMF realizations with and without invoking the Gram-Schmidt process, we have realized that the divergence-free property is essential for such detailed statistical studies of GMFs. Our results conceptually confirm the prediction made by Kandel et al. (2018) for Galactic synchrotron emission, which says the MHD magnetic turbulence has the ability to predict , while the prediction for dust emission B/E ratio has been conceptually confirmed by Kritsuk et al. (2018). We have also succeeded in demonstrating the computing power that hammurabi X can provide to go beyond analytic studies of Galactic foreground observables with non-perturbative random GMF realizations.
In the near future, we would like to focus on improving the random GMF generators with more physical features. The alignment of the random GMF around local filaments (including helicity) and non-Gaussianity will be interesting extensions, through which we can study the joint effect of the magnetic field alignment and its spectral anisotropy. In hammurabi X, both the global and local generators are designed to allow in the future the addition of non-Gaussianity, e.g., with the method introduced by Vio et al. (2001), helicity, e.g., with the method instructed by Kitaura & Enßlin (2008) and more realistic modelling, e.g., with local filaments studied by Bracco et al. (2018). We intend to extend hammurabi X for further studies of Galactic Faraday rotation, dust emission and free-free absorption by including (where possible) the coupling between the random GMF and the thermal electron and dust distributions implemented in similarly calibrated numeric implementations.
acknowledgments
We thank Theo Steininger and Joe Taylor for their contribution in the software development, Sebastian Hutschenreuter for his feedback in using hammurabi X, and Christopher J. Anderson for his instructions in using NaMaster , Dinesh Kandel, Alexandre Lazarian and Dmitri Pogosian for sharing their numerical results. JW appreciates the pleasant and inspiring discussions with Davide Poletti, Yang Liu, François Boulanger and Anvar Shukurov. We also thank the constructive comments from the anonymous referee.
The hammurabi X project arose and have received support from the IMAGINE181818Homepage of the IMAGINE consortium: https://www.astro.ru.nl/imagine/index.html meetings hosted by the International Space Science Institute in 2014 and 2015, the Lorentz Center in 2017 and Radboud University in 2019.
The numerical computation is supported by the HPC service and the MHPC program of SISSA. This work is also partially supported by the National Science Foundation of China (11621303, 11653003, 11773021, 11835009, 11890691), the National Key R&D Program of China (2018YFA0404601, 2018YFA0404504), the 111 project and the CAS Interdisciplinary Innovation Team (JCTD- 2019-05).
Appendix A synchrotron emission
In this section, we present the basic mathematical formulae adopted in calculating polarized synchrotron emission and Faraday rotation. The method is defined not only for analytic modelling of the CRE flux but also for an input grid of dimension imported from external binary files, where the spectral dimension is defined by a logarithmic sampling of electron energy. This matches the output convention in CR transport simulators like Galprop (Strong & Moskalenko, 1998) and DRAGON (Evoli et al., 2017).
A.1 radiative transfer
With the CRE differential flux distribution , synchrotron total and polarized emissivities at given observational frequency and spatial position read
[TABLE]
where , which represents the emission power from one electron at frequency , is calculated (Rybicki & Lightman, 1979) through synchrotron functions and (with and known as two of the modified Bessel functions of the second kind) as
[TABLE]
where is the electron charge, the electron mass, and (defined as in Section 2) represents the strength of the magnetic field projected in the direction perpendicular to the LoS direction. Statistically, we assume the synchrotron emission at a given position is isotropic, and so an observer only receives of the emission power, which explains the coefficient in the front of the right-hand-side in equation (A1). In addition, we place an extra before due to the relation . The term , with representing the relativistic speed, is actually , the CRE differential density.
In practice, the CRE spectral integral can be achieved in two technically different approaches with the same theoretical origin. If given numerical CRE flux information prepared on a discrete grid, the integral equation (A1) can be directly evaluated by the numerical integral. Alternatively we can start with an analytic differential density distribution , and by doing so the equation (A1) reads
[TABLE]
The reason for keeping equation (A4) as an alternative method is to calculate the integral analytically once the CRE spectral index is constant at any given position as illustrated in Section 2. The detailed derivation follows the auxiliary definition of
[TABLE]
Then by assuming , equation (A4) ends up in the form as
[TABLE]
where the spectral integrals can be analytically calculated by using
[TABLE]
Figure 14 illustrates the dependence of the synchrotron total emissivity and polarized emissivity on CRE energy, with varying magnetic field strength, observational frequency and CRE spectral shape. The peaks in emissivities are inherited from and , where the dimensionless parameter is the ratio of observational frequency to CRE gyro-frequency.
In this work, we focus on simulating synchrotron emission at the level, for which the Galactic environment is optically thin (Rybicki & Lightman, 1979; Schlickeiser, 2002), and so we ignore both synchrotron self-absorption and free-free absorption. For readers who might be confused with the synchrotron emissivity calculation formulae presented above, please turn to the hammurabi X wiki page for more technical details.
A.2 Faraday rotation
Faraday rotation describes the phenomenological manifestation of the refractive index difference in the polarization directions for photons that propagate through a plasma with an external magnetic field. For a linearly polarized photon emitted with wavelength and intrinsic polarization angle , the observed polarization angle after traversing distance is
[TABLE]
where , the Faraday depth reads
[TABLE]
where represents photon propagation direction, represents distribution of thermal electron density. Note that the IAU convention191919Detailed description for the different IAU and CMB polarization conventions can be found at https://lambda.gsfc.nasa.gov/product/about/pol_convention.cfm. for polarization is adopted in hammurabi X, which means that the intrinsic synchrotron polarization angle is determined by the polarization ellipse semi-major axis perpendicular to magnetic field orientation. Under Faraday rotation at a given observational frequency , the observed emission accumulates Stokes parameter and over a distance by
[TABLE]
where represents polarized intensity in radial bin . Though Faraday rotation brings in extra information about the thermal electron (TE) distribution, a relatively high observational frequency is sometimes preferred for studying synchrotron emission, e.g., in this report, to suppress the complicated effects of TE turbulence, which will be addressed in our future studies with hammurabi X.
Appendix B precision of random GMF generation
In the random GMF generators described in Section 3, we are not using three independent FFTs for 3D vector fields. A straightforward approach to vector field FFT would be carrying out three independent transformations separately. However, that is expensive in general where the operations are only limited to transforms between real and complex values. A special speedup design that provides computational efficiency is to compress the three real scalar fields into two complex scalar fields.
Suppose that in the -domain we have two complex scalar fields and , which are compressed from three real scalar fields , and by defining
[TABLE]
Then mathematically, we know their reciprocal-domain counterparts should be
[TABLE]
Since the transform is done between real and complex fields, complex conjugate symmetry gives a useful property
[TABLE]
from which we can recover vector fields , and in the reciprocal-domain. This method is applied in both the global and local turbulent GMF generators to reduce the computational cost.
In the FFTs of both the global and local generators, the numeric field is calculated according to its frequency domain counterpart as
[TABLE]
Dimensional analysis requires the variance of in form
[TABLE]
which in turn satisfies the definition of energy density
[TABLE]
where represents the Nyquist frequency. The precision of the power spectrum as represented on the spatial grid can be visualized by comparing the theoretical and numerical energy densities from field realizations. As illustrated with examples in Figure 15, the convergence towards higher grid resolution demonstrates the correctness of the numeric implementations.
Appendix C precision of pseudo- estimation
In this work, the s are estimated from an ensemble of simulations with the NaMaster 202020https://github.com/LSSTDESC/NaMaster toolkit (Alonso et al., 2019). Figure 16 provides some extra information about the pseudo- estimation we used. The iso-latitude masks used here include the one applied in Section 4.3, which corresponds to the masking limit in the right panel of Figure 16. To analyze partial-sky observables with the iso-latitude masks with masking limit lower than and Gaussian smoothed apodization, we empirically choose band-power binning width according to the width of the window function. The regular magnetic field assumed in this work induces a strong large-angular synchrotron polarization. The symmetry of this synchrotron polarization results in suppression of the odd angular modes in the power spectrum. In the left and middle panels of Figure 16 the even and odd modes are joined, and the light and dark grey shaded regions represent the E and B mode s due to the symmetric synchrotron polarization without any masking. In presence of a random magnetic field, this suppression of odd harmonics persists at low and intermediate value but goes away at high-s.
In case of a partial sky coverage with small sky fraction, like the case considered here, pseudo- estimation cannot be done without binning. However, the suppression of odd harmonics is a complication for pseudo- estimators like NaMaster. A pseudo- estimate of the symmetric polarization due to the regular magnetic field alone is shown in the grey dashed and dashed-dotted curves in the first two panels of Figure 16. These do not agree with the full sky power spectrum.
The presence of the large-scale symmetry in the polarization presents a critical problem for the pseudo- estimation by NaMaster, for the total polarization signal produced by the regular and random fields together. This may be seen from the solid red/orange and blue/green curves for E and B mode pseudo- estimates in the first two panels of Figure 16. These show the identical problem to the plots without a random magnetic field on partial sky. To avoid this problem, in pixel space we subtract the polarization signal produced by the regular magnetic field alone from the total polarization signal. Fortunately, in the illustrative examples, the regular fields are homogeneously defined and so it is feasible and safe to subtract the contribution from the regular magnetic field in the pixel domain. We then proceed to use NaMaster on these ‘corrected’ polarization maps. (This is also performed for Figures 12, 13 and 17 as mentioned in the caption.) The pseudo- estimates for this ‘corrected’ case is shown in the first two panels of Figure 16 with red/orange and blue/green data points for E and B mode pseudo- estimates respectively. We also show the error bars of reconstruction from 10 independent simulations. We restrict our analysis to modes. Note that this correction process only removes the contribution that comes from the regular GMF on its own, i.e., it preserves the polarization signal produced by cross term between the regular and random fields.
We also tried the masking with various latitude limits, and as demonstrated in the right panel of Figure 16 (where the random magnetic field is generated by the global generator with alignment ratio ), and the B/E ratio estimations are consistent (with larger uncertainty according to smaller sky fraction).
Now we have verified the methods in calculating the synchrotron polarization in Section 2, the random field realization in Section 3, and the s in Figure 16. To further confirm the correctness of the simulated results obtained in Section 4, a conceptual verification is necessary. An analytic approach towards generating the angular power spectrum of tensor fields is not easy and is also beyond our scope. Alternatively, the shape of the Faraday depth angular power spectrum can be inferred from simplified settings of the fields, which serves as a proper check of the random field realization and the angular modes accumulation in the LoS integral.
To begin with, we adopt the total angular momentum method introduced by Hu & White (1997b); Hu (2000). Synchrotron polarization from a given geocentric position can be expanded in a polarization basis as
[TABLE]
where for the spin-2 tensor field the basis reads
[TABLE]
where is the spherical harmonic function for a spin- field. The standard path towards the angular power spectrum E mode and B mode starts from interpreting the LoS integral of a target foreground observable with base and leads to evaluating
[TABLE]
In the simplest case, we consider only emission sources while ignoring absorption and Faraday rotation, i.e., for a synchrotron polarization tensor at observational frequency ,
[TABLE]
where the basic formulae for polarized emissivity and intrinsic polarization angle have been discussed in Appendix A. We would thus expect the integral solution to become
[TABLE]
where the source terms are determined by
[TABLE]
It is however not trivial (and thus is commonly avoided without further simplification) to analytically bridge the random GMF and its contribution to synchrotron emissivity expanded in a spherical harmonic basis. Fortunately, Faraday depth is a different story, since the LoS projection of a divergence-free vector field can be represented as
[TABLE]
where the wave-vector differs from that in random field realization by a factor of . (Instead of using the total angular momentum method, a similar approximation to the rotation measure structure function has been carried out by Xu & Zhang (2016), which leads to the same conclusion.) The procedure we take for Faraday depth follows the same method for the Doppler effect handled by Hu (2000), where the linear perturbation and Limber approximations (LoVerde & Afshordi, 2008) are key assumptions. By assuming a uniformly distributed TE field, we isolate the perturbation source of Faraday depth in the vector mode () which results in the angular power spectrum
[TABLE]
where is power spectrum of random GMF. By applying Limber approximation (which assumes the typical scale of LoS variation of a perturbed field is much larger than that in the angular direction) we have
[TABLE]
which suggests the shape of is mainly determined by .
Figure 17 present a comparison of the simulation precision with respect to the analytic prediction. For the highest spherical mode in analysis and for a random field grid bin of length , the lower radial limit is roughly set as . Regions closer than or modes above are greatly affected by the grid interpolation and may affect the pseudo- estimation. The upper radial limit is defined by the simulation size within which the random GMF is generated, and should be satisfied. The LoS radius limits discussed here do not influence the conclusions about the B/E ratio but only affecting the precision in estimating s. To achieve the highest precision without being distracted by the effects of a multi-shell arrangement, the simulations are done with single shell integrals. The default simulation and output resolutions are identically set as unless specified. The random field grid by default is built large enough to host radial integral with LoS depth from the observer with field sampling resolution (which means ) and radial resolution , except that in this appendix we use thin shells with thickness and much lower sampling resolution (). With a sharp cutoff at an injection scale in the random GMF models (by ignoring the inverse cascading), we expect a corresponding break in the angular power spectrum at . The break position is well recovered independently of the simulation resolution on each thin LoS shell. The power in angular modes below and above the break is affected differently by the spherical and sampling resolution. For , the angular resolution (characterized by HEALPix ) has a dominant influence, suggesting that a larger angular resolution is necessary for more distant shells to suppress the angular power excess. While for , the missing angular power (particularly for shells closer to the observer) results from insufficient sampling resolution (characterized by the Nyquist frequency ) in the random field realization, especially near the observer. Although the illustrations are prepared with the global random GMF generator, the resolution effects discussed above are generic. Insufficient angular or Galactic component sampling resolution will result in missing power in the angular power spectra from simulation outputs. This issue can in principle be handled by using an inhomogeneous grid or adaptively refined mesh with non-equispaced FFT (Keiner et al., 2009) for sampling Galactic components (especially the turbulent fields), and also adaptively refined spherical pixelization. An alternative solution can be nesting sampling grids with different resolutions, but the precision loss on the boundary should be carefully estimated and controlled. Now with our theoretically verified Faraday depth anisotropy, we can conclude that our numeric realizations of Gaussian random fields are accurate, and thus that the results regarding the B/E ratio obtained from synchrotron emission simulations should be free from numeric defects.
Appendix D divergence cleaning verification
In Section 3.3 we introduced a fast algorithm for generating global random GMFs with divergence cleaning independent from a random sampling of magnetic field vectors in the frequency domain. To verify the influence of the divergence cleaning on the default global random generator, here we propose an alternative algorithm for generating global Gaussian random GMF by starting with the Gaussian random realizations of the magnetic potential field . Knowing a random magnetic field can be defined by its potential , in the frequency domain we have
[TABLE]
which ensures and so alternatively provides divergence-free random magnetic fields which we can compare to our divergence cleaning using a Gram-Schmidt process. Note that in this verification, we do not impose any spatial field strength modulation nor orientation alignment, which corresponds to the case in the default global generator. Figure 18 illustrates that the two methods of generating divergence-free random magnetic fields produce equivalent statistical properties of the resulting polarized synchrotron emission. We have noticed that B/E depends on the ratio between the strength of random and regular magnetic fields (independent of the simulation resolution), as illustrated not only by Figure 18 here but also by Figures 12 and 13. This is not predictable by analytic calculations when the random field strength is gradually moving out of the perturbative regime, and it is one of the major advantages and motivations of using hammurabi X for the future studies.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Akahori et al. (2013) Akahori, T., Ryu, D., Kim, J., & Gaensler, B. M. 2013, Astrophysical Journal, 767, ar Xiv:1303.1595
- 2Alonso et al. (2019) Alonso, D., Sanchez, J., & Slosar, A. 2019, Monthly Notices of the Royal Astronomical Society, 484, 4127
- 3Alves et al. (2016) Alves, J., Combes, F., Ferrara, A., Forveille, T., & Shore, S. 2016, Astronomy & Astrophysics, 594, E 1
- 4Alves et al. (2018) Alves, M. I. R., Boulanger, F., Ferrière, K., & Montier, L. 2018, Astronomy & Astrophysics, 611, L 5
- 5Amdahl (1967) Amdahl, G. M. 1967, in Proceedings of the April 18-20, 1967, spring joint computer conference on - AFIPS ’67 (Spring) (New York, New York, USA: ACM Press), 483
- 6Beck et al. (2016) Beck, M. C., Beck, A. M., Beck, R., et al. 2016, Journal of Cosmology and Astroparticle Physics, 2016, 056
- 7Boulanger et al. (2018) Boulanger, F., Enßlin, T., Fletcher, A., et al. 2018, Journal of Cosmology and Astroparticle Physics, 2018, 49
- 8Bracco et al. (2018) Bracco, A., Candelaresi, S., Del Sordo, F., & Brandenburg, A. 2018, Astronomy & Astrophysics, 621, A 97
