This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Details of a Hybrid Model for the Interaction between the Solar Wind and Planets Implemented in FLASH

M. Holmström, and X.-D. Wang Swedish Institute of Space Physics, PO Box 812, SE-98128 Kiruna, Sweden. (matsh@irf.se)
(September 25, 2015)
Abstract

A hybrid plasma solver treats ions as particles and electrons as a fluid. We have implemented a parallel hybrid solver in the FLASH open source software framework. The solver has been applied to studies of the interaction between the solar wind and planets. Here we discuss the implementation of different model features, such as permanent magnetic fields, ionospheric chemistry, and exospheres. Mars is used as an example.

1 Introduction to the hybrid model

In the hybrid approximation, ions are treated as particles, and electrons as a massless fluid. In what follows we use SI units. The trajectory of an ion, 𝐫(t)\mathbf{r}(t) and 𝐯(t)\mathbf{v}(t), with charge qq and mass mm, is computed from the Lorentz force,

d𝐫dt=𝐯,d𝐯dt=qm(𝐄+𝐯×𝐁),\frac{\displaystyle d\mathbf{r}}{\displaystyle dt}=\mathbf{v},\quad\frac{\displaystyle d\mathbf{v}}{\displaystyle dt}=\frac{\displaystyle q}{\displaystyle m}\left(\mathbf{E}+\mathbf{v}\times\mathbf{B}\right),

where 𝐄=𝐄(𝐫,t)\mathbf{E}=\mathbf{E}(\mathbf{r},t) is the electric field, and 𝐁=𝐁(𝐫,t)\mathbf{B}=\mathbf{B}(\mathbf{r},t) is the magnetic field. From now on we do not write out the dependence on 𝐫\mathbf{r} and tt. The electric field is given by

𝐄=1ρI(𝐉I×𝐁+μ01(×𝐁)×𝐁pe)+ημ0×𝐁,\mathbf{E}=\frac{\displaystyle 1}{\displaystyle\rho_{I}}\left(-\mathbf{J}_{I}\times\mathbf{B}+\mu_{0}^{-1}\left(\nabla\times\mathbf{B}\right)\times\mathbf{B}-\nabla p_{e}\right)+\frac{\eta}{\mu_{0}}\nabla\times\mathbf{B}, (1)

where ρI\rho_{I} is the ion charge density, 𝐉I\mathbf{J}_{I} is the ion current density, pep_{e} is the electron pressure, η\eta is the resistivity, and μ0=4π107\mu_{0}=4\pi\cdot 10^{-7} is the magnetic constant. Then Faraday’s law is used to advance the magnetic field in time,

𝐁t=×𝐄.\frac{\displaystyle\partial\mathbf{B}}{\displaystyle\partial t}=-\nabla\times\mathbf{E}.

Note that the unknowns are the position and velocity of the ions, and the magnetic field on a grid, not the electric field, since it can always be computed from (1). As is common for hybrid models, we use the Darwin approximation (Schmitz and Grauer, 2006), i.e. we neglect the displacement current in Ampere’s law, and the current then is 𝐉=μ01×𝐁\mathbf{J}=\mu_{0}^{-1}\nabla\times\mathbf{B}. This removes waves that propagate with the speed of light, cc. For the problems we study the velocities are small compared to cc and the transport of energy by electromagnetic radiation can be neglected. This makes the approximation reasonable for our purposes. If the Darwin approximation is not used we would have the severe restriction on the time step of Δt<Δx/c\Delta t<\Delta x/c.

We have implemented a parallel hybrid solver in the FLASH open source software framework (Fryxell et al., 2000). Further details on the hybrid model used here, and the discretization, can be found in Holmström (2011a, b, 2013). The solver has been applied to studies of the interaction between the solar wind and planets, e.g., the Moon (Holmström et al., 2012).

In the following sections we present some details of this hybrid model. How we handle permanent magnetic fields, how ionospheric chemistry for Mars can be included in the model, and some analytical expressions for Mars’ exosphere.

2 Permanent magnetic fields

