The challenges of modelling microphysics: ambipolar diffusion, chemistry, and cosmic rays in MHD shocks
T. Grassi, M. Padovani, J. P. Ramsey, D. Galli, N. Vaytet, B., Ercolano, T. Haugboelle

TL;DR
This paper develops a 1D non-ideal MHD code to study the impact of microphysics, including cosmic rays and dust, on magnetic shock waves in astrophysical environments, highlighting their critical role.
Contribution
It introduces a new non-ideal MHD simulation framework that incorporates complex microphysical effects to better understand astrophysical shock phenomena.
Findings
Cosmic rays significantly influence shock dynamics.
Dust microphysics alters shock structure.
Microphysics inclusion is essential for realistic models.
Abstract
From molecular clouds to protoplanetary disks, non-ideal magnetic effects are important in many astrophysical environments. Indeed, in star and disk formation processes, it has become clear that these effects are critical to the evolution of the system. The efficacy of non-ideal effects are, however, determined by the complex interplay between magnetic fields, ionising radiation, cosmic rays, microphysics, and chemistry. In order to understand these key microphysical parameters, we present a one-dimensional non-ideal magnetohydrodynamics code and apply it to a model of a time-dependent, oblique, magnetic shock wave. By varying the microphysical ingredients of the model, we find that cosmic rays and dust play a major role, and that, despite the uncertainties, the inclusion of microphysics is essential to obtain a realistic outcome in magnetic astrophysical simulations.
| 0 | 6.882876 | 2 | -0.532834 | 4 | -0.016907 |
| 1 | 2.231421 | 3 | 0.146966 | 5 | 0.000642 |
| H2 | Mg+ + e- | ||||
|---|---|---|---|---|---|
| Mg+ | + e- | H2 | Eq. (26) | ||
| Mg+ | + g | H2 + g | Eq. (33) | ||
| Mg+ | + g0 | H2 + g+ | Eq. (34) | ||
| Mg+ | + g | H2 + g | Eq. (31) | ||
| e- | + g | g | Eq. (31) | ||
| e- | + g0 | g- | Eq. (34) | ||
| e- | + g | g | Eq. (33) | ||
| g- | + g+ | g0 + g0 | Eq. (31) | ||
| g– | + g++ | g0 + g0 | Eq. (31) | ||
| g++ | + g0 | g+ + g+ | Eq. (34) | ||
| g– | + g0 | g- + g- | Eq. (34) | ||
| g++ | + g- | g0 + g+ | Eq. (31) | ||
| g– | + g+ | g0 + g- | Eq. (31) |
| -0.41953296 | 0.37771378 | 0.06950703 | |
| -0.41819111 | 0.34261771 | 0.18453260 | |
| -0.40908288 | 0.30922328 | 0.20339583 | |
| -0.39206456 | 0.26730250 | 0.16134104 | |
| -0.36848365 | 0.22498770 | 0.05100280 | |
| -0.34350388 | 0.21428663 | -0.17200160 | |
| -0.33385135 | 0.31951247 | -0.60550265 | |
| -0.35192170 | 0.55369825 | -1.17743478 | |
| -0.28404485 | 0.18312184 | -0.70825975 |
| Model name | Description | Reference parameter or model |
| reference | see Sect. 9.1 | — |
| reference_noth | without radiative cooling or CR heating | reference |
| ideal | ideal MHD | reference |
| ideal_noth | ideal without radiative cooling or CR heating | ideal |
| adtab | from equilibrium tables | time-dependent chemistry |
| arec | alternative recombination rate (Eq. 50) | recombination rate from Eq. (26) |
| stick01 | electron sticking | fit to Bai (2011); see Sect. 4.3 |
| stick1 | electron sticking | fit to Bai (2011); see Sect. 4.3 |
| N5e20 | initial effective column density cm-2 | cm-2 |
| N5e22 | initial effective column density cm-2 | cm-2 |
| cr | constant cosmic ray ionisation rate | cosmic ray attenuation as in Sect. 5 |
| crlow | “low” CRs; s-1 and | “high” CRs; s-1 and |
| bulk10 | dust bulk density g cm-3 | g cm-3 |
| d2g1e4 | dust to gas mass ratio | |
| d2g_step | initially in the upstream region, otherwise | |
| nogg | no grain-grain chemistry | grain-grain chemistry included |
| pexp25 | in | |
| pexp50 | in | |
| amin1e6 | cm in | cm |
| cool01 | cooling rate multiplied by | standard cooling |
| cool10 | cooling rate multiplied by | standard cooling |
| noheat | no cosmic ray heating | cosmic ray heating included |
| nochem1e | chemistry not solved; constant ionisation fraction | time-dependent chemistry, ionisation fraction |
| Variable | Left state | Right state | Units |
|---|---|---|---|
| cm-3 | |||
| K | |||
| G | |||
| G | |||
| G | |||
| cm s-1 | |||
| cm s-1 | |||
| cm s-1 | |||
| — | |||
| — |
| Reactants | ||||||
|---|---|---|---|---|---|---|
| Mg+ + g | ||||||
| Mg+ + g- | ||||||
| g+ + g-- | ||||||
| e- + g- | ||||||
| e- + g+ | ||||||
| g + g++ | ||||||
| e- + g++ | ||||||
| g+ + g- | ||||||
| g++ + g-- | ||||||
| g++ + g- | ||||||
| g + g-- | ||||||
| Mg+ + g+ | ||||||
| Mg+ + g-- | ||||||
| e- + g |
| 1 | H+ | + | O | m+ | |||
| 2 | H+ | + | O2 | m+ | |||
| 3 | H+ | + | M | M+ | |||
| 4 | He+ | + | H2 | H+ | |||
| 5 | He+ | + | CO | C+ | |||
| 6 | He+ | + | O2 | m+ | |||
| 7 | H3+ | + | CO | m+ | |||
| 8 | H3+ | + | O | m+ | |||
| 9 | H3+ | + | O2 | m+ | |||
| 10 | H3+ | + | M | M+ | |||
| 11 | C+ | + | H2 | m+ | |||
| 12 | C+ | + | O2 | m+ | |||
| 13 | C+ | + | O2 | m+ | |||
| 14 | C+ | + | M | M+ | |||
| 15 | m+ | + | M | M+ | |||
| 16 | H+ | + | e- | no products | |||
| 17 | He+ | + | e- | no products | |||
| 18 | H3+ | + | e- | no products | |||
| 19 | H3+ | + | e- | no products | |||
| 20 | C+ | + | e- | no products | |||
| 21 | m+ | + | e- | no products | |||
| 22 | M+ | + | e- | no products | |||
| 23 | H2 | H3+ | + | e- | |||
| 24 | He | He+ | + | e- | |||
| 25 | H2 | H+ | + | e- |
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.
The challenges of modelling microphysics: ambipolar diffusion, chemistry, and cosmic rays in MHD shocks
T. Grassi1,2,3,, M. Padovani3,4, J. P. Ramsey2,5, D. Galli4, N. Vaytet2,6, B. Ercolano1,3, T. Haugbølle2
1Universitäts-Sternwarte München, Scheinerstr. 1, D-81679 München, Germany
2Centre for Star and Planet Formation, the Niels Bohr Institute and the Natural History Museum of Denmark, University of Copenhagen, Østervoldgade 5-7, DK-1350 Copenhagen K, Denmark
3Excellence Cluster Origin and Structure of the Universe, Boltzmannstr.2, D-85748 Garching bei München, Germany
4INAF-Osservatorio Astrofisico di Arcetri, Largo E. Fermi 5, I-50125 Firenze, Italy
5Department of Astronomy, University of Virginia, Charlottesville, VA-22904, USA
6Data Management and Software Centre, the European Spallation Source ERIC, Ole Maaløes Vej 3, DK-2200, Copenhagen, Denmark Corresponding author: [email protected]
(Accepted *****. Received *****; in original form ******)
Abstract
From molecular clouds to protoplanetary disks, non-ideal magnetic effects are important in many astrophysical environments. Indeed, in star and disk formation processes, it has become clear that these effects are critical to the evolution of the system. The efficacy of non-ideal effects are, however, determined by the complex interplay between magnetic fields, ionising radiation, cosmic rays, microphysics, and chemistry. In order to understand these key microphysical parameters, we present a one-dimensional non-ideal magnetohydrodynamics code and apply it to a model of a time-dependent, oblique, magnetic shock wave. By varying the microphysical ingredients of the model, we find that cosmic rays and dust play a major role, and that, despite the uncertainties, the inclusion of microphysics is essential to obtain a realistic outcome in magnetic astrophysical simulations.
keywords:
MHD – shock waves – methods: numerical – ISM: magnetic fields – astrochemistry
††pagerange: The challenges of modelling microphysics: ambipolar diffusion, chemistry, and cosmic rays in MHD shocks–H††pubyear: 2099
1 Introduction
Magnetic fields play a key role in determining the structure and evolution of many astrophysical environments. For example, in star forming regions, magnetic fields stabilise against gravity, influence the shape of molecular filaments, and play an important role in large-scale turbulence (see e.g. Padoan & Nordlund, 2002; McKee & Ostriker, 2007; Hennebelle & Chabrier, 2008; Federrath et al., 2010). In protoplanetary disks, magnetic fields can strongly influence the evolution of gas and dust (e.g. Balbus & Hawley, 1998; Armitage, 2011; Flock et al., 2016; Xu & Bai, 2016), remove angular momentum via outflows (e.g. Pudritz & Norman, 1983), affect the dynamical behaviour of planetesimals (e.g. Gressel et al., 2011), and even contribute to heating of (exo)planet atmospheres or to reduce atmospheric loss (e.g. Batygin et al., 2013; Cohen et al., 2014; Rogers & Showman, 2014; Dong et al., 2018).
How magnetic fields couple to gas and dust in these different contexts depends on the level of ionisation at each location and time. In weakly ionised conditions, such as can be found in molecular clouds and protoplanetary disks, one cannot generally assume that ideal magnetohydrodynamics (MHD) applies. If the magnetic diffusion timescale is comparable to the dynamical timescale, the coupling between magnetic fields and dynamics is regulated by microphysical processes that determine how the ionised matter is “felt” by the magnetic fields (e.g. Mestel & Spitzer, 1956; Wardle & Ng, 1999; Smith & Rosen, 2003; Duffin & Pudritz, 2008; Tomida et al., 2015). This can significantly affect the structure (e.g. outflow launching, disk formation) and dynamics (e.g. magnetic braking) of proto-stellar systems (see, e.g., Vaytet et al. 2018 and references therein).
Unfortunately, there remain significant uncertainties in certain aspects of astrophysically-relevant microphysics and chemistry (e.g. reaction rates, electron-grain sticking coefficients; Nishi et al. 1991; Bai 2011). These uncertainties could naturally affect models that include microphysics and lead to different outcomes when different ingredients are employed in, for example, the chemistry (e.g. Egan & Charnley, 1996; Ilgner & Nelson, 2006; Marchand et al., 2016; Wurster, 2016; Dzyurkevich et al., 2017), the dust content (e.g. Nishi et al., 1991; Okuzumi, 2009; Ivlev et al., 2016; Zhao et al., 2016), or cosmic rays (Padovani et al., 2013).
Our goal in this study is to determine which physical parameters are relevant for the evolution of the gas when self-consistently evolving time-dependent MHD alongside microphysics and chemistry (e.g. Kunz & Mouschovias, 2009; Xu & Bai, 2016), rather than by post-processing simulation snapshots (e.g. Padovani et al., 2013; Dzyurkevich et al., 2017), or employing pre-computed equilibrium tables (e.g. Gressel et al., 2011; Marchand et al., 2016). For this reason, we adopt a well-established, relatively simple framework for our experiments, i.e., a time-dependent, oblique, magnetic shock wave set in an environment that resembles the conditions of a pre-stellar core/dense molecular cloud (Lesaffre et al., 2004; Chen & Ostriker, 2012; Hollenbach et al., 2013; Flower & Pineau des Forêts, 2015; Holdship et al., 2017; Nesterenok, 2018). In this particular setting, the dominant non-ideal effect is ambipolar diffusion (Draine, 1980; Smith & Rosen, 2003; Duffin & Pudritz, 2008).
There have been several other studies of non-ideal MHD shocks in dusty plasmas using both steady-state (e.g. Pilipp & Hartquist, 1994; Wardle, 1998; Chapman & Wardle, 2006) and time-dependent approaches (e.g. van Loo et al., 2009; Ashmore et al., 2010; Van Loo et al., 2013) that examine different microphysical effects. Expanding upon these works, this paper aims to compare the importance of several microphysical ingredients and, in particular, what role cosmic rays play in determining the structure and evolution of MHD shocks.
We have developed, applied, and made publicly available a 1D, non-ideal MHD code and pre-processor111https://bitbucket.org/tgrassi/lemongrab/ to explore how common, simplifying assumptions about the microphysics affect the results relative to a full treatment of the problem. By varying the ingredients included in the experiments, we also identify simplifications to the chemistry and microphysics that do not strongly affect the results and are therefore worth exploring for possible use in large-scale, multi-dimensional, non-ideal MHD simulations.
Our self-consistent, albeit simplified, formulation of the problem also makes it possible to identify feedback processes in the chemistry/microphysics which are responsible for non-linear responses to variations of the external or internal parameters. For instance, as discussed in Sect. 9, the indirect effect of cosmic rays on the gas temperature via ambipolar diffusion heating.
The paper is structured as follows: First, in Sect. 2 we introduce the equations of non-ideal MHD and describe their implementation. In Sects. 3 to 6, we discuss the details and assumptions made for cooling and heating, chemistry, cosmic rays, and non-ideal microphysics. We verify the results produced by the code (described in Sect. 7) with a set of well-established tests in Sect. 8 before investigating how varying the microphysical ingredients affect the results in Sect. 9. We conclude in Sect. 10.
2 Methods: Non-ideal MHD 1D code
To test the effects of microphysics in a physically motivated, non-linear and time-evolving environment, we developed a 1D, time-implicit MHD code. The code evolves the physical quantities, , forward in time via
[TABLE]
where are the fluxes, the sources and sinks, and both are functions of . We define , where is the mass density, and are the th component of velocity and magnetic field, respectively, is the total energy density, and are the mass fractions of chemical species. is defined at the centre of each cell.
Assuming that the ions and neutrals can be represented by a single fluid222cf. the more complex and numerically challenging multiple fluid approach (e.g. Ciolek & Roberge, 2002; Falle, 2003; O’Sullivan & Downes, 2006). (Shu et al., 1987; Choi et al., 2009; Masson et al., 2012), Eq. (1) can be explicitly written, including ambipolar diffusion terms, as333We employ Gaussian cgs units, i.e., the permeability .:
[TABLE]
where is the modulus of the magnetic field444, and where and . Each chemical species is advected and their chemistry evolved according to Eq. (11); production () and loss () terms are discussed in Sect. 4.
The total pressure is
[TABLE]
while we assume an ideal equation of state for the thermal pressure
[TABLE]
and related to the temperature , needed by the chemistry, via the ideal gas law
[TABLE]
where is Boltzmann’s constant, the adiabatic index, the mean molecular weight, and the mass of the proton. The Lorentz force components are
[TABLE]
Spatial derivatives are evaluated using 2nd-order finite differences.
The ambipolar diffusion resistivity is given by
[TABLE]
where is the speed of light, , , and are the parallel, Pedersen and Hall conductivities, respectively, and will be discussed in Sect. 6.
The temporal evolution of the cosmic ray ionisation rate in each cell, , is calculated using Eq. (10), and discussed in detail in Sect. 5. Cosmic ray heating (), as well as chemical cooling (), are described in Sect. 3.
In Eqs. (2) to (11), since , the solenoidal condition () therefore requires that , which is guaranteed in the code by construction.
The complex, non-linear interplay between the myriad of different processes described by Eqs. (2) to (11) is summarised in Fig. 1: chemistry affects MHD via the resistivity coefficients (), while MHD affects the energy (), density (), and magnetic field () evolution. Magnetic field and density determine the effective column density seen by cosmic rays (), while chemistry depends on temperature via the reaction rate coefficients , on density, and on the cosmic ray ionisation rate (). Cosmic rays also affect temperature via direct heating ().
2.1 HLL solver
We linearise the spatial derivatives on the right-hand side (RHS) of Eq. (1) using a standard HLL method (Harten et al., 1983) in order to numerically calculate the fluxes. The flux in the th cell is given by
[TABLE]
where denotes the quantity evaluated at the cell’s interface. These are defined as
[TABLE]
where
[TABLE]
are the eigenvalues of the Riemann problem at the cell interfaces, and the fast magnetosonic velocity evaluated at is
[TABLE]
with , the speed of sound , and the Alfvén speed .
2.2 Implicit time integration
We employ the DLSODES solver (Hindmarsh, 1983; Hindmarsh et al., 2005) to integrate the system (Eqs. (2) to (11)) forward in time. This approach avoids the need to explicitly define a time-step using a standard Courant condition; only absolute and relative tolerances of the individual quantities are needed (see below). The DLSODES solver has access to the RHS of Eq. (1) for all grid points and, for the sake of simplicity, we use the internally-generated Jacobian555For additional details, refer to the solver documentation contained in the opkdmain.f file.. Our approach is fully implicit in time and does not require any operator splitting to solve, e.g., the chemistry or cooling alongside the MHD. The code has been successfully validated against a set of standard numerical experiments which are discussed in Appendix A.
The accuracy of the method is determined by absolute () and relative () tolerances666Tolerances are employed by the solver to compute the local error associated with the quantity as . Smaller tolerances increase the accuracy of the calculation, but could considerably increase the computational time. defined for each variable and each cell. We set777Units of and are in code units, that assumes cgs. for all variables, while for density (), for the momentum () and energy (), for the magnetic field (), and for the cosmic ray ionisation rate (). The chemistry (i.e. ), meanwhile, uses for all species. In principle, the solver allows for different tolerances in different cells, but we find this unnecessary in the current study.
3 Methods: Cooling and Heating
In addition to the usual ambipolar MHD heating and cooling processes stated explicitly in Eq. (9), we also include a simplified radiative chemical cooling and direct heating from cosmic rays. The former is taken from Eq. (11) of Smith & Mac Low (1997):
[TABLE]
where is the molecular hydrogen number density in cm*-3*, and is the gas temperature in K. The cooling function employed here is accurate enough given the chemistry model we adopt for the current investigation (see Sect. 4). In Sect. 9, however, we test the effects of varying the strength of the cooling term.
We model the cosmic ray heating as
[TABLE]
where is the cosmic ray ionisation rate (see Sect. 5), is the number density of H nuclei ( in our chemical network), and is the heat deposited in the gas per ionisation event, taken from Fig. 2 of Galli & Padovani (2015) (see also Glassgold et al., 2012) and fit here using
[TABLE]
using the coefficients found in Tab. 1. The fitting function is valid in the range to cm*-3*.
4 Methods: chemistry
To maintain a reasonable level of control over the many parameters in our model, we employ a simplified chemical network that follows the approach of Fujii et al. (2011) (see their Fig. 2 and our Tab. 2). Despite this reduced model, in Sect. 8, we demonstrate that this network is capable of reproducing the results of a few more complicated chemical networks. Our model assumes that the ionisation of H2 produces a cascade of fast reactions that lead immediately to e- and Mg+ as products, where the latter is a proxy for all cations. Analogously, Mg+ quickly recombines with electrons (and negatively charged grains) to reform H2. In our model, the molecular hydrogen ionisation rate coefficient is equal to the cosmic-ray ionisation rate (see Sect. 5). The rate of Mg+ recombination is obtained from Verner & Ferland (1996) in the form888http://www.pa.uky.edu/~verner/rec.html:
[TABLE]
with cm3 s*-1*, , K, and K. Since Mg+ is a proxy for all positive ions, is therefore an effective recombination rate. In Sect. 9, we will examine the effects of varying .
4.1 Differential equations for chemistry
Differential equations for the production rate and loss rate of the th species are solved simultaneously with the equations of MHD in a single system, and are defined999Eq. (27) and Eq. (28) represent a standard set of differential equations for chemistry, but where the species abundances are given by their mass density instead of the more typical number density. by
[TABLE]
where is the reaction rate coefficient between species and , while and are the mass and the mass fraction of the th species, such that .
Together with the chemical network (defined in the previous Section), Eqs. (27) and (28) conserve the total number density, but not the total mass, because an H2 molecule is instantaneously converted into an Mg+ atom that is 24 times more massive. In principle, for the standalone chemical network, this does not represent a problem because the number density is conserved by construction. However, the hydrodynamics advects the mass density of the species, and it is therefore crucial to ensure conservation of mass. To avoid this issue, we define the mass of Mg+ as . When using the actual mass of Mg+, we find that the relative error on total mass conservation can be as large as (instead of ), while the error on global charge can reach in the worst cases (instead of ). We therefore use for our models. We also note that a non-reduced chemical network will not, in general, be affected by this problem, since the mass will be correctly conserved by each reaction.
4.2 Grain chemistry
In order to determine the fraction of charged species to compute the resistivity coefficients (see Sect. 6), we include dust grains that can recombine with electrons and exchange charge with cations and amongst themselves (see Tab. 2). We integrate the grain size distribution over size range to to provide averaged reaction rate coefficients, , that are functions of the grain size :
[TABLE]
for particle-grain interactions, and
[TABLE]
for grain-grain interactions, where are the rate coefficients for collisions of grains with radius and , respectively.
Following Draine & Sutin (1987), for reactants with opposite charge (, e.g. electrons and positively charged grains), we include the Coulomb factor and the charge focusing due to polarisation as
[TABLE]
where is the elemental charge, is the charge of the particle (e.g. electrons have ), is the charge of the grain101010When two grains interact, and are the charge counts of the grains. Since Draine & Sutin (1987) consider only an interaction between a conducting sphere and a test charge (see their sect. II.a), we assume that is always the larger collision partner, i.e., a grain in the grain-particle collision, and the smaller grain in grain-grain interactions., is the sum of the grain sizes that reduces to when is a particle, is the sticking coefficient (to be discussed below), and
[TABLE]
is the gas thermal velocity, is the reduced mass of the two species, and the proton mass.
Analogously, for reactants with repulsive charges (, e.g., a cation and a positively charged grain), the rate is
[TABLE]
with .
Finally, for (e.g. a cation and a neutral grain), we have
[TABLE]
For grain-particle interactions, we compute by using Eq. (29) together with Eq. (31), Eq. (33), or Eq. (34), and assuming . Grain-grain interactions are modelled analogously but using and Eq. (30) instead of Eq. (29). All of the rate coefficients discussed in this Section are shown for comparison in Fig. 2.
To speed-up code execution, we pre-compute the grain rate coefficients as a function of the temperature and apply a linear fitting function in logarithmic space at run-time. The grain size distribution properties are discussed in Appendix B, while fitting functions for reactions involving grains are given in Appendix C.
4.3 Sticking coefficient
To model the electron-grain sticking coefficient, , in Eq. (31) we refer to the appendix of Nishi et al. (1991) as well as Bai (2011). Electrons, because of their excess energy, only stick with some probability when they encounter a grain. A key parameter is , the depth of the potential well between electrons and grains due to the polarisation interaction. We do not implement the equations reported there, but we fit Fig. 6 in Bai (2011) assuming eV and m. The fit is , where is the grain charge and the coefficients are listed in Tab. 3. Using m (instead of integrating over the grain size distribution) may lead to errors, but since the choice of is arbitrary, we consider this fit accurate enough for the aims of this work. Moreover, comparing the two panels from Fig. 6 of Bai (2011), we note that the sticking coefficient with neutral grains (i.e. the main electron sticking route in our model) is almost size-independent. Nevertheless, in Sect. 9, we will vary the sticking coefficient and demonstrate its impact on the results.
As for cation-grain and grain-grain sticking coefficients, following Draine & Sutin (1987), we set for the interaction between positive ions and any type of grain; in Eq. (31), Eq. (33), and Eq. (34), only when the grain partner is an electron.
5 Methods: cosmic rays
Being charged particles, cosmic rays follow helical trajectories around magnetic field lines as they propagate. As a consequence, in the presence of a magnetic field, the effective column density “seen” by a cosmic ray can be much larger than the line of sight column density, especially if the magnetic field is not laminar (Padovani et al., 2013).
We consistently compute the propagation of cosmic rays following the approach of Padovani et al. (2018), where the cosmic ray ionisation rate of H2, , is a function of the effective column density travelled by the particle, , and is described in Appendix F of Padovani et al. (2018). Since we consider that our shock wave occurs in the vicinity of a pre-stellar core, prior to the cosmic rays entering our simulation domain, we assume they are partially attenuated by the surrounding medium. Thus, following Ivlev et al. (2015), we assume that the initial effective column density experienced by the cosmic rays is cm*-2*. This value is evaluated at the centre of the first cell (thus, the “” subscript). Since cosmic rays gyrate around magnetic field lines, and given the periodicity of the simulation domain along - and -directions, we compute the effective distance travelled as
[TABLE]
where and , while , , and are evaluated at the cell interface. We then compute the effective column density at the centre of the th cell as
[TABLE]
where and are calculated at the interface between cells and using a linear interpolation. Once the effective column density is available, we can retrieve the H2 ionisation rate at the centre of the th cell.
Within the column density range we are interested in here ( cm*-2*), is fairly represented by a power-law
[TABLE]
the coefficients and are discussed below.
Since , using the definitions of and , we can rewrite Eq. (35) as
[TABLE]
and thus
[TABLE]
Substituting this into Eq. (37), and assuming that and are constant in time, we then differentiate with respect to time and obtain
[TABLE]
We note that the in a given cell depends (non-trivially) on the densities and magnetic field values of all the cells from the first to the th , i.e., on variables. In practice, this considerably reduces the internal time step of DLSODES, since the number of variables that depends on is large and the Jacobian becomes considerably less sparse. In fact, by using a constant , the integration time can be reduced by a factor of approximately one hundred.
In principle, when computing the propagation of cosmic rays, one should account for the effects of magnetic focusing and mirroring (Cesarsky & Volk, 1978; Desch et al., 2004; Padovani & Galli, 2011). Focusing and mirroring mechanisms act to amplify and reducing the cosmic ray flux, respectively, and could be important in regions of star formation. However, Silsbee et al. (2018) has demonstrated that these two effects nearly cancel each other out when the magnetic field strength has a single peak along the field lines, which is indeed the case in this work. Therefore, in the following, we choose to neglect mirroring and focusing effects.
The propagation of cosmic rays can also be affected by scattering due to self-generated Alfvén waves (Skilling & Strong, 1976; Hartquist et al., 1978), but this mechanism is only important at the edges and the more diffuse parts of a molecular cloud, and thus we can safely neglect it in this work.
5.1 Lower and upper bounds of
The cosmic ray ionisation rate at a given column density is given by
[TABLE]
where is the cosmic ray differential flux (also called the spectrum), is a multiplicity factor accounting for ionisation by secondary electrons, and is the ionisation cross section. Since is known to peak at low energies, the maximum contribution to comes from cosmic rays in the energy range (Padovani et al. 2009).
The most recent Voyager 1 data release (Cummings et al., 2016) leads to the conclusion that no upturn is expected in the interstellar proton spectrum down to energies of at least 3 MeV. The corresponding ionisation rate, however, is more than a factor of 10 smaller than estimates from observations in diffuse clouds (Indriolo et al., 2015; Neufeld & Wolfire, 2017). For this reason, as in Padovani et al. (2018), we consider two different models for the cosmic ray proton spectrum: a “low” spectrum, obtained by extrapolating the Voyager 1 data to low energies, and a “high” spectrum. The latter can be considered as an upper bound to the actual average galactic cosmic ray spectrum and provides an upper limit to the values of estimated for diffuse clouds. The resulting ionisation rates and their comparison to observations is discussed in Ivlev et al. (2015).
The values of and in Eq. (37) that are needed to reproduce the two trends in are s*-1* and for the “low” case, and s*-1* and for the “high” case. Note that the validity of the fit is limited to cm*-2*.
6 Methods: Non-ideal MHD coefficients
Ambipolar diffusion is controlled by the resistivity coefficient, appearing in Eqs. (7) to (9) and defined in Eq. (18). The resistivity coefficient depends on conductivities (i.e. , , and ) that are functions of temperature, magnetic field, and species abundances. Given the reduced chemistry that we include in our model (Sect. 4), we assume that the only interactions that affect the conductivity are collisions between charged particles (electrons, cations, and grains) and molecular hydrogen. In principle, if we were to follow Pinto & Galli (2008), each charged species could exchange momentum with any other species in the gas, but, since the momentum transfer is dominated by the interaction between charged species and H2 (which in our model is the main neutral component of the gas), we do not explicitly include all interactions. For the sake of completeness, however, we report all the possible interactions from Pinto & Galli (2008) in Appendix E.
6.1 Conductivities
The three conductivities (parallel, Pedersen, and Hall) are given by (e.g. Pinto et al., 2008):
[TABLE]
where is the elementary charge, is the mass of a charged particle, is its charge, its mass density, and is the Hall parameter which takes into account the interaction between charged particles and neutral species (in our case H2). The sum is over electrons, cations, and charged dust grains.
The Hall parameter for collisions between the th charged particle (gas or dust) and a neutral species is given by
[TABLE]
where is the neutral gas mass density, its mass, and is the momentum exchange rate coefficient, which is described in the next Section.
6.2 Momentum transfer rate coefficients
6.2.1 Charged grains–H2
To model the interaction between charged dust grains and molecular hydrogen, we follow Sect. 6 of Pinto & Galli (2008). We employ their Eq. (25) when the condition in their Eq. (23) is satisfied (the hard sphere approximation rate; ), otherwise we use their Eq. (A.3) (the Langevin rate; ). Assuming that, at a critical grain size , Eq. (25) and Eq. (A.3) are equal, we can write
[TABLE]
where is taken from Liu et al. (2003) and cm3 is the polarisability of molecular hydrogen (Pinto & Galli, 2008).
Adopting a grain size distribution over size range to (Sect. 4.2), and the Langevin rate is size-independent, the rate coefficient then becomes
[TABLE]
where is the mass of molecular hydrogen and, since the mass of the grain is larger than the mass of H2, the reduced mass is . A simplified expression for Eq. (47) evaluated for the parameters stated above is reported in Appendix D.
We note that Eq. (47) is valid only when . Substituting , , and cm3 into Eq. (46), we find that cm and that it decreases as , hence the validity of Eq. (47) is only critical for because when K. Conversely, using the same relation, K is the critical temperature corresponding to cm. Therefore, when , Eq. (47) reduces to the second term on the right-hand side only (i.e. the normalised integral over ). We report the total rate and individual terms in Fig. 3. Since does not strongly affect , we do not discuss the behaviour of larger here, although we do include in the Figure for comparison.
6.2.2 Electrons–H2
At low energies ( eV), the collisional rate between electrons and molecular hydrogen deviates significantly from the Langevin approximation. Therefore, we employ the fit from Pinto & Galli (2008) based on the cross-section obtained by comparing theoretical and experimental data:
[TABLE]
where all variables are in cgs units. More details can be found in Pinto & Galli (2008).
6.2.3 Cations–H2
Analogously, the rate for collisions between positive ions and molecular hydrogen is also taken from Pinto & Galli (2008, A.3)
[TABLE]
and is the same as discussed in Sect. 6.2.1 when .
7 Code structure
In this Section, we provide a brief overview of the publicly available111111https://bitbucket.org/tgrassi/lemongrab/ code, lemongrab, developed for this study.
Following the approach of Krome (Grassi et al., 2014), the code consists of a Python pre-processor that computes the chemical reaction rates including dust grains, plus the momentum exchange cross-sections for the resistivity coefficient, and then writes optimised Fortran code that contains the MHD solver and other physics modules.
In contrast to Krome, in lemongrab, the Fortran files are directly modified by Python via specific directives that are recognised by the pre-processor as writable code blocks. The first stage is controlled by main.py, which creates an instance of the chemical network class (network.py) from an external file containing the reaction rate coefficients, and parses them into a set of objects according to the reaction class (reaction.py) and the species class (species.py). The reaction class also integrates any reaction rate coefficients that depend on the grain size distribution. Common variables, such as the grain size range to , the exponent of the power law , and the bulk density , are defined in common.py. Dynamically-generated rate coefficient functions are written to rates.f90. The momentum exchange coefficients are also pre-computed by the pre-processor and supplied to the Fortran code (in nonideal.f90) via linear fitting to a logarithmically-spaced table in temperature. Finally, the Python pre-processor automatically generates and places the right-hand side of the chemical differential equations in odechem.f90.
The core of the second stage is the MHD solver (ode.f90), which is called by test.f90. The ode.f90 file contains the call to DLSODES which solves the complete set of differential equations, i.e., Eqs. (2) to (11).
The ode.f90 file also supplies the chemical differential equations (odechem.f90), the chemical reaction fluxes (fluxes.f90), and the rate coefficient constants (rates.f90) to DLSODES. Moreover, ode.f90 also accesses nonideal.f90, where the non-ideal coefficients calculation routine is contained, cooling.f90 and heating.f90 for cooling and heating processes, and the cosmic-ray propagation functions in crays.f90. The initial conditions for the MHD shock are stored in input.dat, while variables that remain constant during the simulation (e.g. ) are stored in commons.f90 to help the compiler in optimise the calculation.
A single variable n(physical_variables, cells) is used to represent the main data structure. It includes the values of the physical variables, (Eq. 1), for all cells. This approach allows DLSODES to solve Eqs. (2) to (11) for all cells simultaneously and without any operator-splitting.
8 Code benchmark
In this Section, we compare our resistivity calculations to Marchand et al. (2016, hereinafter M16), which explores the behaviour of the non-ideal MHD coefficients using a zero-dimensional barotropic collapse problem and equilibrium chemistry. This benchmark was chosen because the source code is publicly available121212https://bitbucket.org/pmarchan/chemistry/ and the setup applies to the physical regimes we are studying here, making it an ideal target for comparison.
We have, meanwhile, also successfully tested the MHD implementation in lemongrab against two additional standard benchmarks. The results can be found in Appendix A.
Similar to Umebayashi & Nakano (1990, hereinafter UN90), the background model of M16 is a zero-dimensional collapsing cloud with a temperature determined using the equation of state from Machida et al. (2006), but also defined in Eq. (9) of M16 and using the parameters listed in their Eq. (10). The chemical evolution of the collapse is modelled from cm*-3*, i.e., up until the formation of the second core. They set the ionisation rate to a constant s*-1*. In contrast to UN90, the dust in their model is given a power-law size distribution . The distribution is normalised in order to obtain the same total surface area as the fiducial distribution of Kunz & Mouschovias (2009), as shown in their Eqs. (16) and (17). We use the results reported in Figs. 3 and 5 of M16 as our reference for comparison.
The test consists of running the chemistry forward in time until equilibrium is reached at each density and then calculating the ambipolar diffusion (), Ohmic resistivity (), and Hall resistivity () coefficients. We initialise the temperature and magnetic field as functions of number density following M16. In our case, we limit the density range to cm*-3* because we miss some physical processes that are important at higher densities/temperatures, e.g., grain sublimation (see Fig. 2 of M16). Grains are permitted have a charge from to .
In order to reproduce their results, we use a grain size distribution with size range to cm, and a dust-to-gas ratio of . We also adopt the recombination rate coefficient from M16
[TABLE]
instead of our Eq. (26). In this test we assume sticking coefficient for all the rates involving grains, except for the electron-neutral grain attachment where . Moreover, we do not use the Mg+ reduced mass, but the actual one.
We report out results in Fig. 4, where we find good agreement with M16 in both chemical abundances and resistivity coefficients. See also Appendix F for further details.
9 The effects of microphysics on the structure of magnetic shocks
The aim of this study is to understand the effects of chemistry, dust microphysics, cosmic rays, and cooling/heating on the evolution of astrophysical magnetic shocks. In this Section, we analyse these effects in detail by varying the physical ingredients and parameters of a reference model. The different models and their characteristics are reported in Tab. 4.
9.1 Reference model
All of the tests presented in this Section are based on a 1-D MHD reference shock tube model with a box size of cm ( pc AU) and linearly-spaced grid points. The shock moves from left to right (see Fig. 5 and Tab. 5), with initial left state density cm*-3*, velocity components cm s*-1* and cm s*-1*, magnetic field G, and temperature K. The unperturbed right side has cm*-3*, velocity components cm s*-1* (note ), G, and K. Both sides have G constant in time, , and . The interface between left and right states is placed at . In all tests, we let the system evolve for yr.
The reference model includes the full calculation of ambipolar diffusion, time-dependent chemistry with the recombination rate coefficient from Eq. (26), and electron-sticking following Bai (2011). We set the dust-to-gas mass ratio to and the grain size distribution to with and size range cm to cm. The dust is given a bulk density of g cm*-3*. The initial ionisation fraction is set to , but this has no influence on the evolution except for tests without chemistry (i.e. nochem1e). See Appendix G for additional details on the chemical initial conditions.
Since the gas is dominated by molecular hydrogen, we assume a molecular gas with constant and constant mean molecular weight . Cosmic rays propagate from left to right with initial effective column density cm*-2*, and we assume high cosmic ray spectrum, i.e., Eq. (37) with s*-1* and (Sect. 5).
9.2 General behaviour of the models
We evolve the shock for yr and, in Figs. 6 and 7, we report131313An animation of the evolution of reference and ideal models is available at https://vimeo.com/286491689; the evolution without thermal processes (reference_noth, ideal_noth) is available at https://vimeo.com/290131160. the results for reference, ideal, reference_noth and ideal_noth models.
The solution to the ideal_noth test, which is the simplest physical model we explore, exhibits five features (from left to right): a fast shock, a slow rarefaction, a contact discontinuity, a slow shock, followed by another fast shock. While the leftmost and rightmost fast shocks are clear, the slow rarefaction, located near cm at 10 kyr, is very low amplitude and only just visible in . The contact discontinuity and slow shock are, meanwhile, adjacent to each other with the transition between the two occurring at cm (at 10 kyr). The solution as a whole moves to the right at km s*-1*. The -components of the magnetic field and velocity ( and ) remain equal to zero since both are initially zero and there are no -derivatives in the problem. Thus, the magnetic field vector does not rotate for these particular initial conditions, even though the code is capable of this.
The ideal model, which includes cooling (Sect. 3), demonstrates a considerably different solution. The shock structure is modified significantly by the cooling of the hot gas in the left initial state ( K K) and the shock-heated gas in the intermediate region between left and right fast shocks (cf. the ideal_noth model). The wave speeds and the extent of the region between the leftmost fast shock and the contact discontinuity/slow shock are subsequently reduced. Even the self-similarity of the ideal_noth solution is broken.
The addition of ambipolar diffusion smears out gradients in the magnetic field ( in this case) and subsequently heats the affected regions. This is particularly visible for the region downstream from the rightmost fast shock in the reference_noth model (Fig. 7). Note, however, that the diffusion of the magnetic field in the vicinity of the leftmost fast shock only becomes substantial once cooling is included (i.e. the reference model); this is a result of recombination, which is more efficient at lower temperatures (Fig. 2), and reduces the ionisation fraction. That said, even including ambipolar heating, magnetic diffusion does not drastically modify the structure and evolution of the solution; cooling has a much more significant effect.
Before turning to a more detailed examination of how the microphysics affects the shock solution, we first describe our primary means of presenting and comparing the different tests. Figure 8 reports the density in the different models at yr for the region – cm. The absolute value of the gas density is plotted in the four top panels, where the black solid line indicates the reference model, while the shaded grey area denotes the envelope values/extrema of the density across all models for visual reference. The lower panels show the relative density variation for each model, sorted from the largest to the smallest.
The upper bound of the grey envelope in Fig. 8 is mainly set by the ideal MHD test, which has the largest positive . Conversely, the nochem1e7 model, with constant ionisation fraction , gives the largest negative values and is mostly responsible for the lower bound of the envelope. In the region of the slow shock ( cm), however, it is instead the ideal model which sets the lower bound of the envelope and the nochem1e7 model which sets the upper bound.
Analogously, Figs. 9, 10, and 11 report, respectively, on the modulus of the magnetic field (), the temperature (), and the resistivity coefficient () as well as the relative differences with respect to the reference model.
9.3 The effect of modified chemistry
Chemistry plays a key role in the evolution of the shock because the abundances of the ions that control the Hall parameter , and hence the resistivity coefficient (see Sect. 6.1), are determined by the chemistry. Indeed, and provide the main interplay between chemistry and hydrodynamics (see Fig. 1). To understand which chemical processes are most influential to the shock evolution, we change the recombination efficiency (model arec), the electron sticking (models stick01 and stick1), or turn off the chemistry (nochem1e4, nochem1e5, nochem1e6, and nochem1e7). As already discussed, parameters that reduce the ionisation fraction should shift models towards stronger ambipolar diffusion.
9.3.1 Cation-electron recombination rate
In our model, cations only recombine with electrons via (Eq. 26). Positively-charged grains and electrons can “recombine”, but this is an aspect of the grain chemistry and sticking coefficient, which is discussed below. When we adopt an alternative (Eq. 50; the arec model), we note that the solution becomes “less ideal” relative to the reference model (e.g. Fig. 8). The recombination rate in the arec model is much more effective than the one used in the reference model. Thus, the arec model has a lower abundance of free electrons, which diminishes the global ionisation fraction and enhances the magnetic diffusion (Fig. 11).
Given our reduced network, wherein cations are represented by Mg+, Eq. (26) is the most appropriate recombination rate to use. Although the arec model demonstrates that one must be careful when choosing an effective recombination rate for reduced networks, Figs. 8 – 11 instead show that it is not the most important effect in determining the evolution and structure of the shock.
9.3.2 Electron-grain sticking coefficient
The electron-grain sticking coefficient, , dictates the likelihood that electrons attach to grains after a collision. This not only affects the abundance of free electrons, but also the fraction of negatively-charged grains. Since the grain-cation sticking coefficient is typically greater than the electron-cation rate (see Fig. 2), increasing the fraction of negatively charged grains then increases the probability that Mg+ recombines with grains.
Figure 12 shows the contributions of Mg+, e-, and g- to in the reference, stick01 (), and stick1 () models. Note that, since the fitting function for (Sect. 4.3) is of order 0.1 (see Fig. 6 in Bai 2011), the stick01 model is very similar to the reference model. An electron-grain sticking coefficient of , however, results in a decreased abundance of e- and subsequent increased abundance of g-. As can be seen in Fig. 13, the increase of g- sticking partners reduces the abundance of Mg+, but because electron-grain sticking is more prevalent than cation-grain sticking, there is still a net increase in g- grains. As Fig. 12 shows, negatively-charged grains are the most important contributor to . Thus, increasing the sticking coefficient decreases the magnetic resistivity and moves the system towards the ideal case (Figs. 8 – 11).
It is clear that the sticking coefficient plays an important role in determining the strength of the non-ideal terms, but we point out that its modelling is subject to significant uncertainties, such as in the depth of the potential well (see Sect. 4.3). For example, in the cases reported in Bai (2011), and for the temperature range of the present study, the sticking coefficient has values in the range for eV.
9.3.3 Constant ionisation fraction
The ionisation fraction is determined by the chemistry. Thus, if we turn off chemistry altogether and instead force a constant ionisation fraction, we naturally find quite different results relative to the reference model.
In models nochem1e4, nochem1e5, nochem1e6, and nochem1e7 the ionisation fraction is set to a constant to , respectively. In these cases, the chemical initial conditions remain unaltered during the evolution, which means , (see Appendix G); grains remain neutral, and electrons and Mg+ never recombine.
The evolution and structure of the shock is therefore controlled by and, when the ionisation fraction is large (e.g. nochem1e4), the results approach the ideal MHD limit. Conversely, when it is low (e.g. nochem1e7), the magnetic field is strongly diffused and nearly passive (Fig. 9). In fact, the models with constant ionisation fractions of and produce the largest deviations from the reference model and set the bounds of the gray envelopes in Figs. Fig. 8 – Fig. 11.
Evidently, a consistently calculated ionisation fraction is critical for obtaining a physically realistic shock structure and evolution (e.g. Flower et al., 1985). While it is true that the nochem1e6 model results are relatively similar to the reference model, this is only known because we first did the calculation consistently. As such, we caution others from using constant ionisation fractions when calculating non-ideal coefficients, unless it has already been established with a full calculation that this is a good approximation.
9.4 The effect of the cosmic ray parameters
In the present set up, since we do not include any external radiation, cosmic rays are the main driver of ionisation, and their effect is therefore of paramount importance. This is similar to the conditions at high column depths in a quiescent molecular cloud with little ongoing star formation.
9.4.1 Initial effective column density
The first parameter we modify is the initial effective column density , i.e, the assumed column density that the cosmic rays have travelled through before entering the simulation box at (see Fig. 5). The default value is cm*-2*, which is comparable to the accumulated column density from to cm (i.e. the position of the shock front at yr); given cm*-3* (the average density of the shocked gas), cm*-2* (Eq. 36). If we instead choose cm*-2* (model N5e20), now dominates over . Conversely, if we choose cm*-2* (model N5e22), the opposite is true. The relative importance of with respect to explains the behaviour of the N5e20 and N5e22 models in Figs. 8–11. In the first case, dominates, so the variation of column density along the shock is relevant, even more than it is for the default value ( cm*-2*; reference model). In the second case, dominates and is nearly ignorable. This is also clear from Fig. 14, where the ionisation rate in the N5e22 model is almost constant throughout the simulation box. Indeed, in Figs. 8–11 and Fig. 14, the N5e22 model is most similar to the cr16 model, which employs a constant cosmic ray ionisation rate of s*-1* (also see below).
9.4.2 Constant ionisation and a “low” spectrum
Next, we evolved shock models with a set of constant ionisation rates, using , and s*-1*, and labelled with cr indicating a fixed s*-1*. In general, since a larger generates a larger number of free electrons, and thus a higher ionisation rate, the closer to the ideal model the results will be. Analogously, when we use the “low” spectrum fit (model crlow), i.e., Eq. (37) with s*-1* and , we observe greater non-ideal behaviour relative to the reference model. We also observe that the crlow model lies between cr16 and cr17 (Fig. 14).
Evidently, the treatment of cosmic ray attenuation and subsequent ionisation rate plays a role in the shock structure and evolution. In particular, because cosmic rays control the ionisation fraction in our set up, they play an important role in determining the resistivity coefficients. Meanwhile, from Fig. 14, it is clear that, when including cosmic ray attenuation consistently, it is difficult to obtain an ionisation rate comparable to the canonical, constant rate of s*-1* (Spitzer & Tomasko, 1968), even if there is a substantial attenuating column between a region of interest and the source of cosmic rays. Even if one adopts a “low” energy CR spectrum (see Sect. 5.1), the resultant ionisation rate is still a factor of 2-3 above the canonical ionisation rate.
9.5 The effect of different dust parameters
9.5.1 Dust-to-gas mass ratio
As we already know from Sect. 9.3.2, charged grains play a key role in determining the non-ideal behaviour of the shock. Thus, if we decrease the dust-to-gas ratio from to (model d2g1e4), we expect that the contribution to from (negative) grains will decrease. A reduction in the amount of dust will also naturally decrease the probability that Mg+ and e- stick to grains. These effects are shown in Fig. 12, where it can be seen that decreasing the dust-to-gas ratio produces a large decrease in . In this case, is dominated by Mg+ while the contribution from g- grains is negligible. Consequently, the shock structure is similar to the ideal case.
Next, we consider a discontinuous dust-to-gas ratio with a very low value () in the initially upstream region (i.e. ), but a typical value () in the initially downstream region. This model is intended to mimic the propagation of a dust-free shock into a dense, cold, and dust-rich cloud. The upstream region of the d2g_step model ( cm; Fig. 12) is very similar to the same region in the d2g1e4 model. In contrast, the downstream region ( cm) is similar to the reference model, where . This behaviour suggests that the advection of dust (or lack thereof) can strongly affect and the shock structure. However, the partial overlap between d2g1e4 and reference models with respect to d2g_step indicates that the net effect is less trivial than the sum of two dust-to-gas ratios.
9.5.2 Grain size distribution
To understand the effect of the grain size distribution on the shock evolution, we now modify141414We do not vary , since with a power-law distribution the smaller grains comprise the largest total surface. , , and the bulk density . The impact of these parameters on is reported in Fig. 12. First, in amin1e6, we adopt a larger minimum grain size ( cm) relative to the reference model ( cm). With the removal of smaller grains, similar to d2g1e4, decreases and is now dominated by Mg+.
Analogously, in pexp25, if we adopt a shallower power-law exponent (; the reference model has ), the dust mass becomes more heavily distributed towards larger grains, with a net effect on that is similar, but slightly less evident, than in amin1e6. Evidently, small grains dominate and, in both cases, their removal results in a solution that tends toward the ideal case (albeit, not as strongly as in d2g1e4).
If we now adopt a steeper power-law exponent, (pexp50), the resulting shift of dust mass to smaller sizes decreases the abundances of e- and Mg+ while enhancing the fraction of negatively charged grains (see, e.g., stick1; Sect. 9.3.2). This is visible in Fig. 13, where the relative abundance of Mg+ decreases relative to the reference, and becomes comparable to the fraction of g- grains. The effect of the steeper power-law is thus a smaller overall value of (similar to stick1), but still higher than the pexp25 and amin1e6 models.
Finally, by increasing the bulk grain density from 3 to 10 g cm*-3* (model bulk10), we find that is somewhat reduced (relative to reference and similar to pexp50), but dominated by Mg+ instead of g- grains (Fig. 12). Since we are keeping the total dust mass constant, increasing the bulk density effectively decreases the number of grains, which results in less recombinations of cations and electrons with charged grains, and therefore larger abundances of these species (Fig. 13).
9.5.3 Grain-grain reactions
In the nogg model, we examine the effect of grain-grain reactions by removing them from the network. As can be seen in Figs. 8–11, 12, the effects on the shock structure and evolution are negligible. In the current context, grain-grain reactions are only marginally involved; the chemistry is dominated by the production of Mg+ and e- from H2 ionisation via cosmic rays, followed by the interaction of electrons and cations with grains to form g- and g+, which then eventually recombine with Mg+ to form H2. Similarly, as was also shown in M16, grains with charge do not play a key role in the chemistry.
9.6 The effect of changing the thermal processes
To better understand the temperature structure of the shock (Fig. 10), we compute the cooling time by combining Eqs. (13) and (14) and taking the time derivative (see Appendix H for details):
[TABLE]
We integrate this equation numerically151515Using the odeint solver from the scipy package. assuming typical values cm*-3*, s*-1*, and initial temperature K. The results are shown in Fig. 15.
We note that the cooling time follows (Eq. 23) and, given that we evolve the system for yr, it is not surprising that the gas decreases to K. The gas does not have time to cool further, however, and thus does not reach the equilibrium temperature where (which corresponds to a vertical line in Fig. 15, i.e., ). If we now reduce the cooling function by a factor of 10 ( in Fig. 15), the cooling time increases, and the temperature in the shock and upstream region increases (see also Fig. 10). Analogously, if we increase the cooling by a factor of 10 ( in Fig. 15), the gas naturally reaches lower temperatures ( K) in a shorter time.
This trend is confirmed in Fig. 10, where, for the cool01 model, the temperature is higher relative to the reference everywhere but in the quiescent downstream region. Indeed, the cool01 model produces the highest temperatures, in general, of all the models examined. For cool10, meanwhile, the opposite is true and, because the cooling time scale is now shorter, the quiescent downstream region even cools somewhat with respect to the initial conditions.
If we instead examine the effect of the cosmic ray heating rate on the cooling time, we find that the equilibrium temperature correlates with the ionisation rate . While it does not affect the cooling time scale where dominates, as can be seen in Fig. 15, an increased cosmic ray ionisation rate of s*-1* does raise the minimum temperature slightly, while decreasing the value to s*-1* decreases the equilibrium temperature to K.
That said, when the cosmic ray heating term is turned off entirely (model noheat), the impact on the temperature profile (see Fig. 10) is negligible, in contrast to what one would expect from Fig. 15. The temperature in models cr18 and cr15 (with constant cosmic ray ionisation rates of s*-1* and s*-1*, respectively) does, meanwhile, deviate from the reference. In fact, the effect of a constant cosmic ray ionisation rate on the temperature is not direct via cosmic ray heating but rather indirectly through the chemistry and MHD heating processes.
The temperature behaviour in the different models suggest that it is primarily the ambipolar diffusion heating that prevents the temperature from reaching the levels observed in the ideal MHD model, which indeed provide the lowest temperatures observed in any of the models considered here. To demonstrate this, in Fig. 16, we plot the the ambipolar diffusion heating rate, which is given by the spatial derivative of the third term of Eq. (9). Since and , the heating rate can be written as
[TABLE]
Comparing the ambipolar heating rate (Fig. 16) with the temperature (Fig. 10), it is clear that the trends observed in the temperature of the different models can be explained by heating due to ambipolar diffusion.
10 Conclusions
We have developed an open-source161616https://bitbucket.org/tgrassi/lemongrab/ 1D, time-implicit, MHD code that includes ambipolar diffusion, chemistry, dust, and consistent cosmic-ray propagation. The code has been employed to explore the evolution of an oblique magnetic shock in order to understand the effects of the different microphysical parameters on the results. We have shown that, even in a simple application, microphysics plays a crucial role, and that the uncertainties are manifold.
Our main findings can be summarised as follows:
- •
In the absence of external radiation, cosmic rays plays a key role by controlling the ionisation level of the gas (via the chemistry) and hence determining the amplitude of the non-ideal MHD effects. In this study, we find that the widely-used cosmic-ray ionisation rate of s*-1* results in up to relative error in the density and in the magnetic field strength after yr relative to a self-consistent treatment of propagation.
- •
Dust is responsible for a large fraction of the neutral-ion momentum exchange. Reducing the dust-to-gas mass ratio from to results in a relative change in the density and a relative change in the magnetic field.
- •
The gas density is strongly affected by the parameters of the grain size distribution. Increasing the lower size limit of the distribution to cm from cm produces a change of in the density.
- •
Chemistry is also paramount. When turned off, the ionisation fraction is arbitrary (and constant in time), which affects the resistivity. A low ionisation fraction of results in very strong ambipolar diffusion while, in contrast, values of and produce results that are very similar to the ideal MHD case.
- •
Reducing the cosmic-ray ionisation rate increases the temperature in certain regions, not because the direct cosmic-ray heating decreases, but because the ambipolar diffusion heating increases in these regions as a result of the lower ionisation. Analogously, higher ionisation rates (i.e. more highly ionised gas) show lower temperatures. This effect could be limited to the present set up, but due to its potential consequences, is worth exploring in more complex 3D simulations of pre-stellar cores and other environments.
- •
We find almost no change in the results when direct cosmic-ray heating is turned off or when grain-grain reactions are removed.
We remark that, given the complexity of the processes discussed in this paper and the interactions between them, our findings are particularly valid within the current set-up, and should not be arbitrarily generalised. For example, models with higher dimensions, complex chemistry, more realistic cooling functions, or other additional physics could change the importance of the different physical processes. To understand the interplay between the physical processes, the chemical model employed in this study was intentionally kept simple; determining the effects of a network with thousands of reactions, where many rates coefficients are uncertain, is beyond the aims of this paper. Nevertheless, the tests presented here show that self-consistent microphysics cannot be ignored in the context of non-ideal MHD simulations, and the choice of processes and parameters (mainly chemistry, cosmic rays, and dust) significantly affects the evolution of the dynamics.
Acknowledgement
We acknowledge Y. Fujii, O. Gressel, C. McNally, and R. Xu for useful comments and discussions. MP acknowledges funding from the European Unions Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No 664931. The research leading to these results has received funding from the Danish Council for Independent Research through a Sapere Aude Starting Grant to TH. The Centre for Star and Planet Formation is funded by the Danish National Research Foundation (DNRF97). This research was supported by the DFG cluster of excellence “Origin and Structure of the Universe” (http://www.universe-cluster.de/). This work was funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) - Ref no. FOR 2634/1 ER685/11-1. We would also like to thank the referee T. Hartquist for bringing additional relevant references to our attention.
Appendix A Algorithm testing
To validate the code implementation, we present here results for two standard MHD benchmarks. First, a Brio-Wu shock tube (Brio & Wu, 1988) with ideal MHD and, second, a C-shock tube (Masson et al., 2012) with MHD and ambipolar diffusion.
A.1 Brio-Wu MHD shock
To test the (ideal) MHD, we performed a Brio-Wu shock test (Brio & Wu, 1988) with , except for where and otherwise, , , . We used 1024 grid points. Note that for Ramses we employed rational units, i.e. . In Fig. 17, at , we present our results. We also compared our HLL solver with the Ramses HLL and HLLD solvers, respectively with no slope limiter (slope_type=0) and MinMod limiter (slope_type=1) (Teyssier, 2002; Fromang et al., 2006; Teyssier et al., 2006). As expected, the solver without slope limiter is slightly more diffusive. We note that our results are indistinguishable from those obtained with the Ramses solver without slope limiter.
A.2 Non-ideal MHD C-shock
To determine if our ambipolar diffusion implementation is functioning properly, we benchmarked our code against the non-ideal MHD, non-isothermal C-shock presented in Masson et al. (2012, Sect. 2.4.2). The initial conditions are , except for where and otherwise, , , , , . We used 400 grid points. Note that Masson et al. (2012) use rational units, hence . We evolve the system until the shock reaches a stationary state. In Fig. 18, we compare our results at to the analytic solution of Masson et al. (2012). As can be seen, other than a very slight difference in the position of the shock, we accurately reproduce the analytic solution.
Appendix B Grain size distribution properties
In this study, the grain size distribution is given by between sizes and . The average grain mass is thus
[TABLE]
and from whence we compute the corresponding dust number density needed by the chemistry:
[TABLE]
where and are the mass densities of gas and dust, respectively, is the dust mean molecular weight, and is the dust-to-gas mass ratio.
To better compare our results with models that employ a constant grain size, we also derive the average surface area
[TABLE]
With , and to cm, this corresponds to an average grain size of cm.
Appendix C Polynomial fitting functions for grain reactions
Here, we report the fitting functions for the reaction rates that involve dust grains discussed in Sect. 4.2. The grain distribution used here is with and to cm. The fitting functions are of the form
[TABLE]
with in K, in cm3 s*-1*, and coefficients given in Tab. 6. Fits are valid in the range K to K.
Appendix D Evaluating the charged grain–H2 momentum transfer rate
Eq. (47) evaluated for , cm, cm, , and cm3 is equal to
[TABLE]
where , , and . All coefficients are in cgs units and the resulting rate is in .
Appendix E Momentum transfer collisions
In Fig. 19, we report, for reference, the different processes described in Pinto & Galli (2008, henceforth P08b). Colours indicate the type of interaction and the corresponding equation number in P08b. Magnetic fields only interact with neutrals indirectly via charged colliders. The processes which are included in this work are enclosed by a dashed box. The “fit/other” label denotes fits to experiments or theoretical calculations (see Tab. 1 of P08b); “Langevin” and “Lgv” refer to the Langevin model (see also our Sect. 6.2.1); “H.Sphere” and “H.Sph” refer to the hard sphere approximation and means the rate equations are multiplied by where is the sticking coefficient; “Coulomb” is the standard Coulomb momentum transfer rate and the equations employed in P08b for these interactions is indicated. We refer the reader to P08b and references therein for additional details.
Appendix F Additional details for the Marchand et al. (2016) benchmark
In this Appendix, we include additional details to aid the interested reader in reproducing the results of M16.
The chemical network employed by M16 is reported in their Tab. A1 and includes the same reactions as in UN90. For the sake of completeness, however, the network is presented in Tab. 7. Here, we also report on their assumptions:
- •
All molecular ions except H (i.e. O, HCO+, OH+, O2H+, CH, and CO+) are represented by m+.
- •
Metallic, atomic cations (excluding oxygen and carbon) are indicated with M+.
- •
M and m are the neutral counterparts to M+ and m+, respectively.
- •
When O+ is produced, it immediately turns into OH+ (i.e. m+) by reacting with H2.
- •
Analogously, when H is produced (due to cosmic ray ionisation; see their Tab. 2), it turns immediately into H.
- •
CO and C are the same species, since all neutral carbon is assumed to be in the form of CO.
- •
Neutral products are ignored, since their reservoir is assumed to be constant with time.
The network thus includes the following species: e-, O, O2, M, M+, H2, C, He, He+, m, m+, and H. Neutral (g0) and charged dust (g±) is also included. Given the assumptions listed above, we obtain Tab. 7, the chemical network solved in M16. Note that, as written, mass is not conserved, but charge is.
The only difference between M16 and UN90 is given by the additional rates (A.1)-(A.3) in M16, which are taken from Eqs. (22)-(24) in Pneuman & Mitchell (1965), although the coefficients in those expressions are different from the ones reported by M16. Based on the code released by the authors171717Commit 2b23528., these rates should in fact be
[TABLE]
and are relevant when K and cm*-3*.
Dust evaporates as explained in Sect. 2.4.2 of M16 (see their Fig. 2); this behaviour can be reproduced by scaling the dust-to-gas mass ratio by a factor
[TABLE]
where
[TABLE]
with , , and the sum is over grain species carbon (with parameters , (MgFe)SiO4 , and Al2O3 .
We tested the validity of our assumptions using Krome (Grassi et al., 2014). The initial conditions are given in Tab. A2 of M16, and the dust is initially neutral with . In Krome, HCO*(+)* and Mg*(+)* are used as proxies for m*(+)* and M*(+), and we impose for the neutrals. We modelled the system until all species reach equilibrium. Empirically, we used yr for models with cm-3* and yr otherwise. We also imposed
[TABLE]
when cm*-3* (i.e. when Eq. (F) dominates) in order to avoid an over-production of ions given the fact that we impose .
The model results are identical to the results reported in M16.
Appendix G Initial abundances
We derive the initial abundances for each species from the total mass density (), the dust-to-gas mass ratio (), and the ionisation fraction () as follows:
[TABLE]
which guarantees and global charge conservation.
Appendix H Cooling time
To compute the cooling time of a static volume of gas, we first derive its temperature evolution given an initial temperature , assuming a density and a cosmic ray ionisation rate . By equating Eq. (13) and Eq. (14), we find
[TABLE]
where is the sum of kinetic and magnetic energy, and we assume both to be constant in time for the current purpose. The time derivative of the temperature is thus
[TABLE]
Since we are considering a static volume of gas, i.e., all quantities are spatially constant, from Eq. (9) we obtain , followed by
[TABLE]
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Armitage (2011) Armitage P. J., 2011, \araa , 49, 195 · doi ↗
- 2Ashmore et al. (2010) Ashmore I., van Loo S., Caselli P., Falle S. A. E. G., Hartquist T. W., 2010, \aap , 511, A 41 · doi ↗
- 3Bai (2011) Bai X.-N., 2011, \apj , 739, 50 · doi ↗
- 4Balbus & Hawley (1998) Balbus S. A., Hawley J. F., 1998, Reviews of Modern Physics , 70, 1 · doi ↗
- 5Batygin et al. (2013) Batygin K., Stanley S., Stevenson D. J., 2013, \apj , 776, 53 · doi ↗
- 6Brio & Wu (1988) Brio M., Wu C. C., 1988, Journal of Computational Physics , 75, 400 · doi ↗
- 7Cesarsky & Volk (1978) Cesarsky C. J., Volk H. J., 1978, \aap , 70, 367
- 8Chapman & Wardle (2006) Chapman J. F., Wardle M., 2006, \mnras , 371, 513 · doi ↗
