Issue 
A&A
Volume 615, July 2018



Article Number  A67  
Number of page(s)  14  
Section  Numerical methods and codes  
DOI  https://doi.org/10.1051/00046361/201731916  
Published online  16 July 2018 
MHDSTS: a new explicit numerical scheme for simulations of partially ionised solar plasma
^{1}
Instituto de Astrofísica de Canarias (IAC),
38205
La Laguna,
Tenerife,
Spain
email: pagm@iac.es
^{2}
Universidad de La Laguna (ULL), Dpto. Astrofísica,
38206
La Laguna,
Tenerife,
Spain
^{3}
Centre for Astrophysics & Relativity, School of Mathematical Sciences, Dublin City University (DCU),
Dublin,
Ireland
Received:
8
September
2017
Accepted:
9
March
2018
The interaction of plasma with magnetic field in the partially ionised solar atmosphere is frequently modelled via a singlefluid approximation, which is valid for the case of a strongly coupled collisional media, such as solar photosphere and low chromosphere. Under the singlefluid formalism the main nonideal effects are described by a series of extra terms in the generalised induction equation and in the energy conservation equation. These effects are: Ohmic diffusion, ambipolar diffusion, the Hall effect, and the Biermann battery effect. From the point of view of the numerical solution of the singlefluid equations, when ambipolar diffusion or Hall effects dominate can introduce severe restrictions on the integration time step and can compromise the stability of the numerical scheme. In this paper we introduce two numerical schemes to overcome those limitations. The first of them is known as super timestepping (STS) and it is designed to overcome the limitations imposed when the ambipolar diffusion term is dominant. The second scheme is called the Hall diffusion scheme (HDS) and it is used when the Hall term becomes dominant. These two numerical techniques can be used together by applying Strang operator splitting. This paper describes the implementation of the STS and HDS schemes in the singlefluid code MANCHA3D. The validation for each of these schemes is provided by comparing the analytical solution with the numerical one for a suite of numerical tests.
Key words: magnetohydrodynamics (MHD) / plasmas / Sun: photosphere / Sun: chromosphere / methods: numerical
© ESO 2018
1 Introduction
Magnetic fields play an important role in the dynamics of many physical systems. The ideal magnetohydrodynamic (MHD) theory has been an excellent tool with which to understand the physical interaction between the magnetic field and the plasma in the solar atmosphere, with a long list of examples of successful modelling of a number of phenomena (e.g., Asplund et al. 2000; Schaffenberger et al. 2005; Vögler et al. 2005; Stein & Nordlund 2006; Khomenko & Collados 2006; Nordlund et al. 2009). Nevertheless, the assumptions underlying ideal MHD theory are not always valid. In the conditions of solar photosphere and low chromosphere, the presence of neutrals together with the weakening of collisional coupling due to the density fall off with height leads to the invalidation of the assumptions underpinning the MHD approach and produces a series of nonideal effects. These nonideal effects have been actively studied during recent years (e.g., Kumar & Roberts 2003; Khodachenko et al. 2004; Forteza et al. 2007; Pandey & Wardle 2008; Vranjes et al. 2008; Soler et al. 2009, 2010; Zaqarashvili et al. 2011; Khomenko & Collados 2012; MartínezSykora et al. 2012). The importance of the nonideal effects can be evaluated by examining the ratio between the cyclotron frequency and the collisional frequencies. In the photosphere, the cyclotron frequency can exceed the collisional one in strongly magnetised areas such as flux tubes and sunspots, while in the chromosphere this happens over most of its volume even in regions with a weaker magnetic field (Khomenko et al. 2014). It can be expected that in such conditions the neutral and charged particles behave in a different way, with direct repercussions on the plasma dynamics and energy exchange. A recent review of the behaviour of partially ionised plasmas in different astrophysical conditions is provided by Ballester et al. (2017).
Mathematically, the treatment of partially ionised plasmas depends on the degree of collisional coupling. The most widely used formalisms are either a twofluid or singlefluid approach, see for example the recent discussion in Khomenko et al. (2014) and a review by Ballester et al. (2017). The twofluid formalism, including the treatment of ionisationrecombination terms was recently provided by Meier & Shumlak (2012). While the singlefluid formalism yields a less detailed description, it is numerically more efficient for strongly stratified solar plasma, and therefore it has been adopted in several numerical codes that aim at realistic simulations of the solar atmosphere such as MURaM (Vögler et al. 2005), Bifrost (Gudiksen et al. 2011), and MANCHA3D (Felipe et al. 2010), the latter being the one used in the current study. The singlefluid formalism has an advantage since numerically problematic collisional terms (both elastic collisions and ionisationrecombination) do not appear explicitly in the equations, greatly simplifying the modelling. For the range of collisional frequencies typical for the solar photosphere and chromosphere, these collisional terms require extremely short time steps, unsuitable for most frequently used explicit numerical codes. In the solar case, the singlefluid formalism can safely be used for the modelling of the dense and collisional photosphere and low chromosphere, for the typical time scales of interest (Zaqarashvili et al. 2011). For both the single and twofluid formalisms the generalised Ohm’s law (Cowling 1957) has to be used to describe the behaviour of electric currents. The generalised Ohm’s law has a series of additional terms derived from the presence of neutrals, while other standard terms have slightly modified expressions (Khomenko et al. 2014). As a consequence, there appear additional terms in the induction and in the energy conservation equations. The leading nonideal terms in the singlefluid formalism are: the Ohmic diffusion, the ambipolar diffusion, Hall term, and Biermann battery term.
In an astrophysical context, ambipolar diffusion is envisaged as a process of diffusion suffered by the magnetic field due to collisions between neutral and charged particles, the latter being frozen into the field. Ambipolar diffusion helps converting magnetic energy into thermal energy on scales that are typically much faster than classical Ohmic diffusion. For the Sun, it has been demonstrated that the ambipolar diffusion is orders of magnitude larger than Ohmic diffusion in the chromospheric layers, therefore greatly contributing to chromospheric heating via Joule dissipation (Khomenko & Collados Vera 2012; Priest 2014). In the twofluid treatment, the energy equation for the charged fluid also has a Joule heating term, similar to the singlefluid case, and the expression for the electric field comes from the generalised Ohm’s law (see e.g., Khomenko et al. 2014; Ballester et al. 2017). It is interesting to note, however, that ambipolar diffusion term is not explicitly present in the twofluid Ohm’s law, and in the energy conservation equation in the twofluid treatment, and the corresponding effect is expressed via explicit ionneutral collisional terms.
The Hall effect appears when ions decouple from the magnetic field while electrons remain attached to it. In a fully ionised plasma ions decouple from the magnetic field due to the difference between the inertia of ions and electrons, and this decoupling typically happens for processes at high frequencies. In weakly ionised plasmas, however, the ions can become detached from the magnetic field due to collisions with neutrals, leading to a similar effect. The spatial and temporal scales of the Hall effect in partially ionised plasmas are different from those in fully ionised plasmas, but the dynamics are similar in both cases. The Hall term is not dissipative, so it does not contribute to the heating of the environment, however it does redistribute magnetic energy in the system. Therefore, the Hall effect has an important role at many scales, from laboratory to astrophysical plasmas, while ambipolar diffusion is typically only important at low ionisation fractions (Parker 2007; Pandey & Wardle 2008; Priest 2014; Ballester et al. 2017).
The Biermann battery effect is somewhat different to the two nonideal effects discussed above. Its magnitude in the solar case is rather small and it is usually ignored as it is not deemed important. But recently Khomenko et al. (2017) have shown that this term is able to seed the magnetic field for the local solar dynamo. In the present paper we will consider this term for completeness.
From a numerical point of view, the battery term only introduces a small source term into the hyperbolic system of equations of singlefluid MHD. So long as this source term is small in some sense it is not necessary for either accuracy or stability reasons to introducea time step restriction based on it. However, the ambipolar term is diffusive (i.e., parabolic), and the Hall term is dispersive. These two latter terms introduce important restrictions into the integration time step and into the stabilityof explicit numerical schemes, which are frequently used in hydrodynamic codes solving hyperbolic equations.
This paper presents a new numerical scheme aiming to overcome these restrictions. This scheme is implemented as separate modules in the existing singlefluid radiative MHD code MANCHA3D (Khomenko & Collados 2006, 2012; Felipe et al. 2010; Khomenko et al. 2017). The proposed scheme is relatively easy to add into an existing explicit numerical scheme, which allows one to keep all the benefits and flexibility of the explicit approach. We also provide a suite of numerical tests to verify the newly implemented modules and to check their order of accuracy.
This paper is organised as follows. In Sect. 2 we show the set of equations corresponding to a single fluid description with a generalised Ohm’s law. In Sect. 3 we present very briefly our singlefluid code MANCHA3D and the details of the new numerical scheme introduced here. In Sect. 4 we show tests demonstrating the feasibility and reliability of the new scheme introduced, while in Sect. 5 a brief summary is presented.
2 Equations
As discussed in the Introduction, the peculiarity of solar plasma in the photosphere and in the low chromosphere is that, while being only weakly ionised, it is still very dense and, therefore, collisions play an important role in coupling all plasma and neutral components. Since typically the scales of interest are significantly larger than collisional scales (see Khomenko et al. 2014), the most efficient approach for the mathematical treatment of such plasma is a singlefluid quasiMHD formalism. The derivation of conservation equations and the generalised induction equation for such a case can be consulted elsewhere (see e.g., Ballester et al. 2017). Following the derivation of the equations from Bittencourt (2004), and using a specific definition for the macroscopic variables, see Appendix D of Khomenko et al. (2014), the nonideal effects are encoded into several terms in the induction and total energy conservation equations. The set of equations is formed by the continuity equation (1)
the momentum conservation equation (2)
and the induction equation (3)
where we retained the convective, Ohmic, Hall, Ambipolar, and Biermann battery terms on the right hand side. The coefficients multiplying these terms are, respectively, the Ohmic (η), Hall (η_{H}), ambipolar (η_{A}), and battery (η_{B}) coefficients, and all have the same units of diffusivity (l^{2}t^{−1}, i.e. m^{2}s^{−1} in SI). Those coefficients are defined later on, in Eqs. (9)–(11). The total energy conservation equation (4)
is written in terms of the total energy density per volume unit e, which is the sum of the kinetic, internal and magnetic energies, (5)
The electric currents are defined as (6) (7)
and Gauss’s law for magnetism is (8)
To close the system, the equation of state is used.
Equations (2) and (4) have two extra terms: an external time dependent force S(t) describing an arbitrary external perturbation, and a source term Q_{rad} to take into account radiative energy exchange. These terms will be neglected in this work since the implementation of the numerical scheme introduced below is independent of the presence of these terms. The coefficients multiplying the nonideal terms in the induction and energy equations are defined as (9) (10)
The expressions for the collisional frequencies between ions and neutrals (ν_{in}) and electrons with neutrals (ν_{en}) are taken from Spitzer (1956). For the collisions between electrons and ions (ν_{ei}) we use the expressions from Braginskii (1965) (12) (13) (14)
where m_{in} = m_{i}m_{n}∕(m_{i} + m_{n}) and m_{en} = m_{e}m_{n}∕(m_{e} + m_{n}) are the reduced masses. The cross sections for a weakly ionised plasma assuming elastic collisions between solid spheres are σ_{in} = 5 × 10^{−19} m^{2} and σ_{en} = 10^{−19} m^{2} (Vranjes & Krstic 2013; Huba 2016). The Coulomb logarithm, ln Λ, is defined as (15) (16)
The equations above assume charge neutrality (n_{e} = n_{i}) and negligible electron mass (m_{e}∕m_{i} ≈ 0). A complete derivation of these equations and a discussion of the relative importance of the nonideal terms along the solar atmosphere can be found in Khomenko et al. (2014).
3 Description and implementation of the new numerical scheme
3.1 MANCHA3D code
Before describing the MHDSTS^{1} scheme, we first briefly introduce our singlefluid MANCHA3D code. The current implementation of this numerical code is a parallel tridimensional extension of the code developed by Khomenko & Collados (2006) and solves the nonlinear 3D MHD equations for the perturbations written in conservative form (Felipe et al. 2010).
To avoid high frequency numerical noise and improve the numerical stability some artificial diffusion terms are added instead of their physical counterparts following the work of Vögler et al. (2005), so each physical diffusivity has its own contribution formed by a constant contribution, a hyperdiffusivity part and a shockresolving term. On the other hand, because in some simulations a high diffusivity can modify the perturbations’ amplitude (especially when solving waves) the code can performan additional filtering to dampen small wavelengths using the method described by Parchevsky & Kosovichev (2007). In this way, the artificial diffusivity remains low and the numerical noise is avoided. For spatial integration MANCHA3D uses a centred 6th order accurate derivative, following Nordlund & Galsgaard (1995). To advance in time it uses an explicit multistep RungeKutta (RK) scheme, accurate to 4th order (Vögler et al. 2005; Khomenko & Collados 2006; Felipe et al. 2010). To prevent wave reflection at the boundaries, especially when working with complex magnetic field configurations, the code has implemented a perfectly matched layer (PML; Berenger 1994, 1996; Hu 1996, 2001; Hesthaven 1998; Parchevsky & Kosovichev 2009). It also has the possibility of using some adaptive mesh refinement (AMR) method (Berger & Colella 1989) to follow the evolution of fine structures.
More recently, a new radiative transfer module has been added to solve the radiative transfer equations using the short characteristic method. It is also possible to choose between an ideal equation of state or a realistic one in thermodynamical equilibrium based on precalculated tables, which include the ionisation equilibrium solution and the electron pressure needed to calculate the nonideal terms, see Khomenko & Collados (2012) and Khomenko et al. (2017) for details.
The purely MHD version of the code has been verified against standard numerical tests by Felipe et al. (2010) and the code has been used so far for a wide range of numerical experiments (both ideal and realistic), such as modelling of wave propagation, instabilities, and magnetoconvection (e.g., Felipe et al. 2010, 2013, 2016; Khomenko & Collados 2012; Luna et al. 2016; Santamaria et al. 2016; Khomenko et al. 2017). At this point, it is convenient to briefly explain the time integration method used by MANCHA3D as we shall refer to it in the following sections. In the singlefluid approximation, the system of equations written in conservative form can be schematically represented as (17)
where represents an operator formed by the sum of the spatial derivatives of fluxes F(u), the source terms, S(u), and the nonideal terms (Ohmic, Ambipolar, Hall, and Battery), G(u). The vector u is the set of variables in the equations: [ρ, ρv, B, e](r, t).
The next time step is calculated using an explicit RK scheme that can be written in a compact form as
where u^{(n+1)} corresponds to the solution at t_{n+1} = t_{n} + Δt, with Δt given by the Courant, Friedrichs and Lewy (CFL) condition. The order of the RK scheme is given by the chosen m ≤ 4, and the coefficients α_{k} can be found in van Leer et al. (1992, Table 6) or easily computed using the expression (19). (19)
MANCHA3D uses a fourth order RK scheme to solve the nonideal singlefluid MHD equations, which using this notation corresponds to m = 4 in Eq. (18).
3.2 New MHDSTS scheme
As mentioned in Sect. 1, the nonideal MHD terms are numerically problematic. In the solar atmosphere the value of the ambipolar diffusion coefficient (η_{A}) strongly increases with height and becomes larger than the classical Ohmic diffusion (η) by several orders of magnitude (Khomenko et al. 2014). When the ambipolar term dominates the equations, the system turns from hyperbolic to parabolic, and very small integration time steps are required in order to fulfil the CFL condition. To avoid such small time steps, the proposed MHDSTS scheme uses the technique known as super timestepping (STS). This numerical technique was proposed by Gentzsch (1980) to speed up explicit timestepping schemes for parabolic problems. Later on, Alexiades (1995) and Alexiades et al. (1996) presented a variant of this technique, which is used by O’Sullivan & Downes (2006); O’Sullivan & Downes (2007) to overcome the limitations caused by a large ambipolar term. As mentioned earlier, this numerical technique allows us to speed up, in a easy and efficient way, explicit timestepping schemes for parabolic problems.
Besides, the Hall coefficient, η_{H} dominates over the other two coefficients (η and η_{A}) over most ofthe photosphere and then, the Hall effect can dominate the system (Khomenko et al. 2014). In this case, the system becomes skewdominant, and the integration can not be done using the STS approach because it is unstable. In this situation, the system’s eigenvalues become complex and to fulfil the CFL condition we would require that our timestep gets close to zero to maintain stability (O’Sullivan & Downes 2006; O’Sullivan & Downes 2007; Gurski & O’Sullivan 2011). Thus, the proposed MHDSTS scheme uses yet another scheme, Hall diffusion scheme (HDS), which was proposed by O’Sullivan & Downes (2006) to overcome this problem.
The STS technique has been used in different fields successfully, for example: Choi et al. (2009) described the implementation of the ambipolar term into a multidimensional MHD code based in a total variation diminishing (TVD) scheme showing its use to follow complex MHD flows such as molecular cloud cores or protostellar discs; Grewenig et al. (2010) introduced STS into a new class of numerical schemes called fast explicit diffusion (FED) schemes to speed up the application of anisotropic diffusion filters for image enhancement or image compression tasks; Tsukamoto et al. (2013) presented an explicit scheme for Ohmic dissipation with smoothed particle magnetohydrodynamics (SPMHD) and used the STS technique to solve the Ohmic part of the induction equation; Tomida et al. (2013) also adopted the technique to solve the Ohmic part of the induction equation in problems of protostellar collapse; Wurster et al. (2014) provided an implementation of the STS technique into the PHANTOMSPMHD code (Price & Federrath 2010a,b; Lodato & Price 2010; Price et al. 2017) for solving the ambipolar part of the induction equation. At this point we also mention that there is another family of STS scheme based on the Legendre polynomials and its properties which have been applied in problems involving thermal conduction in astrophysical plasmas as prominences or coronal rain successfully (Meyer et al. 2012, 2014; Xia & Keppens 2016; Xia et al. 2017).
Equation (17) can be split into different terms (ideal MHD, Ohmic diffusion, ambipolar diffusion, etc.), and these can be grouped together in a number of operators. There are a few options to group those terms into operators, but for our new MHDSTS scheme we have grouped them into three operators (MHD, STS, and HDS) as described in the following sections. The splitting technique we have chosen to solve the system is the Strang splitting. This splitting is written in a way that keeps asecond order accuracy along the simulation by permuting the order in which we apply the operators (Strang 1968; LeVeque 2002).
3.2.1 MHD operator
This operator is used to integrate the ideal MHD equations together with the battery term. We decided to include the nonideal contribution of the Battery term into this solver because it does not limit the time step in solarlike problems (Khomenko et al. 2014). This operator can be defined as (20)
where the vector u is, as before, the set of conserved variables, L^{iMHD}(u) = −∇F(u) +S(u) is (as per Eq. (17)) the standard operator for ideal MHD, and L^{Batt} (u) is the operator for the battery term.
The temporal integration of this operator follows the same equations as Eq. (18), but in this case the operator being instead of and the timestep being Δt_{MHD}, calculated as (21)
where dt_{iMHD} is obtained from the CFL condition applied to the operator L^{iMHD}(u). The Batteryterm time step, dt_{Batt} = min(dx^{2}, dy^{2}, dz^{2})∕η_{B}, does not play a roll into this operator due to its source term behaviour. It is important to point out that if there are no nonideal terms this operator becomes a RK operator because there is no need to apply the Strang splitting. In this case, selecting m = 4, we recover the RK scheme. This standard part of the MANCHA3D code was throughly verified via either specific numerical tests, applied in 1D, 2D and 3D (Felipe et al. 2010), or through the scientific numerical simulations by the code published in the literature in the last ten years.
3.2.2 STS operator
This operator is used to treat only the contribution of the Ohmic and Ambipolar terms and it can be written as (22)
where the vector w corresponds to the conserved variables [B, e](r, t) or [B, e_{int}](r, t) in the case where we prefer to use the internal energy equation, L^{Ohmic}(w) is the operator for Ohmic diffusion, and L^{Ambi}(w) is the operator for ambipolar diffusion.
The main idea behind STS is to demand stability not at each time step, but at the end of a bigger step called superstep (Δ t_{STS}). The Δ t_{STS} is calculated as a sum of substeps τ_{j}. To maximise the size and stability of the superstep, the small substeps are obtained using the optimality properties of modified Chebyshev polynomials (Alexiades et al. 1996). (23)
in this expression, dt_{dif} is the minimum time step given by the Ohmic term (dt_{Ohmic} = min(dx^{2}, dy^{2}, dz^{2})∕η) and by the ambipolar term (dt_{Ambi} = min(dx^{2}, dy^{2}, dz^{2})∕η_{A}). N_{STS} is the number of substeps, and ν is a damping parameter, associated to the Chebyshev polynomials, to reduce higher frequencies and obtain a strong stability condition for the numerical method. This parameter is within the interval (0,λ_{min}∕λ_{max}], where λ_{min} and λ_{max} are the smallest and the bigger eigenvalues of the matrix respectively (Alexiades et al. 1996; Gurski & O’Sullivan 2011). When ν takes valuesclose to one, the system is highly damped, and the superstep becomes more accurate in the same way that any numerical explicit scheme has smaller errors resulting from small time steps. When ν takes values close to zero, the system becomes unstable.
Thus, the value of the parameters (N_{STS}, ν) control the stability, accuracy and speed of the method and depend on the spectral properties of the matrix . But, as pointed out by Alexiades et al. (1996), a precise knowledge of the eigenvalues is not needed to obtain a robust method, so the values can be arbitrarily chosen by the user considering certain limits (stability, speed, error, etc.). The time update by the STS operator can be written as (24)
where t_{n+1} = t_{n} + Δt_{STS} and the superstep Δt_{STS} is given by (25)
In the limit when ν tends to zero, the superstep formed by N substeps covers an N times bigger interval compared to N explicit time steps, namely: (27)
The STS scheme is a first order scheme and it belongs to the family of RungeKuttaChebyshev (RKC) methods with N steps. Therefore, if used as described above, the overall precision of the MHDSTS scheme would be of first order, even if the precision of the other operators was bigger. In order to increase its order of accuracy one could perform a Richardson extrapolation (Richardson 1911; Richardson & Gaunt 1927) as suggested by O’Sullivan & Downes (2006). However, this implies many executions of the STS operator: three executions to reach second order, seven executions to reach third order and fifteen executions to reach fourth order.
For that reason, instead of performing a Richardson extrapolation, we consider the STS scheme as an ‘Eulerian’ firstorder step of our multistep RK scheme, so now we should reach fourth order just with four calls to the STS scheme. In other words, we use the STS scheme to obtain the solution at the stable points of the RK scheme and in this way, get a high order solution. We refer to this technique for increasing the order of a numerical scheme as RKwrapper. Thus, the complete temporal scheme for the STS operator can be written similarly to Eq. (18) but, in this case, using the operator and its corresponding time step Δt_{STS}:
Each step of this RKwrapper has a size of α_{k}Δt_{STS}, with α_{k} given by Eq. (19). Each of these steps represents a whole STS superstep, where dt_{dif} is scaled with α_{k} and the corresponding τ_{j} values are calculated according to Eq. (23). With these, the conserved variables of the vector w^{(k−1)} are calculated using the Expression (24).
3.2.3 HDS operator
The HDS operator only solves the Hall term in the induction equation. It is designed by O’Sullivan & Downes (2006) to overcome the problems originated by a skewsymmetric Hall term dominated system, and it can be written in conservative form as (29)
where the vector b is the conserved variable B(r, t), and L^{Hall}(b) is the operator for the Hall term. This operator works similarly to the MHD operator described above. However, unlike it, the update of the magnetic field components is done using all the information available at the moment. O’Sullivan & Downes (2006) applied the HDS scheme by using a first order RK scheme and then, increasing the accuracy order by the application of a Richardson extrapolation. Instead, we follow the same idea proposed in Sect. 3.2.2, treating the individual HDS operator as an “Eulerian” step to use the RKwrapper to increase its accuracy order. By doing so, we keep the stability properties of this implicitlike scheme but reaching a higher accuracy order in time and with less computational effort. The proposed scheme would be:
In these equations dt_{Hall} is the time step imposed by the Hall term through the CFL condition given by O’Sullivan & Downes (2007), that is, . The HDS operator advances in time Δt_{HDS} = N_{HDS}dt_{Hall}, by repeating the execution of the Eq. (30) N_{HDS} times, which is the number of subcycles needed to cover one superstep Δ t_{STS} and/or one Δt_{MHD}; this is further elaborated in the following section.
If the order in which the Eqs. (30a)–(30c) are solved is maintained for successive time steps, an artificial handedness is introduced into the scheme. This could be avoid by reversing the order between time step or, as it was pointed by O’Sullivan & Downes (2007), performing a random permutation of the order in which the magnetic field components (30a)–(30c) are solved over successive time steps. This is especially important under certain circumstances, as for example if a strong directional bias is introduced in the initial state or in 3D numerical experiments. Such permutation can result in a small loss of numerical stability.
3.3 All together: timing and accuracy order
This new scheme is only worthwhile with respect to the RK when the Ambipolar or Hall terms introduce a heavy constraint in the time step as we commented in Sects. 3.2.2 and 3.2.3. Then, one should select the time steps for the operators according to the following rule: (31)
When the requirements of dt_{dif} ≤ Δt_{MHD} is not fulfilled, the evolution of the system is dominated by hyperbolic ideal MHD terms, and there is no need to apply this new MHDSTS scheme, then we are out of the STS (and/or HDS) regime.
To choose the time step for each iteration, one first has to choose the pair (N_{STS}, ν) to keep the accuracy and stability during the simulation and also to try to maximise the size of the superstep along the simulation. One option for choosing those values can be obtained using Eq. (27) and forcing the STS operator to jump in time as far as the MHD operator allows it, so in the limit when ν → 0, we can write that (32)
getting in this way an optimum approximation for N_{STS} which should be very close to the number of substeps needed to cover the time step imposed by the ideal MHD CFL. Selecting the parameter ν can be a bit tricky, and for that reason it is convenient to define the STS efficiency as: (33)
This expression reaches an asymptotic value of 0.5 when N_{STS} →∞ for a given ν, see dashed line in Fig. 2. It can be also approximated as , see “+" markers in Fig. 2. Using this approximation for the efficiency we can obtain a value of ν to achieve a high efficiency and to maintain the stability and accuracy of the STS scheme. To do so, we can impose a certain efficiency and calculate, for a chosen N_{STS} what value of ν it corresponds to. After several tests we have concluded that a good compromise between speed and stability is reached fixing the STS efficiency around a 76% of its maximum. This is equivalent to equating tanh to one, in which case we can write . Finally, replacing the value of N_{STS} obtained from Eq. (32) we get an estimation for ν. The choice of number of HDS subcycles N_{HDS} is done in execution time as .
The upper limit in time for the integration time step at any moment of simulation is given by the CFL condition applied to the ideal MHD operator Δt_{MHD}. The goal then is to adjust dt_{iMHD}, dt_{dif} and N_{HDS} to fulfil the identity Δt_{MHD} = Δt_{STS} = Δt_{HDS} (see Fig. 1 for an example).
Eventually, as we have mentioned, due to the Strang splitting, the overall order of the MHDSTS scheme is limited to second order whenever each operator reaches second order accuracy or higher using the RKwrapper method. This accuracy is expected to decrease due to the different combinations of values we can choose for the pair (N_{STS}, ν) and the physical characteristics of each simulation.
Fig. 1 Example of time step adjusting. Upper panel: situation before the adjust, all the super steps are different. Lower panel: the red square shows in each case the quantity that was changed. In this case, the code starts removing one subcycle of the HDS, then reduces d t_{dif} to match the HDS superstep and finally reduces the MHD step to match the other two. 