In many applications there is a background magnetic field that does not change over time. An example can be the internal dipole field of a planet, or the solar wind magnetic field. For simplicity and accuracy over long time runs we can split the field into a time varying part and a constant in time part (Tanaka, 1995). We can then solve for 𝐁(𝐫,t)=𝐁0(𝐫)+Δ𝐁(𝐫,t)\mathbf{B}(\mathbf{r},t)=\mathbf{B}_{0}(\mathbf{r})+\Delta\mathbf{B}(\mathbf{r},t). Note that Δ𝐁\Delta\mathbf{B} does not need to be small. To ensure that 𝐁=0\nabla\cdot\mathbf{B}=0 we can define 𝐁0(𝐫)=ψ(𝐫)\mathbf{B}_{0}(\mathbf{r})=-\nabla\psi(\mathbf{r}), then we also have that ×𝐁0=0\nabla\times\mathbf{B}_{0}=0. Inserting this into the hybrid equations, we find that 𝐁0\mathbf{B}_{0} then only appears in the Lorentz force and in the first term of the electric field expression. All other terms in the electric field expression involving 𝐁0\mathbf{B}_{0} are zero since 𝐁0\mathbf{B}_{0} is rotation free.

To implement this in the hybrid solver it is important that 𝐁0=0\nabla\cdot\mathbf{B}_{0}=0 also in the discrete sense. This can be ensured by computing the background field from the potential, 𝐁0(𝐫)=ψ(𝐫)\mathbf{B}_{0}(\mathbf{r})=-\nabla\psi(\mathbf{r}) using the same finite difference approximation of the gradient that we use for the divergence. In our case we use the same centered finite difference stencil. This ensures that the discrete 𝐁0=0\nabla\cdot\mathbf{B}_{0}=0 down to round-off errors. Note that 𝐁0\mathbf{B}_{0} need only be computed once, at the start of the simulation, and stored.

As an example, the potential for a dipole is

ψ(𝐫)=μ04π𝐦𝐫r3=𝐦𝐫r3107 [T m].\psi(\mathbf{r})=\frac{\mu_{0}}{4\pi}\frac{\mathbf{m}\cdot\mathbf{r}}{r^{3}}=\frac{\mathbf{m}\cdot\mathbf{r}}{r^{3}}\cdot 10^{-7}\mbox{ [T m].}

Then

𝐁d=ψ(𝐫)=μ04πr3(3𝐫(𝐦𝐫)r2𝐦)=107r3(3𝐫(𝐦𝐫)r2𝐦).\mathbf{B}_{d}=-\nabla\psi(\mathbf{r})=\frac{\mu_{0}}{4\pi r^{3}}\left(3\frac{\mathbf{r}\left(\mathbf{m}\cdot\mathbf{r}\right)}{r^{2}}-\mathbf{m}\right)=\frac{10^{-7}}{r^{3}}\left(3\frac{\mathbf{r}\left(\mathbf{m}\cdot\mathbf{r}\right)}{r^{2}}-\mathbf{m}\right).

Here 𝐦\mathbf{m} is the dipole moment [T m3]. The background field from a dipole located at 𝐫c\mathbf{r}_{c} then is 𝐁0(𝐫)=𝐁d(𝐫𝐫c)\mathbf{B}_{0}(\mathbf{r})=\mathbf{B}_{d}(\mathbf{r}-\mathbf{r}_{c}).

For a conducting sphere of radius RR in a uniform field 𝐁u\mathbf{B}_{u}, currents in the sphere will expel the external field such that the component normal to the sphere surface is zero. The resulting total field outside the sphere can be seen as the sum of the external field and a dipole at the center of the sphere directed opposite to the external field. The magnitude of the required dipole moment is m=107R3Bu/2m=10^{7}R^{3}B_{u}/2.

3 Ionospheric chemistry for Mars

For Mars ionosphere one can consider only the major ion species CO+2{}_{2}^{+}, O+, and O+2{}_{2}^{+}. A table of the most relevant chemical reactions involving these species was presented by Ma et al. (2004). A similar table is provided by Brecht and Ledvina (2012), with the addition of oxygen electron impact ionization, e+O \rightarrow O++e+e. The different reactions are presented in Figure 1 and in Table 1. We also consider the hydrogen exosphere, but H only occur for photoionization and charge exchange.

