Details of a Hybrid Model for the Interaction between the Solar Wind and Planets Implemented in FLASH
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, and , with charge and mass , is computed from the Lorentz force,
where is the electric field, and is the magnetic field. From now on we do not write out the dependence on and . The electric field is given by
(1) |
where is the ion charge density, is the ion current density, is the electron pressure, is the resistivity, and is the magnetic constant. Then Faraday’s law is used to advance the magnetic field in time,
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 . This removes waves that propagate with the speed of light, . For the problems we study the velocities are small compared to 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 .
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 . Note that does not need to be small. To ensure that we can define , then we also have that . Inserting this into the hybrid equations, we find that 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 are zero since is rotation free.
To implement this in the hybrid solver it is important that also in the discrete sense. This can be ensured by computing the background field from the potential, 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 down to round-off errors. Note that need only be computed once, at the start of the simulation, and stored.
As an example, the potential for a dipole is
Then
Here is the dipole moment [T m3]. The background field from a dipole located at then is .
For a conducting sphere of radius in a uniform field , 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 .
3 Ionospheric chemistry for Mars
For Mars ionosphere one can consider only the major ion species CO, O+, and O. 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 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.

Here square brackets denote number density of a species, e.g., m-3 for a species . We consider the density of neutrals as constant in radial background profiles
where the density only depends on distance, , 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
We will also need the electron number density
Using the reactions in Ma et al. (2004) we can then write the evolution of ion number densities at each position (no transport is considered) as
Some of the constants also depend on ion and electron temperature, and . We list the coefficients in Table 1. All coefficients except for come from Krasnopolsky (2002). The coefficient is re-cited from Roberson et al. (2007).
Species | Reaction | aRate | Symbol |
---|---|---|---|
O+ | OO | b8.89E-8, 2.73E-7 s-1 | |
OOCO2 | 9.6E-11 | ||
O+HOH | c7.3E-10 | ||
OO | ef1.29E-11 | ||
OCOCO | 9.4E-10 | ||
OHHO | c5.7E-10 | ||
H+ | HH | b5.58E-8, 8.59E-8 s-1 | |
OHHO | c5.7E-10 | ||
HOOH | c7.3E-10 | ||
OCO | 1.64E-10 | ||
COOCO | 9.4E-10 | ||
O+O | d2E-7 | ||
CO | b2.47E-7, 7.3E-7 s-1 | ||
OOCO2 | 9.6E-11 | ||
OCO | 1.64E-10 | ||
CO+O | d3.8E-7 |
ain cm3s-1, unless specified. bsolar min., solar max. c the neutral temperature in K. d the electron temperature in K.
Reaction | Effect | Time |
---|---|---|
O++CO+CO | O+ converted to O | |
OHHO | O+ converted to H+ | |
HOOH | H+ converted to O+ | |
O+O | Loss of | |
OOCO2 | converted to O+ | |
OCO | converted to | |
CO+O | Loss of |
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 , after each time step, for each meta-particle, we draw a random time from an exponential distribution with mean . 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- line except for the Rosetta/ALICE observation (Feldman et al., 2011), that employed the Lyman- line as well. Although the Lyman- emission is the strongest ( times stronger than that of Lyman-), 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- observations consist of two components: a cold or thermal population with a temperature of 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- 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- observation does not include the hot population. In our current study we take the one from the Lyman- 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 ( = 200 km) altitude resolution to that with a finer resolution (). 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)
(2) |
H, 200-35000 km | 11.376328 | -5.9864716e-07 | 5.2802149e-14 |
H, km | 8.4164271 | -3.5031295e-08 | |
Cold O, 200-1200 km | 16.272228 | -1.4563270e-05 | 2.6508755e-12 |
Cold O, km | 13.329357 | -8.9676294e-06 | |
Hot O, 200-1400 km | 11.456117 | -2.3702565e-06 | 4.0228317e-13 |
Hot O, km | 10.817852 | -1.3562674e-06 | |
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