Open with DEXTER 
Fig. 2 STS efficiency (E_{STS}) defined by Eq. (33) for different values of ν and itsapproximation (“+" markers). The dashed line indicates the asymptotic value of E_{STS} when N_{STS} →∞. 

Open with DEXTER 
4 Numerical tests
As mentioned in Sect. 3.2.1, when all the nonideal terms are switched off the MHDSTS scheme becomes a pure RK scheme because there is no need to apply the Strang splitting. This means that all the previous results obtained with MANCHA3D as well as the tests presented in Felipe et al. (2010) are also valid for this new version. Bearing this in mind, the sections below present specific numerical tests to only validate the newly introduced operators either individually, or working all together.
4.1 MHD operator test
For testing the MHD operator applied to the ideal part of the equations and the battery term, we performed the numerical experiment proposed by Tóth et al. (2012). In this test, a magnetic field is generated from scratch by means of the Biermann battery term in the induction equation. For this test, we have removed all the artificial diffusivities and considered only the contributionof the battery term.
The initial conditions for this test consist in a homogeneous isothermal background without magnetic field and no velocity fields (B =v = 0). To initiate the evolution, a small perturbations in electron density (Eq. (34)) and electron pressure (Eq. (35)) are applied.
The analytical solution (Eq. (36)) is obtained by introducing the initial condition into the MHD equations and integrating it one single time step. (36)
The numerical setup consists in a 2.5D simulation box in the plane x − z. For this experiment we considered a double periodic domain in both x and z coordinates, covering a physical space of ± 10 meters, and using the constants, in S.I, n_{0} = 1∕e, p_{0} = 1, n_{1} = 0.1∕e, p_{1} = 0.1, k_{x} = k_{z} = 2π∕L, and L = 20.
The numerical solution is obtained using our MHD operator, Fig. 3, and it is compared with the analytical solution by calculating the absolute error between them, see Fig. 4. We only compare the numerical solution with the analytical one after one single time step because if the system keeps evolving the analytical solution (Eq. (36)) is not valid anymore, in other words, the convective term will contribute to the solution. It can be seen that most of the numerical domain does not exceed 10^{−9.3} G of absolute error and this is concentrated in the regions where the initial electron density and electron pressure perturbations are maximum.
Fig. 3 Biermann battery test. The image shows the y component of the magnetic field vector at one time step (dt = 0.02 s) after the beginning of the simulation. 

Open with DEXTER 
Fig. 4 Logarithm of the absolute error in the B_{y} component of the magnetic field between the analytical solution and the numerical solution given by the MHD operator. The format of the figure is the same as Fig. 3. The error is minimum at locations with maximum electron density n_{e}. 

Open with DEXTER 
4.2 STS operator test
In order to test the implementation of the STS operator we use an experiment of Alfvén wave decay under the sole action of the ambipolar diffusion as it was proposed by Choi et al. (2009). This experiment is based on the analytical derivation of a dispersion relation characterising the propagation of an Alfvén wave in a homogeneous partially ionised plasma permeated by a horizontal and homogeneous magnetic field done by Balsara (1996) when a strong coupling approximation is taken into account. (37)
In this relation, is the Alfvén speed, k is a real wavenumberand ω = ω_{R} + iω_{I} is the complex angular frequency. It is known that the action of the ambipolar diffusion adds an imaginary term into the dispersion relation, which physically means that the Alfvén wave is unable to propagate when k ≥ 2c_{A}∕η_{A} (Kulsrud & Pearce 1969). Under this strong coupling approximation and considering an ideal isothermal MHD system we can follow the evolution in time of a standing wave and compare the numerical results with the analytical solution of its first normal mode (Morse & Ingard 1968) (38)
where h_{0} is the initial wave amplitude.
For our experiments, we have considered an isothermal system in a 2.5D periodic domain in the plane x − z of side L with a constant ambipolar coefficient and a constant magnetic field B_{0} along the x coordinate, introducing a standing wave along the z coordinate with an initial velocity (39)
where v_{amp} is a dimensionless initial peak amplitude. Taking k = k_{x} in Eq. (37), it can be obtained that (40)
The analytical solution can be written as a superposition of two waves moving in opposite directions: (41)
and tracking the evolution of the rootmeansquare (RMS) magnetic field , the initial amplitude in Eq. (38) is .
We set the parameters v_{amp} = 0.01, L = 1 m, T, p = 1 N/m, ρ = 1 kg/m^{3}, and T = 1 K for the initial condition and background. We considered four cases with different constant ambipolar coefficients η_{A} = 0.01, 0.03, 0.1, and 0.3 m^{2} s^{−1}.
First, we used N_{STS} = 1 and ν = 0 for the STS scheme to test how the error changes by increasing the order when using the operator splitting. In Fig. 5 we can see the results obtained in each case. In the upper panel of each subfigure we have the RMS evolution in time for the B_{z} component. In all cases the agreement between the analytical and numerical solutions is good, notice we only plot the numerical solution when the order is set to two. In the middle panel the relative error in time for the numerical solution obtained with the RK scheme and the STS scheme and three different orders is plotted. If we focus in the solution at order two, we can see how the shape and values of each schemes are very similar in time. The same can be seen for the other orders. Because the relative error goes to infinity when drops to zero a good tool to see the time evolution of the error can be the cumulative rootmeansquare error (CRMSE) in time define as (43)
where n is the number of snapshots saved up to time t_{n}, t_{i} is the time of each output, and (Wurster et al. 2014). This quantity represents the sample standard deviation of the differences between the RMS value from our numerical experiment and the analytical solution and, as Hyndman & Koehler (2006) point, it is a good measure of the accuracy between models at the same scale. This function is plotted in the lower panel of the subfigures of the Fig. 5. When the rate at which the scheme adds error to the RMS is slower than the growth of the factor for increasing time, the CRMSE will decrease slowly with time to an asymptotic value. This is clearly seen when the wave is damped quickly due to the high ambipolar diffusion. Furthermore, it is clearly seen how both schemes have a similar behaviour for all the ambipolar diffusivities tested.
Now we study how the pair (N_{STS}, ν) affects to the error, computational time and accuracy order of the STS scheme in comparison with the RK. To do this, we made a couple of simulations using different values of them. We took three values of ν (0.1, 0.01 and 0.001) and for each of them, N_{STS} was taken between one and six.
The results are shown in Figs. 6 and 7 where in the upper panel of those figures we have plotted the CRMSE at a fixed time (t = 5τ, with τ = L∕c_{A}) as function of (N_{STS}, ν). The time spent by each simulation to reach the same point in time (also at t = 5τ) is plotted at the middle panel. At the lower panel we show the accuracy order measured at t = 0.7τ. We chose this time to avoid values of the solutions close to zero (see vertical line marks in Fig. 5). All the tests where executed using a single node of the TeideHPC supercomputer (each TeideHPC node has 2 Intel Xeon E52670 processors, for a total of 16 cores per node).
In Fig. 6a, upper panel, we observe how the accumulated error for STS at order two gives results very similar to the RK one. However, for higher orders, the error is slightly smaller than the one corresponding to the RK schemes (horizontal dashedlines). We see how increasing N_{STS} (i.e. increasing the number of times the STS operator will be called) introduces small extra errors. On the other hand we see how the CPU time increases linearly with N_{STS} due to these extra calls. Such behaviour is expected because our system is outside of the STS regime due to the low ambipolar diffusion and in this case, performing STS involves unnecessary computational effort. In Fig. 6b the system gets into the STS regime only for N_{STS} = 2, so for the rest of values we see the same behaviour as before. In the other cases shown in Fig. 7, η_{A} = 0.1 or 0.3, we have that the accumulated error increases over the error obtained for the RK1. However, by using the STS technique we obtain a speedup of between two and eight times depending on the RK order chosen to compare. For N_{STS} > 4 the decreasing time tendency starts to invert, see Fig. 7c. This happens because in this particular test, the STS jump reaches the size of the MHD jump and the code starts to spend time with extra iterations of the STS scheme as in the previous cases.
Finally, following LeVeque (2002), to measure the accuracy order for conservation laws, we computed the L_{1} norm against the analytical solution given by Eq. (41) as (44)
where the L_{1}norm is calculated at t_{0} = 0.7τ (see vertical dotted line in Fig. 5) and N_{p} is the number of points into the numerical domain. The results are in general consistent with the selected order of the schemes and limitation imposed by the Strang splitting. We notice nevertheless, that for this experiment, the rounding errors are affecting strongly the determination of the order because we quickly reach a precise solution, even when working with low orders. Thus, an increase of the order does not improve the solution, and therefore the value of the error calculated according to Eq. (44) is meaningless. This problem of the error evaluation can be seen clearly for the RK schemes with high ambipolar diffusion.
In the upper panel of Fig. 7c we observe how the CRMSE gets values close to one in some cases. These cases correspond to the lower value of ν, and illustrate how the solution is entering into a unstable region, that is, the substeps τ_{j} are giving unstable values and the solution would not converge at the superstep. Checking the lower panel of the same figure, one can see how these points also correspond to the accuracy order values with no meaning. We conclude that one needs to be very careful in choosing the value of this damping parameter to avoid numerical instabilities. As we have seen, good values for this parameter can be obtained using Eq. (33). Another thing we notice is that for N_{STS} = 1 the behaviour of the CRMSE, CPU time or order matches the RK scheme very well. This is because when N_{STS} is one, the damping parameter ν is zero and then, the STS acts as a MHD operator, (i.e. a RK scheme), and then only the Strang splitting is affecting the results. In this case in particular, the results can be seen in Fig. 5 and verify that, despite the wrong values obtained for the accuracy order, see for example the lower panel of Fig. 7c (η_{A} = 0.1 m^{2} s^{−1}), the numerical solution matches very well the analytic one.
For the STS we observe how by increasing N_{STS} or decreasing ν the CRMSE is increasing and the computation time and the accuracy order are decreasing. On the other hand, we see that by increasing the ambipolar diffusion coefficient the accuracy order tends to decrease slightly and both the CRMSE and the computational time tend to increase.
Despite the fact that STS is limited to second order due to the Strang splitting, we observe that setting the order of each operator individually at three or more, makes the whole system more stable. This way, we could capture better stiff problems and/or force the values of (N_{STS}, ν) to obtain a higher acceleration.
Fig. 5 Upper panel: RMS value of the B_{z} componentof the magnetic field produced by the Alfvén wave, as a function of time. The solid black linecorresponds to the analytical solution and the crosses are the numerical solution obtained with the STS scheme at order two. It can be seen there is good agreement with the analytical solution for all the diffusivities tested. Middle panel: relative error in time for the RMS value of B_{z} component. The red, green and blue lines are for the numerical solution given by the RK scheme working in the second, third and fourth order, respectively. The dashed lines corresponds to the solution obtained with the STS operator working also in second, third and fourth order. Lower panel: CRMSE in time for both schemes defined by Eq. (43). As we expect, the behaviour of both schemes is similar as it is shown by the CRMSE. The time axis is in the units of the crossing time τ = L∕c_{A} and the dotted vertical lines mark the time where the L_{1}norm is calculated, t_{0} = 0.7τ. 

Open with DEXTER 
Fig. 6 Upper panel: CRMSE values at t = 5τ s for different values of the pair (N_{STS}, ν). The horizontal dashed lines corresponds to the RK scheme values. The symbols correspond to the STS scheme, each of them indicate a different value of ν. The black, red, green and blue colours indicate first, second, third and fourth order accuracy respectively. The dotted lines linking the symbols are drawn just to make the plot more readable. Middle panel: CPU time spend by the schemes to reach the same point in the simulations. The colour and symbol code is the same as the upper panel. Lower panel: order computed using the L_{1} norm at t_{0} = 0.7τ, see the dotted vertical line in Fig. 5; again, the colour and symbol code is the same as the upperpanel. In subfigure (a), we have a case with low ambipolar diffusion where the first order results unstable and the errors for the STS scheme are very close to the RK values. In this case, we have no acceleration because the system is out of the STS regime and the time increase linearly with N_{STS} as expected. 

Open with DEXTER 
Fig. 7 Same as Fig. 6, but showing a clear case inside the STS regime in subfigure (d). Here, the analytical solution is still well captured and the acceleration obtained is substantial. The errors, on the other hand, are limited, even thoughthey are higher than in the RK1 case. 

Open with DEXTER 
4.3 HDS operator test
In order to test the HDS operator we have considered an experiment with a planepolarised Alfvén wave propagating into a partially ionised plasma under the presence of a guiding magnetic field as it is proposed by Cheung & Cameron (2012). For this experiment we have neglected all the induction terms except the Hall term.
The numerical set up for the test consists in a 2.5D periodical box with a constant hydrodynamic background and a pure Alfvén wave propagating along the xaxis. The transverse components are considered small compare with the guide field, B_{x}.
Under these conditions, the Hall coefficient, η_{H} can be considered constant and the analytical solution given by Eqs. (45a)–(45c), can be obtained after linearised the singlefluid equations. This solution describes the precession of the polarisation plane of an Alfvén wave with a wavenumber k initially planepolarised in the yaxis.
where ω is the angular frequency, B_{0} is a constant uniform magnetic field, b is a small perturbation and σ is the precession rate of the polarisation plane (46)
The relation between k and ω is obtained from the dispersion relation: (47)
For this experiment we select physical parameter to match those of the solar photosphere: η_{H} = 10^{6} m^{2} s^{−1}, B_{0} = 100 G, T = 6000 K, b = 0.1 G, p_{gas} = 10^{3} N m^{−2}, ρ = 10^{−4} kg/m^{3}, and L = 100 km so the domain covers one wavelength. For this set of parameters we have k = 2π × 10^{−5} m, σ =1.9 × 10^{−3} Hz, ω =5.6 × 10^{−2} Hz, and the rotational period τ = 2πσ^{−1} = 3183 s. For the initial conditions we set:
In the upper panel of Fig. (8) we can see the result of the simulations over the analytical solution given by Eq. (45). In the middle panel we can see how the relative error is higher near the nodes and, in the lower panel, how the CRMSEincrease in time as it is expected. We notice that simulations at first and second order are not plotted because they were not stable for the chosen CFL. However, at third and fourth order both schemes captures very well the analytical solution and they are very similar between them. Reducing the CFL slightly, the second order becomes stable.
Fig. 8 Hall test, showing in the upper panel the time evolution for the numerical and analytical solutions of the B_{z} components of the magnetic field fluctuations due to the precession of the planepolarised Alfvén wave in a fixed spacial point (x = 0). The solid line represents the analytical solution and the red crosses are the numerical solution. Middle panel: relative error of the numerical solution respect the analytical solution for both the RK and the HDS schemes, solid lines and dashed lines respectively. Lower panel: CRMSE in time for the B_{z} component. It can be seen how the two schemes have an almost identical behaviour in time and with the order. This it is expected because the HDS operator works as a RK operator. Also this shows us how well performs the Strang splitting. 

Open with DEXTER 
4.4 MHDSTS scheme test
Finally, this section shows the results of testing simultaneously the MHD, HDS, and STS operators considering the effects of the Ohmic and ambipolar diffusions and the Hall term. For that, we used a shocktube test with a magnetic precursor, or Cshocks (Draine 1980), under two different regimes depending of what term is dominating over the other nonideal terms: a) Hall dominated and b) ambipolar dominated, see Falle (2003); O’Sullivan & Downes (2006); O’Sullivan & Downes (2007).
To obtain the steadystate solution we consider our system isothermal with all the three diffusivity coefficients (η, η_{A}, and η_{H}) constants and no battery term. We also set all the time derivatives to zero, this is equivalent to transform the equations toa frame of reference where the shock is steady. With this, our MHD equations can be written as
with the induction equation as
where C_{0}, C_{x}, C_{y}, and C_{z} are constants in time. C_{1} and C_{2} are constants of integration obtained from applying the preshock boundary condition.
The initial states for the preshock and postshock plasma were obtained from the jump conditions of a front shock propagating into a magnetised fluid. The parameter for this initial state are given in Table 1.
Given the density and velocity at the postshock side we can determine the magnetic field from the induction equation at each spatial position and then use the other four algebraical equations to obtain the rest of variables. To solve this ordinary differential system of equations with nonconstant coefficients, we use a fourth order RK scheme implemented into a different code.
With these parameters, and avoiding the use of the artificial diffusion terms, the calculation is unstable for the RK scheme at all orders due to the high frequency oscillation (whistler waves) at the shock front introduced by the Hall term. The only way of solving this problem with the RK scheme without artificial diffusion is by forcing a reduced CFL condition and increasing the filtering cadence. Then, as a side effect we will spend more CPU time and tend to oversmooth the solution. The whistler waves can be seen clearly at the upper panel of Fig. 9, where we can also see how the analytical solution is very well captured by the MHDSTS scheme. In this case, if we choose order two without artificial diffusion, the experiment results unstable but choosing order three the experiment is stabilised due to the slightly higher numerical diffusivity introduced by the extra RKstep to reach order three. In the lower panel of the same figure we can see the relative error between both solutions. For this experiment, as we have obtained a semianalytical solution, it is easy to compute the accuracy order by changing the mesh resolution. In this case the obtained order is ~ 2.1. In Fig. 10, we show a second experiment with a higher ambipolar diffusion to activate properly the STS operator but keeping also a high Hall term contribution. We see again the good agreement between both solutions and also how by increasing the ambipolar diffusion enough, the selected global order of the code needed to get the solution is lower. In this case, the calculated accuracy order is ~ 1.6, slightly smaller than the case (a) due to the action of the STS scheme.
Parameters for the MHDSTS test.
Fig. 9 Hall dominated shock tube test. Upper panel: steady solution for the zcomponent of the velocity field. The left side corresponds to the postshock side. Lower panel: relative error. The order obtained for this experiment is ~ 2.1. 