We can note that all reactions depend only on one ion species, so we can adopt a Monte Carlo approach where for each meta-ion we can compute the probability that it undergo a reaction and then randomly convert it to another ion. Recombination reactions also depend on the electron density (total charge density) so we have to get that value from the grid.

The initial ion densities are important. We disregard charge exchange for initial distributions.

Refer to caption
Figure 1: An illustration of the ionospheric chemical reactions considered here for the four ion species, following Ma et al. (2004) and Brecht and Ledvina (2012). Sources of each ion species are shown by incoming arrows. Outgoing arrows show losses and connecting arrows show how one species is transformed into another. Red color for photoionization and green for recombination with an electron. The rate for each reaction is ki=ki(𝐫),i=1,,11k_{i}=k_{i}(\mathbf{r}),i=1,\ldots,11, and values are given in Table 1. Some rates depend on photon flux, neutral temperatures, and electron temperature.

Here square brackets denote number density of a species, e.g., [A][A] m-3 for a species AA. We consider the density of neutrals as constant in radial background profiles

[H](r),[O](r),[CO2](r)[\textrm{H}](r),[\textrm{O}](r),[\textrm{CO}_{2}](r)

where the density only depends on distance, rr, from the center of Mars. So the neutral atmosphere is an unchanging source and sink. This is an acceptable approximation at Mars to large distances from the planet since the neutral densities are so much larger than the ion densities.

The unknowns here are the ion number densities as a function of position and time

[H+](𝐫,t),[O+](𝐫,t),[O2+](𝐫,t),[CO2+](𝐫,t).[\textrm{H}^{+}](\mathbf{r},t),[\textrm{O}^{+}](\mathbf{r},t),[\textrm{O}_{2}^{+}](\mathbf{r},t),[\textrm{CO}_{2}^{+}](\mathbf{r},t).

We will also need the electron number density

[e](𝐫,t)=[H+]+[O+]+[O2+]+[CO2+].[e](\mathbf{r},t)=[\textrm{H}^{+}]+[\textrm{O}^{+}]+[\textrm{O}_{2}^{+}]+[\textrm{CO}_{2}^{+}].

Using the reactions in Ma et al. (2004) we can then write the evolution of ion number densities at each position 𝐫\mathbf{r} (no transport is considered) as

ddt[H+]\displaystyle\frac{\displaystyle d}{\displaystyle dt}[\textrm{H}^{+}] =\displaystyle= k3[H]+k9[H][O+]k10[O][H+]\displaystyle k_{3}[\textrm{H}]+k_{9}[\textrm{H}][\textrm{O}^{+}]-k_{10}[\textrm{O}][\textrm{H}^{+}]
ddt[O+]\displaystyle\frac{\displaystyle d}{\displaystyle dt}[\textrm{O}^{+}] =\displaystyle= k2[O]+k5[O][CO2+]k6[CO2][O+]k9[H][O+]+k10[O][H+]+k11[O][e]\displaystyle k_{2}[\textrm{O}]+k_{5}[\textrm{O}][\textrm{CO}_{2}^{+}]-k_{6}[\textrm{CO}_{2}][\textrm{O}^{+}]-k_{9}[\textrm{H}][\textrm{O}^{+}]+k_{10}[\textrm{O}][\textrm{H}^{+}]+k_{11}[\textrm{O}][\textrm{e}]
ddt[CO2+]\displaystyle\frac{\displaystyle d}{\displaystyle dt}[\textrm{CO}_{2}^{+}] =\displaystyle= k1[CO2](k4+k5)[O][CO2+]k7[CO2+][e]\displaystyle k_{1}[\textrm{CO}_{2}]-(k_{4}+k_{5})[\textrm{O}][\textrm{CO}_{2}^{+}]-k_{7}[\textrm{CO}_{2}^{+}][\textrm{e}]
ddt[O2+]\displaystyle\frac{\displaystyle d}{\displaystyle dt}[\textrm{O}_{2}^{+}] =\displaystyle= k4[O][CO2+]+k6[CO2][O+]k8[O2+][e]\displaystyle k_{4}[\textrm{O}][\textrm{CO}_{2}^{+}]+k_{6}[\textrm{CO}_{2}][\textrm{O}^{+}]-k_{8}[\textrm{O}_{2}^{+}][\textrm{e}]

