A publishing partnership

The following article is Open access

To E or Not to E: Numerical Nuances of Global Coronal Models

, , , , and

Published 2022 November 11 © 2022. The Author(s). Published by the American Astronomical Society.
, , Citation Michaela Brchnelova et al 2022 ApJS 263 18 DOI 10.3847/1538-4365/ac8eb1

Download Article PDF
DownloadArticle ePub

You need an eReader or compatible software to experience the benefits of the ePub3 file format.

0067-0049/263/1/18

Abstract

In recent years, global coronal models have experienced an ongoing increase in popularity as tools for forecasting solar weather. Within the domain of up to 21.5 R, magnetohydrodynamics (MHD) is used to resolve the coronal structure using magnetograms as inputs at the solar surface. Ideally, these computations would be repeated with every update of the solar magnetogram so that they could be used in the ESA Modeling and Data Analysis Working Group magnetic connectivity tool (http://connect-tool.irap.omp.eu/). Thus, it is crucial that these results are both accurate and efficient. While much work has been published showing the results of these models in comparison with observations, not much of it discusses the intricate numerical adjustments required to achieve these results. These range from the details of boundary condition formulations to adjustments as large as enforcing parallelism between the magnetic field and velocity. By omitting the electric field in ideal MHD, the description of the physics can be insufficient and may lead to excessive diffusion and incorrect profiles. We formulate inner boundary conditions that, along with other techniques, reduce artificial electric field generation. Moreover, we investigate how different outer boundary condition formulations and grid design affect the results and convergence, with special focus on the density and radial component of the B-field. The significant improvement in accuracy of real magnetic map–driven simulations is illustrated for an example of the 2008 eclipse.

Export citation and abstract BibTeX RIS

1. Introduction

Global coronal models based on computational fluid dynamics (CFD) methods applied to magnetohydrodynamics (MHD) equations are becoming a widely used tool to aid solar weather predictions (see, e.g., Usmanov 1996; Linker et al. 1999; van der Holst et al. 2014; Pinto & Rouillard 2017; Mikić 2018; Réville 2020, and referenced therein). In these models, solar photospheric magnetic map data are used to prescribe the radial component of the magnetic field on the inner boundary of the domain, representing the lower corona, and then MHD equations are solved in the rest of the domain. This domain typically extends over roughly 21 R, beyond which faster and more idealized heliospheric codes, such as EUHFORIA (a code for space weather predictions of the solar wind and coronal mass ejection, CME, evolution; see, e.g., Pomoell & Poedts 2018; Scolini et al. 2018, 2019; Poedts 2020), can be coupled to the rest of the solar system to study the propagation of the coronal features.

Since in this case, the outer boundary data resulting from the MHD simulation are used as input for EUHFORIA (see an example of such application in Samara et al. 2021) or other codes to detect possible geomagnetic storms, it is crucial that the features (e.g., coronal streamers) in the MHD solutions are accurately resolved. To this end, the boundary conditions (BCs) must be formulated appropriately and the numerical phenomena arising in the simulations understood and possibly avoided, which is the aim of this paper. One such problematic numerical phenomenon arises from the fact that the ideal (single-fluid) MHD equations are only a simplified version of a more detailed multifluid description of solar plasmas. Unlike multifluid models, they solve for the electric field only implicitly, without resolving it in absolute terms. It is shown in this paper that not properly accounting for the electric field in ideal MHD when formulating the inner BC leads to a loss of accuracy and sharpness in the results and, in the worst case scenario, even completely incorrect profiles.

Determining realistic values of the electric field in the solar corona is problematic. While there exist techniques to estimate the photospheric electric field, such as inversion from the observed V - and B -fields (see, for example, the work of Lumme 2016), getting the estimate of the electric field in the corona is not possible in this way, as we do not have direct observations of the magnetic field. The magnitude of the electric field in the quiet corona is typically expected to be very small owing to the conductivity of the solar wind plasma (Kislov 2022), at least outside of regions of large velocities, where even a small misalignment between the velocity and the magnetic field could cause large E -fields. For that reason, magnetostatic solutions, in which the electric fields relax to zero, are also used to represent and predict the coronal behavior (Contopoulos et al. 2011). Locally, however, the electric field can be enhanced by, for example, reconnection events in the current sheets or coronal holes; see Zank et al. (2014) or Zharkova & Khabarova (2015). Parallel electric field generation due to Alfvén or fast magnetosonic waves was also predicted by, for example, Kaghashvili (2012), in which case the predicted magnitudes range from 1 × 10−2 to 1 × 10−1 mV m−1.

In our setup, we are looking at a steady-state background corona, where we would expect the resulting electric field to be very small. This is because modeling of the abovementioned E -field enhancing effects cannot be done properly for two reasons. One is that our simulation is not time-dependent to model waves, and the other is that the majority of the reconnection events observed in our simulations are driven by excessive numerical diffusion instead of being physical, as will be shown later in the paper.

To obtain sharp features and ensure a physical alignment of the V - and B -fields, the parallelism can be enforced artificially. This can be done by, for example, aligning the resulting B -field with the velocity starting from a certain distance from the Sun. A second option, recently proposed by Sokolov et al. (2021), consists of solving reduced ideal MHD equations. However, neither of these two approaches may be easy to implement into an existing numerical code, because the former requires overriding the B -field solutions during computation (which is far from trivial in, e.g., time-implicit solvers like ours, in which both the system Jacobian matrix and the right-hand side vector would need to be manipulated in complex ways), and the latter requires completely altering the ideal MHD formulation. Some other techniques can be used, however, to reduce the artificial E -field generation and thus improve the sharpness and accuracy of the features. It will be shown that, for instance, one of the most crucial elements is the formulation of the inner BC.

Even though the outer BC is supersonic and hence, in theory, should not have much effect on the solution in the domain, we will show that this is not true. Most authors, when referring to the outer BCs of coronal models, mention that the state values of the boundary cells are "extrapolated" to the ghost cells (see, for example, Pomoell et al. 2011). However, the manner in which this extrapolation is performed affects the solution significantly. As will be shown in this paper, aspects such as the orientation and topology of the B -field lines of streamers can be directly manipulated depending on how the magnetic field is extrapolated into the ghost cells.

Finally, many of these undesired effects can be reduced by a careful grid design (see Brchnelova et al. 2022), which is another crucial aspect that will be discussed. This grid type limits the extent to which the outer BC can affect the domain and the coupling to heliospheric codes such as EUHFORIA. All of these abovementioned aspects are discussed in this paper.

This paper is organized as follows. In Section 2, better insight into the origins of the E -field problem is provided through the comparison of the full multifluid MHD and the ideal MHD equations. For the sake of completeness, the solver used in this study is also presented. In Section 3, the mechanisms of the artificial E -field generation in our simulations are identified, and their effects on the solution are demonstrated on a steady-state dipole case. It is shown that this mostly relates to the electric field production on the inner boundary; thus, this effort leads to outlining recommendations on the formulation of the inner BC. With the inner BC discussed, in Section 4, the outer BC is addressed, where the effects of various extrapolation laws are analyzed. It is also shown that it is not possible to prescribe a universally correct law for the entire domain, leading to the introduction of a new type of grid that can help reduce the outer BC–related effects in problematic regions. Finally, in Section 5, the proposed techniques are applied to a data-driven simulation of the global corona during the 2008 solar eclipse. The last section concludes our work and summarizes recommendations for procedures that could be standardized for global coronal models in the future.

2. Theoretical Context

Before diving into the design of BCs, we should first better understand the problem at hand. First, the solver we work with in this paper is introduced; afterward, the origin of the E -field issue is illustrated by comparing the full multifluid model equations with the ideal MHD equations.

2.1. Introduction to the COCONUT Solver

The ideal MHD solver used in this paper is COCONUT, a solver based on the Computational Object-Oriented Libraries for Fluid Dynamics (COOLFluiD) platform. The latter has been developed over many years for scientific multiphysics simulations (Kimpe et al. 2005; Lani et al. 2006, 2013), including high-speed flows, radiation, thermochemical nonequilibrium, and plasma flows (see, e.g., Lani et al. 2011, 2014; Santos & Lani 2016; Alonso Asensio et al. 2019, and references therein).

The details of the ideal MHD model for global coronal modeling, its verification, and initial validation are presented in Perri et al. (2022), where more details about the numerical setup can be found. Unlike the majority of global coronal models, this solver relies upon an implicit scheme, i.e., the backward Euler time discretization scheme, for steady-state simulations. This allows it to converge much faster compared to explicit schemes, as the Courant–Friedrichs–Lewy (CFL) number can largely exceed the value of 1 (up to 1000 or more, depending on the test case) during the computation. This feature makes it a promising tool for real-time data-driven solar simulations. The solver also works with unstructured grids, which allows us to experiment with grid resolutions and topologies to optimize the solver performance (see Brchnelova et al. 2022). In the future, we also plan to integrate adaptive mesh refinement (Ben Ameur & Lani 2021) and high-order flux reconstruction algorithms (Vandenhoeck & Lani 2019) into this model, which would dramatically increase the accuracy (potentially up to 10th order) on coarser grids and possibly accelerate the convergence of the solver even further.

The code uses a second-order accurate finite volume discretization along with the hyperbolic divergence cleaning to ensure that the divergence of the B -field stays zero. The MHD equations are solved on arbitrarily unstructured grids in a nondimensional form. The full form can be found in Perri et al. (2022), along with the formulation of the baseline BCs. In this study, however, the rotation is not considered. The reference values are set to

Equation (1)

with Vref computed to be the Alfvén velocity (4.5 · 105 m s−1), while the length scales and coordinates are nondimensional according to the solar radius.

All of the simulations in this paper, unless otherwise specified, were performed without the use of a limiter and with the fifth subdivision level icosahedron-based spherical mesh with prisms (see Brchnelova et al. 2022 for details) with roughly 300,000 elements. The surface of the spherical shell domain, starting from 1.1 to 21.5 R, is shown in Figure 1 along with a cut-through showing the radial discretization. When other grids are used in the paper (e.g., the grid designed to minimize outer BC effects introduced later), it will be mentioned explicitly.

Figure 1. Refer to the following caption and surrounding text.

Figure 1. The mesh used for most simulations in this paper is based on prisms and has 300,000 elements. We show a 3D rendering of the outer spherical slice at 21 R in the left panel and a 2D vertical cut to focus on the stretched radial structure in the right panel.

Standard image High-resolution image

Finally, before proceeding to the physics, the convergence of the solver should be touched upon. When discussing residual levels in the text, the following definition of a residual is used:

Equation (2)

where a is the relevant physical quantity, i is the spatial index, and t is the temporal index during the pseudo–time stepping. In general, the velocity and the magnetic field components are monitored during convergence. The simulation is typically considered converged when the velocity residual drops below −3 to −4. For comparison analyses in this paper, however, the residual was brought down to −10 in Vx to ensure that the differences observed in the flow field are indeed due to the investigated aspects (e.g., the BCs) and not to insufficient convergence. It could be argued that looking at the squares of absolute value differences might bias our focus to regions where these values are by default higher, e.g., the outer boundaries, when it comes to the velocity field. For this reason, however, we also monitor the other residuals, like the pressure, density, and magnetic field, where the higher values are generally near the inner boundary instead. Via ensuring that all of the residuals are sufficiently small, the evaluation of convergence is more or less balanced over the domain.

Now that the basic numerics have been discussed, the physics can be elaborated on in further detail.

2.2. The Origin of the E -field Problem

To outline the role of the electric field and why it should be addressed in the inner BC design, it is instructive to show the full MHD equations considering both ion (subscript "i") and electron (subscript "e") fluids separately, as they both contribute to the generation and removal of the electric field owing to their charges. The resulting two-fluid model, in a dimensional form, can be formulated as follows (see, e.g., Meier & Shumlak 2012). The (pre-)Maxwell equations read

Equation (3)

Equation (4)

where σ is the charge density (σ = ne qe + ni qi ), and J is the electric current density ( J = ni qi V i + ne qe V e ). For our two species, here ions and electrons, the continuity equations can be written as

Equation (5)

respectively. The momentum conservation is, for electrons,

Equation (6)

and for ions,

Equation (7)

where P is the pressure, g is the gravitational acceleration, and ${{\boldsymbol{R}}}_{i}^{{ie}}$ and ${{\boldsymbol{R}}}_{e}^{{ei}}$ are the collisional momentum terms. If the collisional frequency between ions and electrons can be approximated through

Equation (8)

with $\mathrm{ln}{\rm{\Lambda }}$ being the Coulomb logarithm and a Z of 1, then the momentum collisional exchange terms can be computed through

Equation (9)

Finally, the energy conservation reads

Equation (10)

and

Equation (11)

in which Ψe and Ψi are the total internal energies of the electrons and ions, and ${Q}_{e}^{{ei}}$ and ${Q}_{i}^{{ie}}$ are the collisional work terms between the two species,

Equation (12)

and

Equation (13)

In the model presented above, the electric field E is typically one of the primitive variables that is solved for. In Equations (10) and (11), we can see, for example, the tendency of the two-fluid MHD to respond to existing electric fields via their dynamics, as the two fluids react to the present E -field in opposite ways. Charge separation, which can result from this response, is, by itself, a mechanism to create an opposing electric field; see Equations (3) and (4). Looking at Equations (10) and (11), the E -field can also be a major contributor to the fluids' energy budgets if it has a nonzero value and is not perpendicular to the fluids' velocity field.

However, the form of the MHD equations that we generally use in global coronal models is simplified through a variety of assumptions to the single-fluid ideal MHD equations. In particular, assuming nonrelativistic flows, the displacement current and electrostatic force are ignored in MHD. As a result, the electric field and current density adopt a secondary role, as they can be eliminated from the equations; i.e., they can simply be computed from the other variables without solving a differential equation ( E = − V × B and J = × B /μ0). The MHD equations then read (here in a nondimensional form, as also used in our code)

Equation (14)

Equation (15)

Equation (16)

Equation (17)

where ${ \mathcal E }$ is the nondimensional internal energy, and I is the identity dyadic.

Assuming plasma with negligible resistivity, using the definition of E as being the cross product of the magnetic and velocity fields, Equations (16) and (17) of ideal MHD can be turned into

Equation (18)

and

Equation (19)

Equations (18) and (19) show the implicit inclusion of the E -field in ideal MHD. While in this sense, the E -field is included in the model, these MHD equations do not account for its absolute value but only for its curl and the divergence of its cross product with the B -field. Unlike the full multifluid model, in the ideal MHD equations without resistivity, there are no mechanisms included that would set constraints on the amplitude of the electric field in case it is accidentally artificially generated in the simulation during convergence, as already pointed out by Sokolov et al. (2021).

Starting with a zero E -field at the beginning of the simulation, the E -field during the run will relax such that Equations (18) and (19) are met. The contribution to the E -field will thus come from its curl and the divergence of its cross product with the B -field. In principle, in steady cases, the former should not contribute to the rise of the E -field, since ∂ B /∂t is zero. Equivalently, if the E -field was nonexistent and remained nonexistent during convergence, the (−( E )) × B term would also be zero, regardless of the B -field orientation. This would remove the contribution of this term to the energy budget (and thus possibly minimize the system's energy).

However, a steady magnetic field is not something that time-stepping codes compute with, even for steady cases. The magnetic field starts at some distribution given by the initial state and keeps adjusting and changing during the time stepping while converging to the steady state, giving rise to ∂ B /∂t in between the iteration steps. This also means that the electric field will attain a certain distribution to satisfy the changing magnetic field. With the ideal MHD formulation, as shown above, the curl of this resulting E -field will be close to zero to satisfy Equation (18), and its orientation with respect to the B -field will be such that Equation (19) is met, but there are no constraints on its actual value.

It should be emphasized that since the E -field in this model represents the misalignment between the magnetic field and the velocity field, its value affects how well the plasma flow will follow the resolved magnetic field lines. Since the V × B product enters the energy equation, ultimately, this does not only directly affect the B - and V -fields but, as will be shown later, also other hydrodynamic variables, such as temperature.

3. Formulating the Inner BCs through E -field Analysis

Now that the E -field issue has been introduced, first, the sources of the spurious E -field in the simulations are described. Next, the inner BC is reformulated in order to reduce the magnitude of this spurious E -field. Results are shown for the steady dipole for both large E -field and low E -field cases, through the comparison of which the effects of the E -field and the impact of the new BC can be studied. Comparison of the results will point to another issue, the effect of numerical diffusion causing reconnection, which will be briefly discussed afterward.

3.1. Mechanisms of E -field Generation

Let us first look at the major sources of the E -field in the simulations. Since the domain investigated here is spherical, the analysis from here on will be interpreted using the spherical coordinate system, r, θ, and φ. During our analysis, the main possible sources were identified as follows:

  • 1.  
    the initial conditions,
  • 2.  
    the inner and outer BCs,
  • 3.  
    internal physical processes such as reconnection, and
  • 4.  
    the mesh topology and domain discretization.

The first two points will be primarily discussed in this paper. The third point represents an actual physical process and is thus not something numerical adjustments can (or should) influence. As will be shown later in this paper, in some cases, premature magnetic reconnection can actually be triggered by the other aspects, and in such a case, it can also be considered as the result of the artificial electric field rather than its source. The last point refers to the fact that the currently applied mesh, created as a radially outward extruded icosahedral surface, has local patches of larger distortion, skewness, and nonorthogonality. This can lead to the generation of artificial fluxes, giving rise to mesh-related remnants in the solution. To first separate these mesh-related artifacts, a technique was employed in which after the first simulation, the mesh was rotated (here by 30° in the positive φ direction) and the simulation repeated (see the procedure in Brchnelova et al. 2022). This means that in the second simulation, the mesh artifacts occur at different locations in the domain and thus can be easily identified and corrected for, if needed, using interpolation from the two solutions at the problematic locations.

In our case, through this technique, it was found that the radial and azimuthal components of the electric field in the solution of the steady dipole were mostly related to the mesh. An example of the Eθ remnants is shown in Figure 2, where the electric field changes polarity once the mesh is rotated by 30° in the positive φ direction. The same was observed for Er . In general, both of these components had very small values compared to the total E -field magnitude. This is expected when looking at the magnetic field of the nonrotating dipole (which has a negligible φ-component) and Equation (17). These two components will thus not be analyzed extensively from here on.

Figure 2. Refer to the following caption and surrounding text.

Figure 2. Contours of Eθ before and after mesh rotation, showing that these structures are mostly mesh related. We show them in a vertical cut (as the dipole does not have longitudinal dependency) with contours set between −0.002 and 0.002.

Standard image High-resolution image

However, the Eφ (poloidal) component was a hundredfold larger and did not change polarity with the rotation of the mesh (see Figure 3), demonstrating that this was created due to things other than the mesh. As it is the dominant component, it is the focus of our analysis in the rest of the paper, as far as the dipolar field is concerned.

Figure 3. Refer to the following caption and surrounding text.

Figure 3. Contours of Eφ before and after rotation of the mesh, demonstrating that this E -field component is unrelated to the mesh but produced through other mechanisms. We show them in a vertical cut (as the dipole does not have longitudinal dependency) with contours set between −0.55 and 0.0.

Standard image High-resolution image

The evolution of Eφ during the transient in one of the simulations is shown in Figure 4. The features that were introduced at the zeroth iteration (left; green arrows), created at the initial state, largely remain in the simulation even after 100 iterations (as shown in the right panel). In this case, the reason the initial state had a nonzero E -field is because the initial velocity profile came from a piecewise linear fit of Parker's wind solution, while the initial B -field came from a potential field source surface (PFSS) solution, and these two were not parallel. Furthermore, an additional Eφ contribution coming from the BC develops around the inner boundary during the iterative process toward steady state, as highlighted in the right panel of Figure 4 with blue arrows. What is shown in Figure 4 already indicates two possible strategies for reducing the artificial E -field, namely by (1) ensuring that the initial state is completely E -field-free (set V 0 such that V 0 × B PFSS = 0) and (2) adjusting the inner BC to produce a minimum contribution to the E -field.

Figure 4. Refer to the following caption and surrounding text.

Figure 4. Demonstration of the types of spurious E -field developing within the computational domain: one due to the initial state of the simulation (left; taken at iteration zero) and one caused by the inner BC (right; generated after 100 iterations).

Standard image High-resolution image

3.2. Comparing Large E and Low E BC Formulations

While the fact that the E -field exists and evolves in the simulations has been shown, what it actually means for the steady-state solution has not yet been demonstrated. Whether or not some E -field exists at the initial state depends heavily on the solver, and it is an issue that can be easily fixed in most cases. Therefore, this aspect is not discussed further. Instead, focus will be placed on the formulation of the inner BC.

In this subsection, we will consider two separate cases. The simulation that was shown in the previous paragraphs, with the BC producing the E -field, is the first case, indicated here as the "large E " simulation. The BC used here was taken from the code Wind-Predict (Réville et al. 2015; Perri et al. 2018) and is one of the standard formulations for global coronal models. In this setup, on the inner boundary, it is assumed that the radial and azimuthal components of the B -field can be derived from the PFSS solution, originally expressed in Cartesian coordinates:

Equation (20)

Equation (21)

where the b subscript refers to the boundary location, and, in the instances of coordinate transforms, ρb represents $\sqrt{{x}_{b}^{2}+{y}_{b}^{2}}$. Then, the velocity condition is formulated such that the poloidal flux is removed. Thus, with

Equation (22)

Equation (23)

the radial, azimuthal, and poloidal velocities on the boundary are

Equation (24)

Herein, the value of 1935.07 m s−1 was the prescribed radial outflow on the inner boundary, as coming from Parker's wind profile. This value was chosen because it is the default value used in the Wind-Predict code, through which our model was originally validated (Perri et al. 2022).

The other simulation (i.e., "low E ") was run with the same setup and initial conditions, apart from the fact that on the inner boundary, the E -field was enforced to be zero in all of its components via

Equation (25)

from which the imposed direction of the velocity on the boundary V b was derived. In addition, while in the previous case, Bθ was set according to the PFSS solution (see Equation (21)), in this setup, this constraint was omitted, and Bθ was determined through a Neumann condition just like Bφ .

These seemingly small adjustments resulted in considerable differences between the results. The radial velocity contours of the two cases are shown in Figure 5. It is apparent that the "large E " case reaches higher velocities on the outer boundary and also creates more diffused profiles of the equatorial streamers. Furthermore, the "low E " simulation has additional features of locally enhanced radial velocity patches near the outer boundary in the equatorial regions. This is a subtle but important difference, since it fundamentally affects the results on the 21 R surface, which is where the heliospheric EUHFORIA code is supposed to be coupled and take its input data from. These two simulations would have fundamentally different velocity distributions passed to EUHFORIA, one of them with larger velocities near the poles and the other with enhanced velocity in the region of the heliospheric current sheet.

Figure 5. Refer to the following caption and surrounding text.

Figure 5. Radial velocity contours of the steady dipole case for two simulation cases with low and large electric fields. For better legibility, units are in kilometers per second.

Standard image High-resolution image

The observed velocity patches in the equatorial regions are due to magnetic reconnection. The expected profile of the magnetic field lines around a solar dipole with an outflow can be found, for example, in Pneuman & Kopp (1971). While most of the magnetic field lines remain open, depending on the magnetic field strength, there is a magnetic reconnection forming a current sheet at distances of 1–3 R in the equatorial region. This collimated sheet then propagates throughout the heliosphere. In our simulations, however, we see an additional reconnection in this current sheet.

Due to the finite discretization and the presence of some unavoidable artificial diffusion, when the current sheet reaches a certain minimum thickness, it reconnects, creating an "X-point" in the B -field lines, opening these lines up behind it. Where exactly (and if) this happens depends on a variety of factors, such as the BCs, the B -field strength, and the grid resolution. The presence of this X-point and its behavior will be briefly touched upon after the end of this subsection.

How the flow field responds to this X-point is the cause of the qualitative differences in the velocity profiles in Figure 5. In the "large E " case, the velocity field does not follow the magnetic field lines well. Thus, even though the B -field changes topology, the velocity profile remains more or less undisturbed as it propagates outward. As a result, the magnetic reconnection does not show in the final velocity field. For the "low E " run, this is not the case, as here the velocity field follows the magnetic field, so it also responds to the change in its topology. This can be more clearly seen in Figure 6, where the edge of the domain is plotted with Vr in the background and with the B -field lines plotted on the top. Behind the X-point, the B -field lines start to open up.

Figure 6. Refer to the following caption and surrounding text.

Figure 6. Demonstration of the high-velocity patches near the edge of the domain in the case of a flow field where the V and B distributions are well aligned (left) and a flow field with a large misalignment (right).

Standard image High-resolution image

This showcased "ballooning" of the streamers due to numerical diffusion is not physical, though it might be stabilizing for most simulations. However, it can present problems later on, when, for example, determining magnetic connectivity; if we trace a magnetic field line from the Earth (or another point of interest in the heliosphere) back to the Sun, it could get trapped in this diverging region instead of finding its way to the solar surface and the corresponding photospheric features. In addition, if we project this Br on the outer surface, in the regions where the current sheet started to diverge, the sign of the Br field might be incorrect. Additional postprocessing of CFD results might be required to avoid these problems when coupling to heliospheric codes as a result.

The more diffused profile of the "large E " case, especially around the central region, is shown better as a close-up in Figure 7. Considering that the two simulations use exactly the same grid, and none of them uses a flux limiter (which would include excessive numerical dissipation), minimizing the E -field leads to a substantial improvement in the resolution of the features. This difference can mean that perhaps a coarser grid could be used in production runs while achieving the same accuracy, which would save computational resources.

Figure 7. Refer to the following caption and surrounding text.

Figure 7. Radial velocity contours near the solar surface, with the color bar adjusted to demonstrate the enhancement in the sharpness of the streamers for the "low E " simulation (left). For better legibility, units are in kilometers per second.

Standard image High-resolution image

In order to visualize how much the E -field has changed between the two cases via the adjustment of the inner BC, in Figure 8, the Eφ is shown. The color bar of each subplot is adjusted to show the main features.

Figure 8. Refer to the following caption and surrounding text.

Figure 8. Contours of the Eφ field with the color bar adjusted such that the features show in both cases.

Standard image High-resolution image

Some regions of a locally larger E -field are still observed in the "low E " case, mainly following the mesh on the surface. Despite that, the E -field is everywhere in the domain at least 50 times smaller than the E -field of the simulation without the adjusted BC (right). For the improved case, in the domain, the E -field follows the structure of the streamers, which is where it is most difficult for the velocity and magnetic fields to align. In the other case, the E -field structure in the domain is mostly spherical, since it is mostly the inner spherical BC generating it.

The sharpness and magnitude of the velocity field are, however, not the only aspects that were found to change significantly through the reduction of the E -field. It was also found that the density and pressure profiles (and thus also the derived temperature profile) were different both qualitatively and quantitatively. Before the adjustment, the temperature (here computed as the ratio of the nondimensional pressure and density) was enhanced in the regions of strong magnetic field, i.e., around the poles for the case of a dipole; see the right panel of Figure 9. After the adjustment, the temperature was instead following the streamers around the equatorial regions (see the left panel of the same figure).

Figure 9. Refer to the following caption and surrounding text.

Figure 9. Temperature distribution (here expressed simply as a ratio of pressure and density) of the steady dipole as resolved in the "low E " (left) and "large E " (right) cases.

Standard image High-resolution image

The density profile was also found to be more pronounced for the "low E " simulations; see Figure 10. This might significantly aid the accuracy of procedures such as white-light imaging, where the density is the parameter to be integrated along the line of sight.

Figure 10. Refer to the following caption and surrounding text.

Figure 10. Logarithmic density profiles of the "low E " (left) and "large E " (right) simulations.

Standard image High-resolution image

Lastly, convergence impacts should be discussed, as computational speed is, next to physical accuracy, a crucial feature of global coronal modeling and any space weather simulation in general. In general, with the new formulation, the steady dipole case required two to three times more iterations in order to reach the same final residual. As we are mostly interested in realistic magnetic map–driven applications, however, a worse convergence of the dipole case is of relatively little importance. When running a variety of real magnetic map–based cases as discussed in Kuzma et al. (2022), it was observed that the adjusted BC led to easier convergence when using maps, especially those of the higher ${l}_{\max }$. For a constant CFL of 2 for the 2008 eclipse used later in this paper, the convergence is compared for the two inner BC formulations in terms of a Vx residual in Figure 11. After the initial jump in the residual, the two simulations converge to the same residual of −4 after roughly the same number of iterations. The initial larger residuals in the run with the adjusted inner BC are due to the changing Bθ , as it is released from the PFSS solution value.

Figure 11. Refer to the following caption and surrounding text.

Figure 11. Comparison of the convergence in the Vx component between the two eclipse cases computed with and without an E -field generating boundary.

Standard image High-resolution image

3.3. Presence of the X-point and Current Sheet Stability

Before moving into further investigation of the BCs, the issue of the presence of the X-point in our CFD simulations, as mentioned in the discussion of Figure 5, should be addressed. It is also important to discuss this phenomenon because it provides a context for the analysis of the outer BC formulations, mentioned later on in the paper.

The (additional) reconnection of the B -field lines that we have observed is also normal in other numerical codes, not just COCONUT (e.g., see the comparison between our code and Wind-Predict in Perri et al. 2022, where the same behavior is observed in the solution of Wind-Predict). As found during our numerical experiments, beyond the BCs and the limiter, it is mostly dependent on the grid resolution; with increasing resolution, the reconnection point occurs further away from the Sun. Table 1 shows the location of this reconnection point (in terms of solar radii) for four different grids.

  • 1.  
    The coarse/coarse 300,000 grid: 5120 surface elements, 65 radial steps.
  • 2.  
    The coarse/fine 980,000 grid: 5120 surface elements, 192 radial steps.
  • 3.  
    The fine/coarse 1.3 million grid: 20,480 surface elements, 65 radial steps.
  • 4.  
    The fine/fine 3.9 million grid: 20,480 surface elements, 192 radial steps.

In Table 1, levels are used in order to express the longitudinal/latitudinal discretization. Level 5 refers to the fifth-level subdivision of the elementary icosahedron from which the mesh is derived with 5120 surface elements. Level 6 refers to the sixth-level subdivision with 20,480 surface elements.

Table 1. The Position of the Reconnection Point in the Domain for a Steady Dipole (in Terms of Solar Radii) as a Function of Mesh Resolution

No. of Cells (millions)Lat./Long.RadialX-point (solar radii)
0.3Level 5Coarse7.2
1.0Level 5Fine8.4
1.3Level 6Coarse8.1
3.9Level 6Fine13.3

Download table as:  ASCIITypeset image

By simply refining the domain (without any changes to the physics of the simulation), from Table 1, it can be observed that the X-point moves almost twice the distance away from the solar surface. Thus, it can be inferred that the reconnection occurs mainly due to the finite discretization, with its location depending on the amount of numerical diffusion in the domain.

In addition, it was found that the behavior and shape of the current sheet (and thus also the location of the reconnection point) also depend on the amount of the B -field divergence in the flow field. By default, in our simulations, for the B -field divergence cleaning constant, we use a value of 1, leading to the amount of divergence of B to be on the order of −4 to −5 (nondimensional). With lower values of the cleaning constant, it was observed that the amount of divergence of the B -field decreased; see Figure 12, where the logarithm of the absolute value of ϕ (the divergence cleaning parameter) is shown. The BC treatment for ϕ (homogeneous Neumann or Dirichlet) on the inner boundary does not significantly affect this distribution, and in the default configuration, ϕ is set to zero (i.e., homogeneous Dirichlet).

Figure 12. Refer to the following caption and surrounding text.

Figure 12. The amount of · B in the numerical solution, depending on the selection of the divergence cleaning constant (1 on the left, 0.4 on the right), is shown in terms of the logarithm of the absolute value of · B (nondimensional).

Standard image High-resolution image

However, decreasing the value of the cleaning constant below a certain threshold destabilizes the simulation. The particular value that causes this most likely depends on the specific scheme, the mesh, and the BCs; in our case, it is around a value of 0.3. The simulation reaches a certain minimum residual, following which the residual increases again and starts to oscillate indefinitely. What this means for the simulation is that the current sheet becomes unstable. The reconnection region starts to move forward and backward between iterations (on the current mesh, generally oscillating between 5 and 10 R), creating lumps of mass that are ejected outward. To illustrate this, the projection of the radial velocity on the outer surface (where the passing lumps are the most visible) is shown in Figure 13. We should note that this kind of unstable structure is actually visible in the observations of the solar wind, although they appear for more physical reasons (reconnection along the Harris current sheet that ejects flux ropes and density structures; see Réville 2020).

Figure 13. Refer to the following caption and surrounding text.

Figure 13. The projection of Vr in meters per second on the outer surface of the domain before (left) and during (right) the unstable current sheet residual oscillation shows that once the unstable oscillation is activated, the current sheet stops being continuous and forms mass lumps that are ejected outward.

Standard image High-resolution image

Thus, it is apparent at this point that both the numerical dissipation due to the finite discretization and the amount of · B in the domain affect the shape and behavior of the current sheet. As we aim at developing software that will eventually have standardized and automated handling of magnetic map–based simulations, the abovementioned oscillating behavior in the residual is not desirable, even though at certain phases, the reconnection point is located much further away from the Sun than without it. When the residual starts oscillating, it becomes difficult to infer the state of convergence of the solution without any visual inspection. Since the higher values of the cleaning constant give quantitative results comparable to the time-averaged values of the oscillating solution, it was decided to keep the value of the cleaning constant to 1 for all of our simulations.

Even though we can now explain the behavior and origin of the X-point, its presence still complicates matters for the reasons outlined earlier, such as coupling to EUHFORIA or magnetic connectivity studies. It is thus important to lower the amount of numerical diffusion as much as computationally feasible and move this reconnection point as close to the outer boundary as we can, which can, to some extent, be realized through the outer BCs.

4. Formulating the Outer BC through a Parametric Study

It has already been established that the inner BC has a major influence on the results. In order to maximize our gain in terms of accuracy and computational performance for a given mesh resolution, the outer BC should also be addressed.

First, a parametric study will be presented, where the formulations of all of the primitive variables are varied and studied systematically. Afterward, special focus will be placed on how the density and magnetic field BCs should be formulated at 21.5 R. Finally, a new technique will be demonstrated where the BC effects can be further reduced via a careful grid design.

4.1. Parametric Outer BC Analysis

As pointed out in the Introduction, the formulation of the outer BC in the available literature is often reduced to calling it a simple extrapolation. It is indeed clear that, since the outer boundary is supersonic, the hydrodynamic variables cannot be prescribed but must be extrapolated from the inner states. However, this extrapolation can be formulated in various ways. The prescription can simply be done through a zero-gradient extrapolation (i.e., homogeneous Neumann condition) or the extrapolation of the given variable via a function of the radius or density. To our knowledge, the effects that these different formulations have on the behavior of the code or shape of the solution have not yet been extensively discussed in the available literature. For this reason, a parametric study was performed to analyze these effects in a systematic way.

All of the primitive variables of the code, ρ, Bx , By , Bz , Vx , Vy , Vz , p, and ϕ (the divergence cleaning parameter), were extended via either zero gradient (the ghost state being equal to the inner state, where the distances of the inner cell center and the ghost cell center to the boundary are equal), a function of radius or density, or both. The formulations of the specific functions for the velocity and magnetic field were taken (apart from the last expression in Equation (26)) from Talpeanu et al. (2022). The following expressions for density

Equation (26)

velocity

Equation (27)

or

Equation (28)

magnetic field

Equation (29)

or

Equation (30)

and ϕ

Equation (31)

were combined into nine different cases, as summarized in Table 2. In the Table, "G" refers to the ghost state, "I" to the inner state, and "B" to the location on the boundary. To achieve continuity in temperature, the pressure was extrapolated in the same way as the density. The magnetic configuration was again dipolar for easier evaluation. All of these cases were simulated with the same CFL law (starting from 2 with the CFL doubling every few hundred iterations up to 128) for controlling the convergence to steady state, making comparisons between them possible.

Table 2. The Setup of Nine Different Dipole Simulation Cases with Varying Outer BC Settings

No. ρ Br Bθ Bφ Vr Vθ Vφ p ϕ
1G = IG = IG = IG = IG = IG = IG = IB = IB = 0
2G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ G = IG = IG = IG = IG = IG = IG = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ B = 0
3G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ G = IG = IG = IG = IG = IG = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ B = 0
4G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ G = IG = I $\tfrac{{r}_{I}}{{r}_{G}}$ G = IG = IG = IG = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ B = 0
5G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ G = IG = I $\tfrac{{r}_{I}}{{r}_{G}}$ G = IG = IG = IG = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ G = I
6G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ G = IG = I $\tfrac{{r}_{I}}{{r}_{G}}$ G = I $\tfrac{{r}_{I}^{2}{\rho }_{I}}{{r}_{G}^{2}{\rho }_{G}}$ G = IG = I $\tfrac{{r}_{I}}{{r}_{G}}$ G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ B = 0
7G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ G = IG = IG = I $\tfrac{{r}_{I}^{2}{\rho }_{I}}{{r}_{G}^{2}{\rho }_{G}}$ G = IG = I $\tfrac{{r}_{I}}{{r}_{G}}$ G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ B = 0
8G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ G = IG = IG = IG = I $\tfrac{{r}_{I}^{2}{\rho }_{I}}{{r}_{G}^{2}{\rho }_{G}}$ G = IG = I $\tfrac{{r}_{I}}{{r}_{G}}$ G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ B = 0
9G = I $\tfrac{{r}_{I}^{3}}{{r}_{G}^{3}}$ G = I $\tfrac{{r}_{I}^{2}}{{r}_{G}^{2}}$ G = IG = I $\tfrac{{r}_{I}}{{r}_{G}}$ G = I $\tfrac{{r}_{I}^{2}{\rho }_{I}}{{r}_{G}^{2}{\rho }_{G}}$ G = IG = I $\tfrac{{r}_{I}}{{r}_{G}}$ G = I $\tfrac{{r}_{I}^{3}}{{r}_{G}^{3}}$ B = 0

Download table as:  ASCIITypeset image

For each simulation, the Vr profiles were compared, as well as the maximum Vr value and the location of the X-point in the B -field lines, since its location generally directly corresponded to the divergence of the field lines near the outer boundary. The evaluation of the exact location of the X-point has an uncertainty of approximately ±0.05 R, since it was determined by eye inspection of the solution in visualization software. In addition, the total time of each simulation required to reach the Vx residual of −10 was also measured to compare the convergence. The results for the nine cases are given in Table 3.

Table 3. Results for the X-point Location, Maximum Vr , and Time to Converge Down to the Residual of −10 in Vx for the Various Outer BC Simulation Cases

No.X-point (R) ${V}_{r,\max }$ (m s−1) ${T}_{{V}_{x}\mathrm{res}\lt -10}$ (s)
15.83.09E+057135.12
26.72.87E+057174.89
37.22.86E+057150.49
47.22.84E+057162.78
56.52.84E+05N/A
67.22.84E+057171.25
77.22.84E+057157.08
87.12.86E+057161.79
97.22.79E+057157.28

Download table as:  ASCIITypeset image

From observing the convergence alone, it can be quickly concluded that the divergence cleaning parameter ϕ must be set to zero via the Dirichlet BC instead of being extrapolated via zero gradient, given that the fifth simulation never converged. The results presented in Table 3 were taken at the Vx residual of roughly −2.5. It was further tested to see which Dirichlet formulation is better—setting ϕg = 0 or ϕb = 0—but both led to roughly the same convergence and solution, with the former giving a slightly larger divergence of the B -field lines near the outer boundary. The convergence of the other cases, in terms of the computational resources needed, was almost the same.

According to the results in Table 3, if we consider the other two evaluated parameters alone (the maximum Vr and the location of the X-point), the following points can be further raised.

  • 1.  
    From comparing cases 3 and 4 and 6 and 7. Whether we extrapolate Bφ via zero gradient or radius is of no consequence (at least for the nonrotating dipole, where Bφ is negligible).
  • 2.  
    From comparing cases 7 and 8 and 8 and 9. The Br should be extended via a function of radius (here r−2) instead of a zero gradient (this will be revisited in the subsection below).
  • 3.  
    From comparing cases 2 and 8 and 4 and 6. Whether we extrapolate V via zero gradient or the given laws is of barely any consequence.
  • 4.  
    From comparing cases 1 and 2. The density (and pressure) should be extrapolated as a function of radius (here r−2).
  • 5.  
    From comparing cases 6 and 9. The density (and pressure) extended via r−3 give lower maximum speeds.

Obviously, simply observing the location of the X-point alone is insufficient to justify the variable prescription to make the case physical. Nevertheless, these results are a good indication of which conditions the behavior of the solution is very sensitive to and which it is not. Especially the extrapolation of the radial magnetic field component seem to have a profound effect on the magnetic field line topology, judging from the shifting of the reconnection location. In addition, the formulation of the extrapolation of density also affects the maximum speeds in the domain. Thus, these two aspects will be elaborated on in more detail in the following subsections.

4.2. Density Profile Analysis

While Table 3 indicates that the density extrapolation affects the maximum speed in the domain, it is still not clear whether a more physically accurate result is given by the inverse square, inverse cube, or perhaps some other law. Most of the available coronal models use the inverse square extension (see, for example, Talpeanu et al. 2022), as this represents a flow that is expanding spherically with a uniform radial speed. However, from the Vr contours shown in, for example, Figure 5, it is apparent that the flow is still accelerating near the outer boundary, making the uniform-flow assumption incorrect. In addition, it will be shown later that in some regions of the domain of data-driven cases, the flow is expanding superradially. For these reasons, a steeper descent of ρ could be expected.

In order to determine which formulation is more accurate, an extended grid analysis was performed, where the computational domain radius was set to 30 R, and the cells around 21.5 R were more refined radially to capture the local gradients better. This way, the outer BC was relatively far away from this region; thus, the undisturbed density profile at 21.5 R that would exist at this location without the presence of the boundary could be investigated. The setup was otherwise equivalent to case 9 from the parametric study described above.

Initially, the 1/r2 and 1/r3 profiles were compared to the nondimensional density. For easier comparison of the local slopes, the logarithms of the profiles were used for the analysis. These logarithms were plotted around the region of interest at 21.5 R, where they were made to intersect with the logarithmic nondimensional density profile as extracted from the CFD solution. The results are shown in Figure 14, where the green profile is the inverse square distance function, and the red profile is the inverse cubic distance function.

Figure 14. Refer to the following caption and surrounding text.

Figure 14. Comparison of logarithms of different distance functions (inverse cubic in red, inverse square in green, and inverse 2.5 power-law profile in blue) with the behavior of the logarithm of the nondimensional density vs. the distance from the Sun (in solar radii). The profiles were designed to intersect at 21.5 R to allow for slope analysis.

Standard image High-resolution image

It was observed that the actual CFD density slope lay roughly in the middle between the inverse cube and inverse squared profiles, and thus also a new profile, the function of 1/r−2.5 was added, shown as the blue line in Figure 14. It can be easily concluded that this profile matches the density slope at the given radius almost perfectly. With this power law used as the outer BC for density, the maximum radial velocity reached for the steady dipole (now again modeled in the 21.5 R domain) is 2.82E+05 m s−1, considering the same resolution as used for the cases in Table 2.

4.3. Magnetic Field Analysis

The same analysis was performed on the magnetic field BC. For a flow that is not expanding superradially, the magnitude of Br should be roughly decreasing with r2. Capturing the correct gradient of Br is important, as it also strongly affects how Bθ and Bϕ are resolved. To demonstrate the difference that the extrapolation of Br alone causes, we compare Br and Bθ between cases 2 and 3 from Table 2 by evaluating the differences Br,diff = Br,2Br,3 and Bθ,diff = Bθ,2Bθ,3 in Figure 15. From this figure, two observations can be made. First, as a result of the outer BC formulation, Br changes not only near the boundary but also inside of the domain. Second, it is apparent that Bθ also changes as a result of the Br extrapolation, despite the fact that the condition for Bθ remained unchanged.

Figure 15. Refer to the following caption and surrounding text.

Figure 15. Differences Br,diff = Br,2Br,3 (left) and Bθ,diff = Bθ,2Bθ,3 (right) between cases 2 and 3 as a result of using different Br extrapolations.

Standard image High-resolution image

The consequences this has on the flow field and topology can be easily visualized when comparing the resulting magnetic field lines in Figure 16. One of the field lines from case 2 is outlined in red and then projected onto the domain of case 3, where it is compared to a case 3 field line in blue that starts at the same point on the boundary. This illustrates that the field lines of case 3 are less divergent, especially close to the outer edge.

Figure 16. Refer to the following caption and surrounding text.

Figure 16. Comparison of the shape of the "ballooning" current sheet of cases 2 and 3 as a result of a different Br formulation. For easier comparison, the red line following a case 2 B -field line (left) is projected onto the case 3 flow field (right), where the same line (starting and ending at the same point on the boundary) is followed in blue.

Standard image High-resolution image

The fact that the outer BC affects the magnetic topology so extensively even inside of the domain is concerning, especially since we cannot always ensure that there are no regions where the flow would expand superradially (as will be shown later in a magnetogram-driven case).

4.4. A BC-independent Grid?

As shown in the previous two sections, correct formulations of the BCs are not always straightforward and can affect the flow in the entire domain. Especially for cases where the BC formulations cannot be formulated universally, it would be useful to have additional tools to reduce the extrapolation error.

The larger the region of extrapolation (the ghost cell), the larger the extrapolation errors are, which can then also more considerably spoil the solution in the rest of the domain. In the original grid that has been used so far, the last cell has a radial size of roughly 1 R, meaning that the center of the ghost cell is 0.5 R away from the boundary. If the last grid cell is made even larger, the effects become even more pronounced. Inverting this logic, with a very small edge cell, the ghost cell center is also very close to the boundary; thus, the extrapolation errors should be limited.

Moreover, the results on the outer boundary are very important from the perspective of coupling and transferring the CFD results to other software. Thus, not knowing how much of an effect the BC formulation can have on these results (at least locally), we no longer deem it safe to apply these BCs exactly at the location from which the solution is to be read. It would thus be better practice to extend the domain beyond the coupling location of 21.5 R to make sure that the solution at the coupling location is not significantly affected in case the BC formulation is inadequate.

For this reason, an experimental grid was set up, which extends up to 25 R and has a very small cell on the outer edge to demonstrate that the extrapolation error depends on the extrapolation distance. With this new grid, cases 1 and 9 (i.e., the cases with arguably the largest differences between them in outer BC formulations) were rerun and compared. The new mesh is shown in Figure 17, along with the 21.5 R location and the boundary detail.

Figure 17. Refer to the following caption and surrounding text.

Figure 17. The BC-independent mesh developed for coupling with other codes. The ghost cell is very small; thus, the outer BC extrapolation errors are limited. In addition, the boundary is shifted further away from the 21.5 R from which the results are extracted, such that the solution at this coupling location is not affected by the BC formulation.

Standard image High-resolution image

For both grids (the original and the new one), the relative differences (in absolute scale) in Vr between the two cases were evaluated. These relative differences are plotted in Figure 18, on the left for the original grid and the right for the new grid. Once again, we can see that on the former mesh with the large ghost cell (on the left), the outer BC formulation affects the solution even very close to the Sun. The differences with the new mesh are not even properly visible with the color scale adjusted for the old grid, as they are 10–100 times smaller in magnitude everywhere in the domain. Clearly, with this new mesh design with a small ghost cell, the relative differences between the cases due to different extrapolation formulations are much lower. In Figure 19, we can also see that with the new mesh design, the artificial divergence of the magnetic field lines near the outer boundary decreased.

Figure 18. Refer to the following caption and surrounding text.

Figure 18. Relative difference in Vr (in the absolute sense) between cases 1 and 9 with the ordinary (left) and new (right) mesh. Before, the differences in the formulation of the BC between cases 1 and 9 led to relatively large differences in the velocity profile. With the improved mesh with smaller extrapolation effects, this is no longer the case.

Standard image High-resolution image

It should be noted that this grid was designed in this way to merely demonstrate the effects of the size of the ghost cell. The fact that the last cell is so much smaller than the neighboring cell, with such a large aspect ratio difference, could, in practice, cause problems with convergence. If that happens, a more gradual decrease in cell size near the outer boundary might be required at the cost of having to include more cells and thus increasing the computational demands. In our case, however, with this grid, we have so far not observed any convergence problems even when resolving solar maxima, nor we have noticed any significant reduction in the computation speed.

Figure 19. Refer to the following caption and surrounding text.

Figure 19. Demonstration of how the new grid design (right) with a small ghost cell can help prevent excessive opening of the streamers observed with the original grid (left) with the same outer BCs.

Standard image High-resolution image

The abovementioned analysis of the inner and outer BCs considered a dipolar case only. To see how well the results of this analysis hold for a real case, the same analysis was repeated on a magnetogram-driven simulation.

5. Application to a Magnetic Map–Driven Simulation

Having analyzed BC formulations on a simple dipole simulation, it is essential to also look at realistic magnetic map–driven simulations, as these are the main intended applications for global coronal modeling. To this end, the solar eclipse from 2008 was investigated, the magnetic map of which (in combination with the PFSS solution for Bθ ) is shown in Figure 20. The magnetic map used was an MDI map with an ${l}_{\max }$ of 25 (Scherrer et al. 1995). The projections used are the same as for the dipole, where a vertical cut (at y = 0 in the Cartesian system) was made. This projection is preferred unless observational comparisons must be made, since from the previous analysis of the dipole, in this configuration, it is already known where the mesh artifacts are located.

Figure 20. Refer to the following caption and surrounding text.

Figure 20. Magnetic field configuration, Br and Bθ from PFSS, of the 2008 eclipse.

Standard image High-resolution image

First, let us observe the effects of the inner BCs and the artificial E -field. Exactly as for the dipole, "low E " and "large E " simulations were run.

Similar to the dipolar results shown previously, these adjustments to the BC allowed the simulation to arrive at a result with a much lower E -field (locally at least 20 times lower everywhere in the domain) compared to the original "large E " BC defined in Equations (22)–(24); see Figure 21. This directly translated into a very different temperature profile, see Figure 22, which was similar to the case of the dipole.

Figure 21. Refer to the following caption and surrounding text.

Figure 21. The Eφ component for the two eclipse cases computed with and without the E -field generating boundary.

Standard image High-resolution image
Figure 22. Refer to the following caption and surrounding text.

Figure 22. The Vr contours for the "low E " and "large E " 2008 eclipse cases.

Standard image High-resolution image

These two results were compared to the 2008 eclipse observations by M. Druckmüller, P. Aniol, and V. Rušin 3 in Figure 23. In an ideal-case scenario, we could employ techniques such as white-light imaging to compare our results to the photos of the corona. However, since at this stage, we are still working with a polytropic model without any additional heating terms, the magnetic field is a much more reliable indicator of simulation accuracy compared to the density (which is required for white-light imaging). To perform this comparison using the magnetic field with as much objectivity as possible, we adopt the approach of Wagner et al. (2022), where we focus on the resolution of streamers as the decisive factor. This is because of the fact that in the future, it is expected that these simulations will also be used to compute the evolution of flux ropes (which will be seeded on the inner boundary) for modeling of CMEs, as well as the propagation of the solar energetic particles. Both of these aspects are essential elements for space weather forecasting and heavily depend on the resolution of the background coronal dynamics, such as streamers.

Figure 23. Refer to the following caption and surrounding text.

Figure 23. Comparison of the results of the 2008 simulation with "low E " (right) and "large E " (left) setups with the observations using the framework by Wagner et al. (2022).

Standard image High-resolution image

In Figure 23, the first row shows the radial velocity contours in the background and the magnetic field lines plotted on top of them, which were initiated randomly but in the same places for both simulations. The "low E " simulation is on the right, while the "large E " is on the left. In the second, third, and fourth rows of the figure, we can see the comparison of the angle of the main streamer, the extent of the streamer, and the size of the streamers, respectively. These aspects as determined from the observation are indicated in red, and for each simulation result, the corresponding aspects are indicated in pale blue in the respective subfigures. The size of the streamers was determined at 1.3 R with an offset from the surface, just like in the case of Wagner et al. (2022). This offset was used due to the fact that the size of the streamers too close to the surface is mostly dependent on the magnetogram type and its resolution, while further away, the determination of the size from the observation becomes more and more difficult.

The biggest difference between the two models is already observable from the first row. It is the fact that, in the case with the large electric field (on the left side of the figure), the B -field lines are closed and round and do not copy the observed sharp streamers well. As a result, for example, the SE feature in the case of the "large E " seems to only consist of closed field lines, rather than forming a sheet surrounded by open field lines as shown in the observations. The same holds for the dominant western feature. Apart from the upper western feature, the new BC can also better reproduce the angle of the streamers (second row). This result also better matches the extent of the streamers (third row) and slightly better matches the size of the features (fourth row).

Just like in the case of the dipole, while the differences in the sharpness of the features were significant, the most striking differences were seen in the temperature profile. The temperature profiles for the two cases, here defined simply as the ratio of the nondimensional pressure and density, are shown in Figure 24. The two cases have completely different temperature distributions and magnitudes despite having the same temperature prescribed on the inner boundary. The fact that such important differences can arise as a result of the implicit prescription of the electric field has, to our knowledge, never been highlighted in the existing literature. Next, since we could see in the case of the dipole that the magnetic structure of the current sheet was heavily influenced by the extrapolation error, here we applied the same analysis to demonstrate these effects on real magnetograms. We have examined the Br profile along one such streamer, the lower left high-intensity streamer of the 2008 map. In this analysis, the corrected, extended, small ghost cell grid was used for the map simulation; thus, the slope at 21.5 R should not be heavily affected by the presence and formulation of the outer BCs. The cut and corresponding Br profile are shown in Figure 25. Here, to determine the center of the streamer along which the Br profile was extracted, the logarithm of the absolute value of Br is shown in the background of the contour plot. The location of the smallest ${\mathrm{log}}_{10}({B}_{r})$ corresponds to the location of the current sheet, as was determined by the magnetic field lines.

Figure 24. Refer to the following caption and surrounding text.

Figure 24. Comparison of the nondimensional temperature profiles between the 2008 eclipse cases computed with (right) and without (left) an E -field generating boundary.

Standard image High-resolution image
Figure 25. Refer to the following caption and surrounding text.

Figure 25. The Br slope (logarithmic; right) along a streamer from the 2008 eclipse simulation on the BC-independent, extended grid (shown as a black line in the left panel), showing a steeper grid than the expected 1/r2 scaling.

Standard image High-resolution image

Figure 25 shows that along this streamer, Br no longer follows the inverse squared profile but decreases much more steeply. Actually, the slope, as shown from the fitting curve, lies somewhere between the third and fourth inverse power. In the case of the dipole, prescribing the descent of Br with a smaller power resulted in the streamers opening up more than in the case of an accurate prescription. In this case, we see the same effect, with the difference that here, even the 1/r2 law is insufficiently steep. This is, however, only limited to the region of the streamer.

Thus, having a grid that limits the effect that the extrapolation can have on the B -field topology, such as the grid introduced in the previous section, is truly an advantage. To demonstrate the effects of the grid alone, the 2008 map results on an ordinary grid with the r−2 extrapolation were compared to the 2008 map results for the improved grid with small ghost cells, also using the r−2 extrapolation. The magnetic field lines (along with the absolute value of Bθ ) are shown in Figure 26, where the most prominent, lower left streamer is shown.

Figure 26. Refer to the following caption and surrounding text.

Figure 26. Comparison between the B -field lines (with the absolute value of Bθ in the background) for the old and new BC-independent grid, with both simulations extrapolating Br through the inverse square power. The results for the old grid with excessive divergence are shown on the left, while the results with the adjusted grid with small ghost cells are on the right.

Standard image High-resolution image

It is clear that the extrapolation error with the original grid leads to excessive divergence of the streamlines near the boundary due to the insufficient extrapolation power. The same locally incorrect BC with the improved grid, however, does not show this excessive divergence, as the angle of the B -field lines does not change near the boundary.

In summary, from the magnetic map–based application, it can be seen that setting the initial state and the inner boundary to produce no electric field leads to quantitatively and qualitatively different solutions, with more physical temperature profiles, sharper streamers, and a better reproduction of the observational data. Using a grid that limits the errors due to extrapolation on the outer boundary, on the other hand, prevents excessive divergence of the streamers without the need to locally modify the extrapolation laws.

6. Conclusions and Recommendations

In this study, we have focused on the numerical aspects of global coronal modeling. We started with the inner BC, which we got through an analysis of the ideal MHD formulation compared to the full multifluid MHD. Due to the removal of the magnitude of the E -field from the MHD equations, which in practice represents how well the magnetic and velocity structures are aligned and focused, the ideal MHD equations can lead to qualitatively and quantitatively very different results simply depending on the initial state and BC formulations. It is thus important to monitor the E -field in the simulations and aim to reduce the amount of it generated artificially. Two different techniques to avoid excessive E -field were discussed in this paper: (i) ensuring that the simulation is initiated from a completely E -field free state and (ii) adjusting the inner BC to prevent the generation of the E -field on the inner surface.

Here the two types of simulation cases were compared: one with a large electric field in the domain and one with a low electric field. It was shown that the artificially generated E -field leads to streamers being resolved less accurately on the same grid. Furthermore, it was also found that the resulting temperature profile had a fundamentally different shape when the E -field was minimized compared to the simulation with the spurious E -field–generating BC. The new temperature profile followed the structures of the streamers instead of the magnetically enhanced regions.

Briefly, we have also discussed the problem of additional reconnection in the domain due to numerical diffusion. We have shown that the location of the region where this happens depends on the refinement of the grid and the amount of magnetic field divergence in the domain.

Next, the outer BCs were discussed. Since many formulations are now in use in which the variables are extrapolated to the ghost cells or onto the outer boundary, a parametric study was conducted to study the effects of these formulations in a systematic way. Nine different cases were compiled, where the BC formulations were varied for the velocity, magnetic field, pressure, density, and divergence cleaning parameter. Several conclusions were reached from this study, with some of the most notable being that

  • 1.  
    the divergence cleaning parameter needs a zero Dirichlet outer BC for the simulation to converge;
  • 2.  
    as long as the divergence cleaning parameter is set through a zero Dirichlet condition, the convergence performance of the other cases with varying outer BC formulations was almost the same; and
  • 3.  
    the aspects that seem to affect the solution the most are the extrapolation formulations of density and the radial B -field component.

Afterward, the extrapolation of ρ and Br was investigated in more detail. This was done through running an extended-domain simulation up to 30 R, such that the undisturbed profiles of these variables at the intended boundary, at 21.5 R, could be studied. It was found that at this distance, the density decreases roughly with r−2.5 for our conditions, and that the formulation of the Br outer BC can affect the magnetic field topology in the entire rest of the domain, which can be problematic in case we locally obtain superradially expanding flow. To further limit outer BC extrapolation errors beyond their careful formulation, an additional technique was presented: a new grid design. This design has very small cells in the outermost radial layer, such that the ghost cells are also very small and very close to the boundary. In this fashion, the extrapolation errors due to the BC formulation are limited, as the magnitude of the extrapolation errors depends on the extrapolation distance. In addition, this grid extends beyond 21.5 R, which is the location from which the CFD solution should be transferred to another (heliospheric) code, to 25 R. Thanks to this extension, even if there are still some effects due to inaccurate outer boundaries, they are not likely to affect the solution that is used as an input to other codes.

Finally, all of the proposed adjustments were studied in the real magnetic map case of the 2008 eclipse in order to allow for directly comparing our numerical results with observed coronal structures. Using the new inner BC, the E -field in the solution was found to be reduced by more than 20 times and thus allowed for a much sharper resolution of the coronal features on the same mesh. The agreement between adjusted, sharper coronal features and observational data increased significantly. The Br profile analysis was repeated, not in a quiet region as before but along one of the streamers in the solution on the larger grid with a small ghost cell. Along this streamer, the Br profile became much steeper compared to the quiet regions, and extrapolations with power laws of −3 to −4 would have to be applied locally, as the extrapolation through the inverse square law led to excessive streamline divergence on the ordinary grid. This divergence was, however, prevented when the new grid type was used instead.

Much work is still required to develop a highly accurate and computationally efficient global coronal model that could work effortlessly on arbitrary real-time data. A number of different models are currently in development globally, experimenting with a variety of numerical schemes, geometries, grids, and MHD formulations, trying to push forward the frontier of the current state of the art. As we have noticed, however, many times it is the small details in the numerical settings, such as a specific BC formulation, that can drastically improve the performance or resolution of the model. For that reason, it is very important to keep paying attention to these small details and their effects and to share these observations with the community if possible. In future work, we hope to further investigate the behavior of ideal MHD CFD for global coronal modeling from the numerical perspective, for example, focusing on topics such as determining the minimum required spatial resolution or the effects of using different types of magnetic maps and map-smoothing functions. Once the solver is optimized to run with reasonable accuracy and reliability, we aim to replace the steady-state magnetic maps with time-dependent simulations and flux rope injections. In addition, we also aim to develop a multifluid version that will resolve ions, electrons, and neutrals as separate fluids.

The authors want to thank Fan Zhang for collaboration and constructive comments and insights. This work has been granted by the AFOSR basic research initiative project FA9550-18-1-0093. This project has also received funding from the European Union's Horizon 2020 research and innovation program under grant agreement No. 870405 (EUHFORIA 2.0) and the ESA project "Heliospheric modeling techniques" (contract No. 4000133080/20/NL/CRS). These results were also obtained in the framework of the projects C14/19/089 (C1 project Internal Funds KU Leuven), G.0D07.19N (FWO-Vlaanderen), SIDC Data Exploitation (ESA Prodex-12), and Belspo project B2/191/P1/SWiM. The resources and services used in this work were provided by the VSC (Flemish Supercomputer Centre), funded by the Research Foundation—Flanders (FWO) and the Flemish Government. SOHO is a project of international cooperation between ESA and NASA.

Software: COOLFluiD (Kimpe et al. 2005; Lani et al. 2006, 2013; https://github.com/andrealani/COOLFluiD/wiki).

Footnotes

Please wait… references are loading.
10.3847/1538-4365/ac8eb1