Open with DEXTER 
Fig. 10 Shock tube test with high ambipolar diffusion and comparable with the Hall term. Upper panel: steady solution for the zcomponent of the velocity field. The left side corresponds to the postshock side. Lower panel: relative error. The order obtain from this test is ~ 1.6 a slightly lower than the experiment (a) due to the STS contribution as mentioned in Sect. 4.2. 

Open with DEXTER 
5 Conclusions
In this paper we have seen that STS and HDS are numerical techniques easy to implement and also that they can work together using the Strang operator splitting formalism forming what we have called MHDSTS scheme. We also show how it is possible to increase the temporal order of accuracy using a RK formalism as a wrapper of each operator. However, MHDSTS is limited to second order by the Strang splitting, but setting the order of each operator individually at three or more makes the whole system more stable.
So far, all the tests performed have shown a good agreement with the analytical solution. This make us confident enough to use this newnumerical scheme with MANCHA3D code in a production mode to investigate the effects of those diffusion terms with stiff problems.
We also check that the STS technique can speed up problematic simulations by overcoming the CFL condition imposed by the parabolic term corresponding to the ambipolar term. But as a note of alert, we have to be aware that we must choose carefully the pair ν and N_{STS} because, as Alexiades et al. (1996) mentions, and we show with a numerical test, the smaller ν and/or bigger N_{STS} means bigger the acceleration but also bigger errors and the increase of numerical instabilities, as well as a slight decrease of the accuracy order.
On the other hand, we also check that the HDS technique solves the problem with complex eigenvalues introduced by Hall term being more stable than our standard RungeKutta scheme and avoiding that our dt_{Hall} becomes very small, specially when the Hall term is dominating.
Working with the MHDSTS scheme, we have that the HDS time step is improved when the ambipolar or Ohmic diffusion are considered.
Finally, due to the whole scheme being explicit, even when HDS behaves as an implicitlike scheme, it is straightforward to use the other already implemented capabilities of the MANCHA3D code such as parallel scalability, the PML boundary condition, the AMR capability or the radiative transfer module.
Acknowledgements
This work is supported by the Ministerio de Economía y Competitividad through project AYA201455078P and the predoctoral training grants in Centres/Units of Excellence “Severo Ochoa” with reference SEV20110187. It contributes to the deliverables identified in FP7 European Research Council grant agreement 277829, “Magnetic connectivity through the Solar Partially Ionised Atmosphere”. We also wish to acknowledge the contribution of Teide HighPerformance Computing facilities to the results of this research. TeideHPC facilities are provided by the Instituto Tecnológico y de Energías Renovables (ITER, SA), http://teidehpc.iter.es.
References
 Alexiades, V. 1995, in 2nd International Conference on Dynamic Systems and Applications [Google Scholar]
 Alexiades, V., Amiez, G., & Gremaud, P. A. 1996, Com. Num. Meth. Eng., 12, 31 [CrossRef] [Google Scholar]
 Asplund, M., Nordlund, Å., Trampedach, R., Allende Prieto, C., & Stein, R. F. 2000, A&A, 359, 729 [NASA ADS] [Google Scholar]
 Ballester, J. L., Alexeev, I., Collados, M., et al. 2018, Space Sci. Rev., 214, 58 [NASA ADS] [CrossRef] [Google Scholar]
 Balsara, D. S. 1996, ApJ, 465, 775 [NASA ADS] [CrossRef] [Google Scholar]
 Berenger, J.P. 1994, J. Comput. Phys., 114, 185 [NASA ADS] [CrossRef] [MathSciNet] [Google Scholar]
 Berenger, J.P. 1996, J. Comput. Phys., 127, 363 [NASA ADS] [CrossRef] [Google Scholar]
 Berger, M. J.,& Colella, P. 1989, J. Comput. Phys., 82, 64 [NASA ADS] [CrossRef] [Google Scholar]
 Bittencourt, J. A. 2004, Fundamentals of Plasma Physics, 3rd ed. (New York: SpringerVerlag) [CrossRef] [Google Scholar]
 Braginskii, S. I. 1965, Reviews of Plasma Physics, 1, 205 [NASA ADS] [Google Scholar]
 Cheung, M. C. M., & Cameron, R. H. 2012, ApJ, 750, 6 [NASA ADS] [CrossRef] [Google Scholar]
 Choi, E., Kim,J., & Wiita, P. J. 2009, ApJS, 181, 413 [NASA ADS] [CrossRef] [Google Scholar]
 Cowling, T. G. 1957, Magnetohydrodynamics (New York: Interscience Publishers), 115 [Google Scholar]
 Draine, B. T. 1980, ApJ, 241, 1021 [NASA ADS] [CrossRef] [Google Scholar]
 Falle, S. A. E. G. 2003, MNRAS, 344, 1210 [NASA ADS] [CrossRef] [Google Scholar]
 Felipe, T., Khomenko, E., & Collados, M. 2010, ApJ, 719, 357 [NASA ADS] [CrossRef] [Google Scholar]
 Felipe, T., Crouch, A., & Birch, A. 2013, ApJ, 775, 74 [NASA ADS] [CrossRef] [Google Scholar]
 Felipe, T., Braun, D. C., Crouch, A. D., & Birch, A. C. 2016, ApJ, 829, 67 [NASA ADS] [CrossRef] [Google Scholar]
 Forteza, P., Oliver, R., Ballester, J. L., & Khodachenko, M. L. 2007, A&A, 461, 731 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
 Gentzsch, W. 1980, in Proceedings of the Third GAMM–Conference on Numerical Methods in Fluid Mechanics (Wiesbaden: Vieweg+Teubner Verlag), 109 [CrossRef] [Google Scholar]
 Grewenig, S., Weickert, J., & Bruhn, A. 2010, in Pattern Recognition (Berlin, Heidelberg: Springer), 533 [Google Scholar]
 Gudiksen, B. V., Carlsson, M., Hansteen, V. H., et al. 2011, A&A, 531, A154 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
 Gurski, K., & O’Sullivan, S. 2011, SIAM J. Numer. Anal., 49, 368 [CrossRef] [Google Scholar]
 Hesthaven, J. S. 1998, J. Comput. Phys., 142, 129 [NASA ADS] [CrossRef] [MathSciNet] [Google Scholar]
 Hu, F. Q. 1996, J. Comput. Phys., 129, 201 [NASA ADS] [CrossRef] [MathSciNet] [Google Scholar]
 Hu, F. Q. 2001, J. Comput. Phys., 173, 455 [NASA ADS] [CrossRef] [Google Scholar]
 Huba, J. L. 2016, Plasma Physics Division (Washington: Naval Research Laboratory) [Google Scholar]
 Hyndman, R. J., & Koehler, A. B. 2006, Int. J. Forecast., 22, 679 [CrossRef] [Google Scholar]
 Khodachenko, M. L., Arber, T. D., Rucker, H. O., & Hanslmeier, A. 2004, A&A, 422, 1073 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
 Khomenko, E., & Collados, M. 2006, ApJ, 653, 739 [NASA ADS] [CrossRef] [Google Scholar]
 Khomenko, E., & Collados, M. 2012, ApJ, 747, 87 [NASA ADS] [CrossRef] [Google Scholar]
 Khomenko, E., & Collados Vera, M. 2012, ASP Conf. Ser., 463, 281 [NASA ADS] [Google Scholar]
 Khomenko, E., Collados, M., Díaz, A., & Vitas, N. 2014, Phys. Plasmas., 21, 092901 [NASA ADS] [CrossRef] [Google Scholar]
 Khomenko, E., Vitas, N., Collados, M., & de Vicente, A. 2017, A&A, 604, A66 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
 Kulsrud, R., & Pearce, W. P. 1969, ApJ, 156, 445 [NASA ADS] [CrossRef] [Google Scholar]
 Kumar, N., & Roberts, B. 2003, Sol. Phys., 214, 241 [NASA ADS] [CrossRef] [Google Scholar]
 LeVeque, R. J. 2002, Finite Volume Methods for Hyperbolic Problems (Cambridge, UK: Cambridge University Press) [CrossRef] [Google Scholar]
 Lodato, G., & Price, D. 2010, MNRAS, 405, 1212 [NASA ADS] [Google Scholar]
 Luna, M., Terradas, J., Khomenko, E., Collados, M., & de Vicente, A. 2016, ApJ, 817, 157 [NASA ADS] [CrossRef] [Google Scholar]
 MartínezSykora, J., De Pontieu, B., & Hansteen, V. 2012, ApJ, 753, 161 [NASA ADS] [CrossRef] [Google Scholar]
 Meier, E. T., & Shumlak, U. 2012, Phys. Plasmas, 19, 072508 [NASA ADS] [CrossRef] [Google Scholar]
 Meyer, C. D., Balsara, D. S., & Aslam, T. D. 2012, MNRAS, 422, 2102 [NASA ADS] [CrossRef] [Google Scholar]
 Meyer, C. D., Balsara, D. S., & Aslam, T. D. 2014, J. Comput. Phys., 257, 594 [NASA ADS] [CrossRef] [Google Scholar]
 Morse, P., & Ingard, K. U. 1968, Theoretical Acoustics, 1st edn. (McGrawHill) [Google Scholar]
 Nordlund, Å., & Galsgaard, K. 1995, A 3D MHD code for Parallel Computers (Copenhagen: Astronomical Observatory) [Google Scholar]
 Nordlund, Å., Stein, R. F., & Asplund, M. 2009, Liv. Rev. Sol. Phys., 6, 2 [Google Scholar]
 O’Sullivan, S.,& Downes, T. P. 2006, MNRAS, 366, 1329 [NASA ADS] [CrossRef] [Google Scholar]
 O’Sullivan, S.,& Downes, T. P. 2007, MNRAS, 376, 1648 [NASA ADS] [CrossRef] [Google Scholar]
 Pandey, B. P., & Wardle, M. 2008, MNRAS, 385, 2269 [NASA ADS] [CrossRef] [Google Scholar]
 Parchevsky, K. V., & Kosovichev, A. G. 2007, ApJ, 666, 547 [NASA ADS] [CrossRef] [Google Scholar]
 Parchevsky, K. V., & Kosovichev, A. G. 2009, ApJ, 694, 573 [NASA ADS] [CrossRef] [Google Scholar]
 Parker, E. N. 2007, Conversations on Electric and Magnetic Fields in the Cosmos (Princeton, USA: Princeton University Press) [Google Scholar]
 Price, D. J., & Federrath, C. 2010a, MNRAS, 406, 1659 [NASA ADS] [Google Scholar]
 Price, D. J., & Federrath, C. 2010b, Numerical Modeling of Space Plasma Flows, 429, 274 [NASA ADS] [Google Scholar]
 Price, D. J., Wurster, J., Nixon, C., et al. 2017 PASA, submitted, [arXiv:1702.03930] [Google Scholar]
 Priest, E. 2014, Magnetohydrodynamics of the Sun (Cambridge, UK: Cambridge University Press) [Google Scholar]
 Richardson, L. F. 1911, Phil. Trans. R. Soc. A, 210, 307 [NASA ADS] [CrossRef] [Google Scholar]
 Richardson, L. F., & Gaunt, J. A. 1927, Phil. Trans. R. Soc. A, 226, 299 [NASA ADS] [CrossRef] [Google Scholar]
 Santamaria, I. C., Khomenko, E., Collados, M., & de Vicente, A. 2016, A&A, 590, L3 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
 Schaffenberger, W., WedemeyerBöhm, S., Steiner, O., & Freytag, B. 2005, ESA SP, 596, 65.1 [Google Scholar]
 Soler, R., Oliver, R., & Ballester, J. L. 2009, ApJ, 699, 1553 [NASA ADS] [CrossRef] [Google Scholar]
 Soler, R., Oliver, R., & Ballester, J. L. 2010, A&A, 512, A28 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
 Spitzer, L. 1956, Physics of Fully Ionized Gases (New York: Interscience Publishers, Inc.) [Google Scholar]
 Stein, R. F., & Nordlund, Å. 2006, ApJ, 642, 1246 [NASA ADS] [CrossRef] [Google Scholar]
 Strang, G. 1968, SIAM J. Numer. Anal., 5, 506 [NASA ADS] [CrossRef] [MathSciNet] [Google Scholar]
 Tomida, K., Tomisaka, K., Matsumoto, T., et al. 2013, ApJ, 763, 6 [NASA ADS] [CrossRef] [Google Scholar]
 Tóth, G., van der Holst, B., Sokolov, I. V., et al. 2012, J. Comput. Phys., 231, 870 [NASA ADS] [CrossRef] [Google Scholar]
 Tsukamoto, Y., Iwasaki, K., & Inutsuka, S.i. 2013, MNRAS, 434, 2593 [NASA ADS] [CrossRef] [Google Scholar]
 van Leer, B., Lee, W. T., Roe, P. L., Powell, K. G., & Tai, C. H. 1992, Communications in Applied Numerical Methods, 8, 761 [NASA ADS] [CrossRef] [Google Scholar]
 Vögler, A., Shelyag, S., Schüssler, M., et al. 2005, A&A, 429, 335 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
 Vranjes, J., & Krstic, P. S. 2013, A&A, 554, A22 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
 Vranjes, J., Poedts, S., Pandey, B. P., & De Pontieu B. 2008, A&A, 478, 553 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
 Wurster, J., Price, D., & Ayliffe, B. 2014, MNRAS, 444, 1104 [NASA ADS] [CrossRef] [Google Scholar]
 Xia, C. & Keppens, R. 2016, ApJ, 823, 22 [NASA ADS] [CrossRef] [Google Scholar]
 Xia, C., Keppens, R., & Fang, X. 2017, A&A, 603, A42 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
 Zaqarashvili, T. V., Khodachenko, M. L., & Rucker, H. O. 2011, A&A, 529, A82 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