Some of the constants kik_{i} also depend on ion and electron temperature, TiT_{i} and TeT_{e}. We list the coefficients in Table 1. All coefficients except for k11k_{11} come from Krasnopolsky (2002). The coefficient k11k_{11} is re-cited from Roberson et al. (2007).

Table 1: Table of ion species, the reactions considered, the rate for each reaction, and the symbol used for the rate.
Species Reaction aRate Symbol
O+ O+hν+h\nu\rightarrowO++e{}^{+}+e b8.89E-8,  2.73E-7 s-1 k2k_{2}
O+CO2++\mathrm{CO}_{2}^{+}\rightarrowO++{}^{+}+CO2 9.6E-11 k5k_{5}
O+H+{}^{+}\rightarrowO++{}^{+}+H c7.3E-10(T/300)0.23e226/T(T/300)^{0.23}e^{-226/T} k10k_{10}
O+e+e\rightarrowO++e+e{}^{+}+e+e ef1.29E-11Te0.7e1.58E5/TeT_{e}^{0.7}e^{-1.58E5/T_{e}} k11k_{11}
O++{}^{+}+CO2O2++{}_{2}\rightarrow\mathrm{O}_{2}^{+}+CO 9.4E-10 k6k_{6}
O++{}^{+}+H\rightarrowH++{}^{+}+O c5.7E-10(T/300)0.36(T/300)^{0.36} k9k_{9}
H+ H+hν+h\nu\rightarrowH++e{}^{+}+e b5.58E-8,  8.59E-8 s-1 k3k_{3}
O++{}^{+}+H\rightarrowH++{}^{+}+O c5.7E-10(T/300)0.36(T/300)^{0.36} k9k_{9}
H++{}^{+}+O\rightarrowO++{}^{+}+H c7.3E-10(T/300)0.23e226/T(T/300)^{0.23}e^{-226/T} k10k_{10}
O2+\mathrm{O}_{2}^{+} O+CO2+O2+++\mathrm{CO}_{2}^{+}\rightarrow\mathrm{O}_{2}^{+}+CO 1.64E-10 k4k_{4}
CO+2{}_{2}+O+O2++{}^{+}\rightarrow\mathrm{O}_{2}^{+}+CO 9.4E-10 k6k_{6}
O2++e\mathrm{O}_{2}^{+}+e\rightarrow O+O d2E-7(300/Te)0.5(300/T_{e})^{0.5} k8k_{8}
CO2+\mathrm{CO}_{2}^{+} CO+2hνCO2++e{}_{2}+h\nu\rightarrow\mathrm{CO}_{2}^{+}+e b2.47E-7,  7.3E-7 s-1 k1k_{1}
CO2++\mathrm{CO}_{2}^{+}+O\rightarrowO++{}^{+}+CO2 9.6E-11 k5k_{5}
CO2++\mathrm{CO}_{2}^{+}+OO2++\rightarrow\mathrm{O}_{2}^{+}+CO 1.64E-10 k4k_{4}
CO2++e\mathrm{CO}_{2}^{+}+e\rightarrow CO+O d3.8E-7(300/Te)0.5(300/T_{e})^{0.5} k7k_{7}

ain cm3s-1, unless specified. bsolar min., solar max. cTT the neutral temperature in K. dTeT_{e} the electron temperature in K.

Table 2: Table of reaction times when considering individual ions in a Monte Carlo approach. The number density of species MM is denoted [M][M] and is given in cm-3
Reaction Effect Time
O++CO2O2+{}_{2}\rightarrow\mathrm{O}_{2}^{+}+CO O+ converted to O+2{}_{2}^{+} (k6[CO2])1(k_{6}\cdot[\mathrm{CO}_{2}])^{-1}
O++{}^{+}+H\rightarrowH++{}^{+}+O O+ converted to H+ (k9[H])1(k_{9}\cdot[\mathrm{H}])^{-1}
H++{}^{+}+O\rightarrowO++{}^{+}+H H+ converted to O+ (k10[O])1(k_{10}\cdot[\mathrm{O}])^{-1}
O2++e\mathrm{O}_{2}^{+}+e\rightarrowO+O Loss of O2+\mathrm{O}_{2}^{+} (k8[e])1(k_{8}\cdot[e])^{-1}
CO2++\mathrm{CO}_{2}^{+}+O\rightarrowO++{}^{+}+CO2 CO2+\mathrm{CO}_{2}^{+} converted to O+ (k5[O])1(k_{5}\cdot[\mathrm{O}])^{-1}
CO2++\mathrm{CO}_{2}^{+}+OO2++\rightarrow\mathrm{O}_{2}^{+}+CO CO2+\mathrm{CO}_{2}^{+} converted to O2+\mathrm{O}_{2}^{+} (k4[O])1(k_{4}\cdot[\mathrm{O}])^{-1}
CO2++e\mathrm{CO}_{2}^{+}+e\rightarrowCO+O Loss of CO2+\mathrm{CO}_{2}^{+} (k7[e])1(k_{7}\cdot[e])^{-1}

The chemistry can be implemented using a Monte Carlo approach. Each existing ion in the simulation has an average time for each reaction. If we denote such a time τ\tau, after each time step, for each meta-particle, we draw a random time from an exponential distribution with mean τ\tau. The event occur if this time is smaller than the time step. For photoionization these times are listed in Table 1. The times for the other reactions are listed in Table 2.

At the beginning of the simulation we could start with no ionospheric ions and let them evolve over time using the Monte Carlo approach. It could however take too long time to reach a steady state. We could instead initialize the ionospheric densities in our simulation model to values close to the steady state. Exact values are not needed since ion transport will anyway change the state over time. Then we need to compute the steady state number densities of ions. This can be done by integration in time until a steady state is reached Brecht and Ledvina (2012). Alternatively, setting the time derivatives to zero above gives us a system of non-linear equations, the solution of which is the steady state solution. The equations are non-linear due to the presence of the electron density in the equations. It is not possible to compute a simple analytical solution to the above equations. It is however possible to find the solution numerically. This is similar to using an implicit in time solver to compute the steady state solution.

4 Mars’ exosphere

There are very few measurements of the hydrogen exosphere of Mars, all of which are UV remote sensing experiments (Anderson and Hord, 1971; Anderson, 1974, 1976; Chaufray et al., 2008; Feldman et al., 2011). Among these experiments, most observations were been done with the Lyman-α\alpha line except for the Rosetta/ALICE observation (Feldman et al., 2011), that employed the Lyman-β\beta line as well. Although the Lyman-α\alpha emission is the strongest (250\approx 250 times stronger than that of Lyman-β\beta), it is not optically thin below 10000 km altitude (Anderson, 1976; Feldman et al., 2011), meaning that one has to model the radiative transfer processes in the hydrogen exosphere to resolve the density profile, and the result is usually not unique. The density profiles resolved from Lyman-α\alpha observations consist of two components: a cold or thermal population with a temperature of 200\approx 200 K at the exobase, consistent with Chamberlain’s theory of exosphere formation, and a hot or supra-/non thermal population with a temperature of more than 500 K at the exobase, the production mechanism of which is yet unclear. The Lyman-β\beta line, on the other hand, is optically thin except for the lowest altitudes at the planetary limb. This allows to interpret the emission intensity by the simple integration along the line of sight therefore the density profile is better constrained. The altitude profiles derived by the Lyman-β\beta observation does not include the hot population. In our current study we take the one from the Lyman-β\beta line observation by Rosetta/ALICE due to its more straightforward physics and less peculiarity.

4.1 Implementation of the three components of the exosphere

We use the Rosetta/ALICE measurements of the hydrogen and oxygen exospheres to construct a spherically symmetric exosphere model for current study. Feldman et al. (2011) provided tabulated density profiles for hydrogen, cold oxygen, and hot oxygen populations above 200 km. For each population, we first interpolate original profile of coarse (Δd\Delta d = 200 km) altitude resolution to that with a finer resolution (Δd<20km\Delta d<20km). Then we apply polynomial fitting to the logarithm of the density as a function of altitude within the altitude range shown in Feldman et al. (2011). Below 200 km the density is set to zero. Above the upper limit of the altitude range, we assume that the density decreases exponentially with the scale height determined by the highest 4 points of the interpolated density profiles. The formula is (all units are in SI unit)