All Tables
All Figures
Fig. 1 Example of time step adjusting. Upper panel: situation before the adjust, all the super steps are different. Lower panel: the red square shows in each case the quantity that was changed. In this case, the code starts removing one subcycle of the HDS, then reduces d t_{dif} to match the HDS superstep and finally reduces the MHD step to match the other two. 

Open with DEXTER  
In the text 
Fig. 2 STS efficiency (E_{STS}) defined by Eq. (33) for different values of ν and itsapproximation (“+" markers). The dashed line indicates the asymptotic value of E_{STS} when N_{STS} →∞. 

Open with DEXTER  
In the text 
Fig. 3 Biermann battery test. The image shows the y component of the magnetic field vector at one time step (dt = 0.02 s) after the beginning of the simulation. 

Open with DEXTER  
In the text 
Fig. 4 Logarithm of the absolute error in the B_{y} component of the magnetic field between the analytical solution and the numerical solution given by the MHD operator. The format of the figure is the same as Fig. 3. The error is minimum at locations with maximum electron density n_{e}. 

Open with DEXTER  
In the text 
Fig. 5 Upper panel: RMS value of the B_{z} componentof the magnetic field produced by the Alfvén wave, as a function of time. The solid black linecorresponds to the analytical solution and the crosses are the numerical solution obtained with the STS scheme at order two. It can be seen there is good agreement with the analytical solution for all the diffusivities tested. Middle panel: relative error in time for the RMS value of B_{z} component. The red, green and blue lines are for the numerical solution given by the RK scheme working in the second, third and fourth order, respectively. The dashed lines corresponds to the solution obtained with the STS operator working also in second, third and fourth order. Lower panel: CRMSE in time for both schemes defined by Eq. (43). As we expect, the behaviour of both schemes is similar as it is shown by the CRMSE. The time axis is in the units of the crossing time τ = L∕c_{A} and the dotted vertical lines mark the time where the L_{1}norm is calculated, t_{0} = 0.7τ. 

Open with DEXTER  
In the text 
Fig. 6 Upper panel: CRMSE values at t = 5τ s for different values of the pair (N_{STS}, ν). The horizontal dashed lines corresponds to the RK scheme values. The symbols correspond to the STS scheme, each of them indicate a different value of ν. The black, red, green and blue colours indicate first, second, third and fourth order accuracy respectively. The dotted lines linking the symbols are drawn just to make the plot more readable. Middle panel: CPU time spend by the schemes to reach the same point in the simulations. The colour and symbol code is the same as the upper panel. Lower panel: order computed using the L_{1} norm at t_{0} = 0.7τ, see the dotted vertical line in Fig. 5; again, the colour and symbol code is the same as the upperpanel. In subfigure (a), we have a case with low ambipolar diffusion where the first order results unstable and the errors for the STS scheme are very close to the RK values. In this case, we have no acceleration because the system is out of the STS regime and the time increase linearly with N_{STS} as expected. 

Open with DEXTER  
In the text 
Fig. 7 Same as Fig. 6, but showing a clear case inside the STS regime in subfigure (d). Here, the analytical solution is still well captured and the acceleration obtained is substantial. The errors, on the other hand, are limited, even thoughthey are higher than in the RK1 case. 

Open with DEXTER  
In the text 
Fig. 8 Hall test, showing in the upper panel the time evolution for the numerical and analytical solutions of the B_{z} components of the magnetic field fluctuations due to the precession of the planepolarised Alfvén wave in a fixed spacial point (x = 0). The solid line represents the analytical solution and the red crosses are the numerical solution. Middle panel: relative error of the numerical solution respect the analytical solution for both the RK and the HDS schemes, solid lines and dashed lines respectively. Lower panel: CRMSE in time for the B_{z} component. It can be seen how the two schemes have an almost identical behaviour in time and with the order. This it is expected because the HDS operator works as a RK operator. Also this shows us how well performs the Strang splitting. 

Open with DEXTER  
In the text 
Fig. 9 Hall dominated shock tube test. Upper panel: steady solution for the zcomponent of the velocity field. The left side corresponds to the postshock side. Lower panel: relative error. The order obtained for this experiment is ~ 2.1. 

Open with DEXTER  
In the text 
Fig. 10 Shock tube test with high ambipolar diffusion and comparable with the Hall term. Upper panel: steady solution for the zcomponent of the velocity field. The left side corresponds to the postshock side. Lower panel: relative error. The order obtain from this test is ~ 1.6 a slightly lower than the experiment (a) due to the STS contribution as mentioned in Sect. 4.2. 

Open with DEXTER  
In the text 
Current usage metrics show cumulative count of Article Views (fulltext article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.
Data correspond to usage on the plateform after 2015. The current usage metrics is available 4896 hours after online publication and is updated daily on week days.
Initial download of the metrics may take a while.