log10(n(h))=i=05aihi\log_{10}(n(h))=\sum^{5}_{i=0}a_{i}\cdot h^{i} (2)
Table 3: Table of coefficients for the expression (2) of number density as a function of height above Mars’ surface. The height range for each set of coefficients are also given.
a0a_{0} a1a_{1} a2a_{2}
H, 200-35000 km 11.376328 -5.9864716e-07 5.2802149e-14
H, >35000>35000 km 8.4164271 -3.5031295e-08
Cold O, 200-1200 km 16.272228 -1.4563270e-05 2.6508755e-12
Cold O, >1200>1200 km 13.329357 -8.9676294e-06
Hot O, 200-1400 km 11.456117 -2.3702565e-06 4.0228317e-13
Hot O, >1400>1400 km 10.817852 -1.3562674e-06
a3a_{3} a4a_{4} a5a_{5}
H, 200-35000 km -2.6454801e-21 6.5495128e-29 -6.2475058e-37

5 Conclusions

We have presented the implementation of several model details for a parallel hybrid solver in the FLASH open source software framework. First, an inclusion of permanent magnetic fields such that the divergence of the magnetic field is ensured to be zero in the discrete sense was presented. Secondly, a Monte Carlo algorithm for including ionospheric chemistry in the model is introduced, along with reaction times from the existing literature. Finally, an analytical fit for Mars hydrogen and oxygen exosphere, based on Rosetta observations, is presented.

Acknowledgements

This research was conducted using resources provided by the Swedish National Infrastructure for Computing (SNIC) at the High Performance Computing Center North (HPC2N), Umeå University, Sweden. The software used in this work was in part developed by the DOE NNSA-ASC OASCR Flash Center at the University of Chicago.

References

  • Anderson and Hord (1971) Anderson, D. E. and Hord, C. W. 1971, Journal of Geophysical Research, 76, 6666
  • Anderson (1974) Anderson, D. E. 1974, Journal of Geophysical Research, 79, 1513
  • Anderson (1976) Anderson, D. E. 1976, Journal of Geophysical Research, 81, 1213
  • Brecht and Ledvina (2012) Brecht, S. H. and Ledvina, S. A. 2012, Earth Planets Space, 64, 165
  • Chaufray et al. (2008) Chaufray, J. Y., et al. 2008, Icarus, 195, 598
  • Feldman et al. (2011) Feldman, P. D., et al. 2011, Icarus, 214, 394
  • Fryxell et al. (2000) Fryxell, B., et al. 2000, The Astrophysical Journal Supplement Series, 131, 273
  • Harned (1982) Harned, D. S. 1982, Journal of Computational Physics, 47, 452
  • Hewett (1980) Hewett, D. W. 1980, Journal of Computational Physics, 38, 378
  • Holmström (2011a) Holmström, M. 2011a, in Proceedings of ENUMATH 2009 (Springer), 451. ArXiv:0911.4435
  • Holmström (2011b) Holmström, M. 2011b, in Numerical modeling of space plasma flows (ASTRONUM-2010), ASP conference series, 444, 211 ArXiv:1010.3291
  • Holmström et al. (2012) Holmström, M., et al. 2012, Earth Planets Space, 64, 237
  • Holmström (2013) Holmström, M. 2013, in Numerical modeling of space plasma flows (ASTRONUM-2012), ASP conference series, 474, 202 ArXiv:1010.3291
  • Krasnopolsky (2002) Krasnopolsky, V. A. 2002, Journal of Geophysical Research, 107, E12, 11
  • Ma et al. (2004) Ma, Y., et al. 2004, Journal of Geophysical Research, 109, A07211
  • Roberson et al. (2007) Roberson, G., et al. 2007, Brazilian Journal of Physics, 37, 457
  • Schmitz and Grauer (2006) Schmitz, H., and Grauer, R., 2006, Journal of Computational Physics, 214, 2, 738
  • Tanaka (1995) Tanaka, T. 1995, Journal of Geophysical Research, 100, A7, 12057