Issue |
A&A
Volume 694, February 2025
|
|
---|---|---|
Article Number | A226 | |
Number of page(s) | 9 | |
Section | Numerical methods and codes | |
DOI | https://doi.org/10.1051/0004-6361/202452801 | |
Published online | 14 February 2025 |
Constrained optimization approach for magnetohydrostatic equilibria on the solar atmosphere
Department of Physics, Shahid Beheshti University,
1983969411
Tehran,
Iran
★ Corresponding author; nasiri@iasbs.ac.ir
Received:
29
October
2024
Accepted:
13
January
2025
Context. The magnetic field plays an essential role in the evolution of structures and the description of events in the solar atmosphere. Several models have been developed to reconstruct the magnetic field, due to the impossibility of its direct measurement in the solar corona. The model proposed here extrapolates the photospheric magnetogram data up to the corona using a constrained optimization method. In the upper photosphere and chromosphere, both the magnetic and nonmagnetic forces must be taken into account, and the magnetic field reconstruction must be done considering the plasma pressure and density. This is done by applying the Lagrange multiplier technique, as the constrained optimization method, to compute the magnetic field, plasma pressure, and density in magnetohydrostatic equilibria.
Aims. This approach has previously been introduced to reconstruct a nonlinear force-free magnetic field. For this work we extended it to a more realistic issue to reconstruct the magnetic field and calculate the plasma pressure and density in a magnetohydrostatic environment.
Methods. Our approach was to use the constrained optimization method, which is computationally more efficient and easy to implement. The Lagrange multiplier technique is a powerful mathematical tool that has been successfully applied to many areas of physics. We sought to minimize a Lagrangian, which minimizes the divergence term subject to the constraint magnetohydrostatic equilibrium equation. The plasma parameters and magnetic field were eventually computed following the iteration scheme along with appropriate boundary data.
Results. In our previous work, we applied Lagrange multiplier techniques to reconstruct a force-free magnetic field for the solar atmosphere. For this wok, we extended the same optimization technique to extrapolate magnetic field and plasma parameters in magnetohydrostatic equilibria. The results for the magnetic field and plasma parameters were calculated and compared with those obtained by other models in the magnetohydrostatic equilibrium environment as well as the semi-analytical solution as a reference model.
Conclusions. A force-free magnetic field and a suitable distribution for pressure and density were used as the initial input for their corresponding evolution equations. After 20 000 iterations, the convergence of the Lagrangian in our model was slightly better than that of the comparison model. The indicators such as the relative magnetic energy and magnetic field lines were investigated, which are in agreement with the reference model compared to the comparison model.
Key words: methods: data analysis / Sun: activity / Sun: atmosphere / Sun: corona / Sun: magnetic fields
© The Authors 2025
Open Access article, published by EDP Sciences, under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
This article is published in open access under the Subscribe to Open model. Subscribe to A&A to support open access publication.
1 Introduction
The interaction between plasma and magnetic fields and currents affects the plasma’s dynamics in the solar atmosphere. The configuration and topology of the structures in this medium follow the characteristics of the magnetic fields, electric current sheets, and plasma evolution. Thus, studying the magnetic field and plasma characteristics plays a key role in describing the evolution and interactions between the coronal plasma structures, and the several events resulting from temporal and spatial changes in these parameters. Nevertheless, the dynamics and topology of the solar corona are mainly formed and evolved by specifying the magnetic field configuration. In the photosphere and lower chromosphere, the structures evolve by the effect of both plasma and magnetic forces to the same extent. In other words, because of the low plasma β parameter, the solar corona is a magnetic-field- dominated medium, while, other forces such as gravitational and pressure forces must be taken into account in the lower layer of the solar atmosphere (Gary 2001).
A significant number of observational instruments, earth- or space-based, are engaged in acquiring data from the magnetic field, temperature, pressure, and density in the solar environment. However, the precise determination of the magnetic field in the solar corona is currently impossible since the thermal broadening of the Zeeman lines swamps the magnetic broadening (Wiegelmann et al. 2006). Also, the optically thin condition for coronal emission creates an integrated characteristic, which makes the situation more complicated (Wiegelmann & Neukirch 2006). One way is to reconstruct the magnetic field using the data obtained by the magnetic imager instruments, such as the Helioseismic and Magnetic Imager (HMI) on the Solar Dynamic Observatory (SDO) (Schou et al. 2012; Wiegelmann et al. 2012). Several models have been developed thus far to extrapolate the magnetic field in the solar corona following the simplifying rules of force-free magnetic fields (Grad & Rubin 1958; Amari et al. 1997; Yan & Sakurai 1997, 2000). Wiegelmann & Sakurai (2021) provide a comprehensive review of the reconstruction models of force-free magnetic fields. Among these models, the optimization method, which was proposed by Wheatland et al. (2000) at first and developed by Wiegelmann (2004), received more attention. Nasiri & Wiegelmann (2019) and then Fatholahzadeh et al. (2023) applied a constrained optimization approach to calculate the NonLinear Force-Free magnetic Field (NLFFF) using the Lagrange multiplier technique. A concept of the constrained optimization principles with Lagrange multiple techniques and its application to different physical problems are briefly discussed by Bertsekas (1996), Krishna Vadlamani et al. (2020), and Polyak (1969). Most of these models reconstruct themagnetic field in a computational box located on the photosphere up to the corona. However, due to the condition of mixed β in the photosphere and lower layers of the chromosphere, the effects of nonmagnetic forces in lower parts of the computational box may cause the results to be inconsistent with real solar coronal data. We know that the magnetohydrostatic (MHS) condition, as the stable equilibria, describes the physics of the interactions between the plasma structure and magnetic field in the lower solar atmosphere. The governing equations in this respect are
(1)
where B, P, ρ, µ0, and ψ, are the magnetic field, plasma pressure, plasma density, vacuum permeability, and gravitational potential, respectively. Equation (1) expresses the MHS equilibria and Eq. (2) shows that the physical magnetic field must be solenoidal. Since a general solution does not exist for Eqs. (1) and (2), Low (1985) applied a semi-analytical solution to these equations (hereafter LOW). Some models were developed to reconstruct the magnetic field in the plasma by imposing a set of boundary conditions for B, P, and ρ and using extrapolation techniques. Wiegelmann & Neukirch (2006) reconstructed magnetic field in MHS equilibria by optimizing Eq. (1) and neglecting the gravitational force and by introducing a generalized pressure, which is defined to include the contributions of the plasma pressure and the energy density of the flow. Wiegelmann et al. (2007) applied an optimization approach for the computation of MHS coronal equilibria in spherical geometry. In another approach, Gilchrist & Wheatland (2013), and Gilchrist et al. (2016a) used the Grad-Rubin method to extrapolate the magnetic field for MHS equilibria. Wiegelmann et al. (2015) developed MHS modeling of the solar atmosphere using real data from the Sunrise/IMaX instrument. Zhu & Wiegelmann (2018) applied the variable transformation method to guarantee the positivity of the plasma pressure and mass density in the solar atmosphere during optimization. They extended their work by testing their model with the radiative magnetohydrodynamics simulation of a solar flare (Zhu & Wiegelmann 2019) and Sunrise/IMaX vector magnetogram data (Zhu et al. 2020). An excellent review of this issue is given by Zhu et al. (2022). Despite the development of several models to reconstruct the magnetic field, there are still shortcomings in this regard. Therefore, it is still possible to propose alternative models in this respect. One of the shortcomings is that the reconstruction of the magnetic field considering MHS equilibria is significantly slower than the NLFFF (Zhu et al. 2022; Gilchrist et al. 2016b). So it is useful to achieve methods that are computationally more efficient. In the case of the MHS optimization models, other shortcomings are the sensitivity to the boundary conditions and the requirement of high-resolution observational data (Zhu et al. 2022). As an extension of our previous work (Fatholahzadeh et al. 2023), for this work we tried to reconstruct the magnetic field considering the plasma parameters in the MHS environment employing the Lagrange multiplier technique to develop a constrained optimization model.
In Section 2, the theory of constrained optimization of the MHS model is presented and an appropriate Lagrangian is introduced considering Eqs. (1) and (2). In Section 3, a brief review of the comparison model and the reference solution is provided. In Section 4, a method for employing boundary conditions is described, and the numerical calculation and algorithm are introduced. In Section 5, the results are presented and compared with those of the comparison model. Finally, Section 6 is devoted to concluding remarks.
2 Constrained optimization theory
The optimization models are easy to implement and have the advantage of computational efficiency. In these methods, an appropriate Lagrangian is suggested to reconstruct a magnetic field based on the relevant equilibrium equations. The present model is an extension of the constrained optimization with the vector Lagrange multiplier (COV) introduced in Fatholahzadeh et al. (2023). We employed Eq. (2) as the governing equation of solenoidal nature, and Eq. (1) as the constraint equation fixing the MHS nature of the magnetic field and plasma distribution. Then, to minimize the objective term |∇ ⋅ B| subject to the constraint equation , the magnetic field and plasma parameters were obtained. To reconstruct the field over an active region, we assumed a computational box whose lower side coincides with the given magnetogram, while the lateral and top sides are in the solar atmosphere. For the third term of Eq. (1), one can substitute
, where ɡ is the gravitational acceleration perpendicular to the photosphere. Thus, the corresponding Lagrangian is
(3)
where ωD and ωM are weighting functions, and indices D and M refer to divergence-free and MHS, respectively. The λ ≡ λ(x, y, ɀ, t) denotes the vector Lagrange multiplier due to the vector behavior of the constraint equation in Lagrangian. The dimension of the integrand in the first term in Eq. (3) is , and that of the constraint equation is
, where l has the dimension of length. Therefore, the dimensional analysis shows |λ| to have dimension
.
It is obvious that Eqs. (1) and (2) are satisfied if L = 0. Taking the derivative of Eq. (3) and using appropriate vector algebra, one may obtain
(4)
Details of the above calculations are given in Appendix A. Assuming that no active region is located near the edges of the magnetogram, and that the lateral sides of the computational box are located in a quiet region, one may assume that the magnetic field and plasma pressure would remain constant on the boundary surfaces throughout the optimization procedure, that is,
(11)
Therefore, the surface integral in Eq. (4) vanishes. We reconstructed the magnetic field and computed the plasma pressure and density inside the computational box by tracing the magnetic field lines. The numerical method used to minimize the Lagrangian L is based on an iterative scheme. By starting with a positive L at the beginning, and assuming the volume integrals in Eq. (4) will always be negative, L will eventually approach zero at the end of the iteration. Thus, we assume
(12)
where µλ, µP, µρ, and µB are positive parameters, which are assumed to be equal to one during the optimization. Using Eq. (12) in Eq. (4), one may obtain the following explicit form:
(13)
which is obviously negative. By the inherent property of the optimization method, one may choose any arbitrary λ, B, P, and ρ as an initial input, and follow their evolution through the coupled Eq. (12) to find the set of parameters that satisfy Eq. (1). The magnetic field, plasma pressure, and density are the physical quantities that must be determined at the beginning of the optimization as initial input; however, the initial value of the Lagrange multiplier is given by a suitable ansatz in terms of B0, P0, and ρ0 as
(14)
Starting with a positive L at the beginning, it will eventually approach zero at the end of the iteration.
3 Comparison model and reference solutions
To check the performance of the present model, one may compare the corresponding results with those obtained by other models, and possibly with an analytical solution. To describe the equilibria, Low (1985, 1991) considered an equation of state for the plasma to relate density, pressure, and temperature, and presented a class of semi-analytic solutions of the magnetized solar atmospheres as
(15)
Here, α0 is the force-free parameter and f (ɀ) is an arbitrary function. Based on the nature of the solar atmosphere, f (ɀ) should be chosen in such a way that the magnetic field becomes approximately force-free as the height increases. According to Low (1991), we consider f (ɀ) = ae−kz, where a and k are free parameters that control the nonmagnetic forces and the effective height of the Lorentz force, respectively. With these considerations, Low (1991) obtained the relation for plasma pressure and density in the terms of the magnetic field as
(16)
where P0(ɀ) = P0e−ɀ/H, and H = 1.65 × 105 km is the isothermal scale height. Low (1985) assumed P0 = 28 × 10−2 dyn/cm2, ρ0 = 8.35 × 10−16 gr/cm3, 𝑔 = 2 × 104 cm/s2, α0 = −3.0, a = 0.5, and k = 0.02 and determined the plasma parameters for a given magnetic field. In our model to determine the magnetic field in the box, we used the Low & Lou (1990) solution (hereafter L&L), which assumes a point source at the origin and provides a set of axisymmetric nonlinear force-free fields. This set of semi-analytical solutions has a multi-polar character based on the depth of burying origin below the photosphere (l) and the inclination of the axis of symmetry of the fields to the normal (ϕ). The semi-analytical solutions, which are labeled in the L&L notation as P1,1 with l = 0.3 and ϕ = π/4, were selected, and the quantities in Eq. (1) were generated for all the cells in the box.
We compared the results of the MHS constrained optimization model with those obtained by Zhu & Wiegelmann (2018), henceforth referred to as the optimization of magnetohydrostatic (OM) model. The OM model calculates the magnetic field and plasma parameters by minimizing the following Lagrangian:
(18)
where ωa and ωb are the weighting functions and Hs is the pres- sure scale height. The variables P = Q2 and were chosen to guarantee that the plasma pressure and density remain positive during the optimization. It should be noted that for comparison of Constrained Optimization of Magnetohydrostatic using Vector Lagrange multiplier (hereafter COMV) and OM models, the initial values must be the same.
4 Algorithm
To perform the constrained optimization procedure, a computational box was chosen so that the lower side is located on the photosphere and the lateral sides are located in the quiet region of the sun. The dimensions of the box should be small enough to ignore the curvature of the solar surface. Here, we assumed the computational box over an active region and divided it into 80 segments along the x and y axes (as shown in Fig. 1), and 40 segments along the ɀ axis. The dimensions of the cubic grid cells are 40 km. Then, the following steps ware taken to reconstruct the magnetic field and calculate the plasma pressure and density in the MHS equilibrium.
The artificial vector magnetogram was selected and was assumed as the lower boundary of the computational box. It consists of the magnetic field components at the photosphere, which was generated by an L&L semi-analytical solution using the Runge-Kutta numerical method (Zheng & Zhang 2017; Engquist 2016).
Thanks to the optimization mechanism, the minimization may be done by considering any arbitrary initial value. It should be only noted that the input value must be consistent with the boundary condition and the physical specification of the model. We performed our model in which the interior of the computational box as well as the lateral and top boundaries are filled with a nonlinear force-free field as the initial state. For this purpose, we employed the COV model introduced in our previous work (Fatholahzadeh et al. 2023).
Since the gravitational acceleration changes only 0.447 percent in 1.6 Mm, we considered a constant value 𝑔 = 274 m/s2 and solved Eqs. (1) and (2) following Section 3. However, we needed to determine the initial values for plasma parameters. To find the plasma pressure, P, in the photosphere, we used P = Pquiet − |Bɀ|2, where Pquiet = 1.228 × 105 dyn/cm2 is the plasma pressure in the quiet sun. Since the lateral boundaries of the box were chosen to be located in the quiet sun and no active region would lie close to the boundaries, Eq. (11) is satisfied. For this aim, we could replace the pressure values at the lateral side boundaries with the corresponding values in the quiet sun using the vertical pressure profile (Avrett & Loeser 2008). Then, we calculated the plasma pressure distribution inside the box by applying the bi-linear interpolation method (Getreuer 2011). By assuming a gravitational stratification and a vertical onedimensional temperature profile (Avrett & Loeser 2008), and using the equation of state for the ideal gas as P/ρT = kb /m, the density could calculated for each grid cell all over the box. Fig. 1 shows the artificial magnetogram and the distribution of plasma pressure and density at the photosphere as the lower side boundary condition.
Finally, using Eq. (12), the vector Lagrange multiplier, λ, magnetic field, B, plasma pressure, P, and plasma density, ρ, were updated simultaneously at each iteration step inside the computational box. As the minimization process proceeded and the Lagrangian tended toward zero, we could obtain the magnetic field, plasma pressure, and density.
![]() |
Fig. 1 Boundary condition at the lower side of the box. (a) The artificial magnetogram (Gauss), (b) distribution of plasma pressure (dyn/cm2), and (c) distribution of plasma density (gr/cm3). In panel (a), the arrows represent the horizontal components of the magnetic field in the photosphere |
5 Numerical analysis
Following the procedure explained in Section 4, Eq. (12) was solved and the corresponding magnetic field and plasma parameters for all grid cells were calculated and used as the initial values for optimization. The constrained optimization model was performed by choosing the force-free magnetic field as input. The plasma physical parameters needed to be matched smoothly on the boundary of the box, and to reduce the boundary mismatches, appropriate weighting functions were considered (Wiegelmann 2004). The weighting functions were assumed to vary from one to zero inside the lateral and top boundary layers determined by the thickness nd = 8. By this assumption, the weighting functions ωD and ωM are equal to one inside the box and approach zero on the boundary following a harmonic profile. The results of the COMV model were compared with those of the OM model. Before discussing the comparing procedure, we provide a review the indicators defined by Schrijver et al. (2006) to compare the performance of COMV and the comparison model. These indicators are the following.
A) The relative magnetic energy, RME, shows the ability of the model to estimate the energy content of the reconstructed magnetic field, defined as
(19)
where, bi and Bi denote the final magnetic field and the corresponding references field, respectively, N denotes the total number of grid points in the computational box, and i refers to the number of each cell.
B) The vector correlation, VC, represents the correlation between Bi and bi at each grid point i, and it is defined as
(20)
C) The Cauchy-Schwarz, CS, is defined based on Cauchy- Schwarz inequality to measure the angle between Bi and bi as
(21)
D) The normalized vector error, NVE, which approaches zero when bi and Bi are almost identical, is defined as
(22)
E) Wheatland et al. (2000) defined the fractional flux errors, fi, to show the convergence of the solenoidal term as
(23)
These indicators actually determine how much the magnetic field corresponds to the reference one. In addition to the magnetic field, one must compare the plasma parameters such as pressure and density. Hence the following indicators that are introduced by Zhu & Wiegelmann (2018) are of interest.
F) The Pearson’s correlation, PC, that is, the ratio between covariance of the extrapolated plasma pressure, Pi, and the reference one, , to their standard deviation, is defined as
(24)
and that for the plasma density is defined as
(25)
where and
denote the mean value for pressure and density, respectively.
Here we wish to follow the model’s performance by examining the correspondence between the field lines obtained from the COMV, OM, and the reference model. To do this one may define the following indicators.
G) The R value, which shows how the MHS equilibria are fulfilled by applying the constrained optimization model, measures the degree of alignment between the nonmagnetic forces and magnetic field lines and is defined as
(26)
H) The C value, which measures the agreement between extrapolated and reference magnetic field lines (Wiegelmann et al. 2005), is defined as
(27)
where R is the three-dimensional space curve of the field line and integration goes along the field line by a total length of l. The subscripts ref and ext refer to the “reference” and “extrapolated” magnetic field lines, respectively.
The magnetic field reconstruction in the MHS equilibria was done and the results were obtained using the constrained optimization. In this case, the iteration procedure goes on until the criteria Lt + 1/Lt < 10−5 is satisfied during the numerical calculations. Therefore, the iteration was stopped at 20 000 steps. It seems that the results obtained up to this step are almost enough to compare the model’s performance. One may have a desire to continue the iteration procedure to more steps, to achieve more accurate results. However, our goal is to show the model’s performance and compare its results in the same steps with those of the comparison model. After 20 000 iteration steps, the value of L approaches ~0.0037 of its initial value (L0) for COMV, while it approaches ~0.0111 for the OM model. The results show that the COMV model has better convergence than the OM model. The results of L/L0 are plotted in Fig. 2 for the COMV and the OM models. It is important to note that in the optimization theory, one expects the Lagrangian to become “exactly” zero, while in the numerical calculation, the same Lagrangian “approaches” zero depending on how far the iteration steps are achieved.
Further, the indicators mentioned above and some other useful quantities are given in Table 1. The results of LD /LD0 tend to be 1.32 × 10−3 and 7.36 × 10−3 for the COMV and OM models, respectively, which show that the final magnetic field approaches a solenoidal state. A more detailed investigation of this issue may be done by calculating the fractional flux errors, which are small enough, ≃2.36 × 10−3 and ≃3.89 × 10−3 for the COMV and OM models, respectively.
Examining the behavior of plasma pressure against altitude, before and after the optimization may be useful. The balance between magnetic and plasma pressure varies between grid cells. In some grid cells, the magnetic (plasma) pressure may be locally much greater than plasma (magnetic) pressure. Thus, one may calculate the average pressure by integrating the local pressure over x and y for each layer. This is plotted as a function of ɀ in Fig. 3, which shows that the behavior of the pressure profile for the COMV and OM models is almost the same. In Fig. 4, the behavior of magnetic, plasma, and total pressure before and after optimization is shown. The pressure values decrease with increasing altitude. Although the mean magnetic pressure is lower than the mean plasma pressure at the same altitude, but by increasing the height, as expected, the total pressure is mostly affected by the magnetic pressure.
To clarify the issue, we investigated the behavior of the plasma β parameter. The mean β parameter was calculated in the same manner as the mean pressure and is plotted in terms of ɀ in Fig. 5. The values of mean β vary from ~2.9 in the photosphere up to ~5.2 in about 160 Km and then decrease to less than one, for the COMV model at the height of ɀ ≃ 411 Km and the OM model at the height of ɀ ≃ 407 Km. As shown in Fig. 5, the average beta at the lower layer of the chromosphere decreases to less than one. This height is about 581 km for the reference model. Furthermore, Bourdin (2017) calculated the average beta for the results obtained by Gary (2001), which reduced to less than one at the height between 400 and 500 Km.
Moreover, as can be seen from Table 1, according to Pearson’s correlation indicators, the reconstructed plasma pressure and density in the COMV model have a slightly better correlation with the Low solution compared to the OM model.
The ratio of the magnetic energy to its potential value, , are 1.63 and 1.86 for the COMV and OM, respectively. This means that the available free magnetic energy E – EP in this structure is around 9.19 × 1032erg for the COMV model, and 1.25 × 1033erg for the OM model, which are comparable to the energy of explosive events in the solar atmosphere. Of course, the RME values in Table 1 indicate that the magnetic energy in the computational box is closer to those of the reference model for the COMV compared to the OM model. In other words, the results obtained by the COMV model are more realistic than those of the OM model, which could be due to the better convergence in the same steps in the optimization procedure.
To examine the model more accurately, we investigated the magnetic field lines and compared them with the reference one. We examined all possible magnetic field lines within a 40 × 40 area from the center of the magnetogram where the active region is located. Among the 160 lines drawn in Fig. 6, 12 lines were chosen from different parts of the magnetogram in such a way as to be a good representation of the studied area. Using the Euler method (Yang 2017) to trace magnetic field lines, the C values were calculated for these lines and given in Table 2 for the COMV and OM models as well as the corresponding NLFFF. Also, the R values were calculated along field lines separately, and the average values of R along each field line are given in Table 2. According to Table 2, the results for the COMV and the OM models are approximately the same.
![]() |
Fig. 2 Iterative behavior of the normalized Lagrangian, |
Comparison of the quantities and indicators representing the model’s accuracy after 4000 iteration steps for the COV model, and 20 000 iteration steps for the COMV and OM models.
![]() |
Fig. 3 Behavior of the plasma pressure profile against ɀ for the COMV (solid blue line), the OM (dashed red line), and the reference (dotted black line) models. |
![]() |
Fig. 4 Comparison between the plasma pressure profile against ɀ before (dashed line) and after (solid line) optimization. The red line shows the magnetic pressure, the blue line represents the plasma pressure, and the black line shows the total pressure. |
![]() |
Fig. 5 Behavior of the mean β parameter in terms of ɀ for the COMV (solid blue line) and the OM (dashed red line) models. The reference model is plotted in a dotted black line. |
![]() |
Fig. 6 Reconstructed magnetic field lines plotted for (a) the COMV model, (b) the OM model, and (c) NLFFF. |
C values and R values for 12 magnetic field lines, which start from the same grid cell for the COMV and OM models.
6 Conclusions
Direct measurement of the magnetic field in the solar atmosphere poses numerous challenges. Although many efforts have been made to measure the magnetic field in the solar corona (Schad et al. 2024; Lin et al. 2004), one may employ the magnetic field reconstruction methods using the observational data that provide a vector magnetic field at the solar photosphere to get insight into the magnetic field in the solar atmosphere. Some authors apply a force-free magnetic field assuming a low β coronal condition. However, due to mixed plasma β conditions in the lower layers of the solar atmosphere, the force-free assumption is insufficient to describe the physical state of the MHS equilibrium, where the pressure and gravity forces cannot be neglected compared to the magnetic force. However, we present a model that uses the Lagrange multiplier technique to extrapolate the magnetic field and plasma parameters simultaneously, considering the MHS equilibria. We define a Lagrangian, where the solenoidal condition of the magnetic field serves as the objective part and incorporates the MHS equilibrium equation as the constraint using an appropriate vector Lagrange multiplier. As mentioned in Fatholahzadeh et al. (2023), “the Lagrange multiplier technique is capable of including more general cases”; here, we have shown that adding the MHS equilibrium equation as a constraint term to the Lagrangian can be considered as another case. Accordingly, a vector magnetogram was constructed using the semi-analytical solution. The pressure distribution on the photosphere was obtained by employing the balance between the magnetic and the plasma pressure. Using the bilinear method, the pressure was determined in the entire box. Considering a one-dimensional observational temperature profile, the density was calculated by the ideal gas equation of state. Then the potential magnetic field was used to obtain the NLFFF all over the box, which served to reconstruct the magnetic field in MHS equilibria. By suitable initial inputs for λ, B, P, and ρ, the iteration process was continued up to 20000 steps. The magnetic field strength, pressure, and plasma density ware revised at each step during optimization. It is essential to note that achieving an exact zero value for the Lagrangian by numerical computations is not entirely feasible; however, it is shown that the constrained optimization converges with the Lagrangian close to zero. Our results were compared with those of the OM model as well as with an analytical solution. It is found that after the 20000 iteration steps, the convergence in our model is slightly better than that of the OM model compared with the semi-analytical solutions. The relative magnetic energy indicator shows that our results are closer to those of the reference solutions and are comparable to the magnetic free energy of structures in the solar atmosphere. The plasma parameter indicators show that the reconstructed plasma pressure and density in our model are slightly closer to the analytical solution than the comparison model. Finally, using Euler’s method, the magnetic field lines were traced. The alignment indicators show that the degree of alignment of the magnetic field lines in our model is close to that of the reference solution compared with the OM model.
Acknowledgements
The authors would like to thank Dr. Xiaoshuai Zhu, and Dr. Soleiman Fathollahzadeh for their kind consultations during this research.
Appendix A Derivation of equation 4
By derivation Eq. (3) in terms of the iteration parameter, one may get
(A.1)
The above integral includes six terms. By applying some algebraic calculations and vector identities, one may perform each of these terms as a dot product with or
. The calculations for each term are as follows
(A.2)
Applying Gauss’s law, one obtains
(A.3)
The second term in Eq. (A.1) becomes
(A.4)
Applying Gauss’s law to Eq. (A.4), one gets
(A.5)
The third term in Eq. (A.1) may be written as
(A.6)
The pressure term in Eq. (A.1) can be written as
(A.7)
By applying Gauss’s law to the last term of Eq. (A.7), the desired form will be as
(A.8)
The fifth term of Eq. (A.1) can be written as
(A.9)
The sixth term has also been in the desired form, therefore, considering the assumptions in Eq. (11), the surface integrals will be vanished. Thus one may obtain the final form
(A.10)
References
- Amari, T., Aly, J. J., Luciani, J. F., Boulmezaoud, T. Z., & Mikic, Z. 1997, Sol. Phys., 174, 129 [NASA ADS] [CrossRef] [Google Scholar]
- Avrett, E. H., & Loeser, R. 2008, ApJS, 175, 229 [Google Scholar]
- Bertsekas, D. P. 1996, Constrained Optimization and Lagrange Multiplier Methods (USA: Athena Scientific) [Google Scholar]
- Bourdin, P. A. 2017, ApJ, 850, L29 [NASA ADS] [CrossRef] [Google Scholar]
- Engquist, B. 2016, Encyclopedia of Applied and Computational Mathematics, 1st edn. (Berlin: Springer Publishing Company, Incorporated) [Google Scholar]
- Fatholahzadeh, S., Jafarpour, M. H., & Nasiri, S. 2023, A&A, 676, A120 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
- Gary, G. A. 2001, Sol. Phys., 203, 71 [Google Scholar]
- Getreuer, P. 2011, Image Processing On Line, 1, 238 [CrossRef] [Google Scholar]
- Gilchrist, S. A., & Wheatland, M. S. 2013, Sol. Phys., 282, 283 [NASA ADS] [CrossRef] [Google Scholar]
- Gilchrist, S., Braun, D., & Barnes, G. 2016a, AAS/Sol. Phys. Div. Meeting, 47, 7.06 [Google Scholar]
- Gilchrist, S. A., Braun, D. C., & Barnes, G. 2016b, Sol. Phys., 291, 3583 [NASA ADS] [CrossRef] [Google Scholar]
- Grad, H., & Rubin, H. 1958, Proc. Intern. Conf. on Peaceful Uses of Atomic Energy, 31, 191 [Google Scholar]
- Krishna Vadlamani, S., Xiao, T. P., & Yablonovitch, E. 2020, Preceedings Natl. Acad. Sci., 117, 43 [NASA ADS] [CrossRef] [Google Scholar]
- Lin, H., Kuhn, J. R., & Coulter, R. 2004, ApJ, 613, L177 [Google Scholar]
- Low, B. C. 1985, ApJ, 293, 31 [NASA ADS] [CrossRef] [Google Scholar]
- Low, B. C. 1991, ApJ, 370, 427 [NASA ADS] [CrossRef] [Google Scholar]
- Low, B. C., & Lou, Y. Q. 1990, ApJ, 352, 343 [NASA ADS] [CrossRef] [Google Scholar]
- Nasiri, S., & Wiegelmann, T. 2019, JASTP, 182, 181 [NASA ADS] [Google Scholar]
- Polyak, B. 1969, Zh. chisl. Mat. mat. Fiz, 10, 1098 [Google Scholar]
- Schad, T. A., Petrie, G. J. D., Kuhn, J. R., et al. 2024, Sci. Adv., 10, eadq1604 [NASA ADS] [CrossRef] [Google Scholar]
- Schou, J., Borrero, J. M., Norton, A. A., et al. 2012, Sol. Phys., 275, 327 [Google Scholar]
- Schrijver, C. J., De Rosa, M. L., Metcalf, T. R., et al. 2006, Sol. Phys., 235, 161 [NASA ADS] [CrossRef] [Google Scholar]
- Wheatland, M. S., Sturrock, P. A., & Roumeliotis, G. 2000, ApJ, 540, 1150 [Google Scholar]
- Wiegelmann, T. 2004, Sol. Phys., 219, 87 [NASA ADS] [CrossRef] [Google Scholar]
- Wiegelmann, T., & Neukirch, T. 2006, A&A, 457, 1053 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
- Wiegelmann, T., & Sakurai, T. 2021, Liv. Rev. Sol. Phys., 18, 1 [NASA ADS] [CrossRef] [Google Scholar]
- Wiegelmann, T., Lagg, A., Solanki, S., Inhester, B., & Woch, J. 2005, ESA SP, 596, 7.1 [Google Scholar]
- Wiegelmann, T., Inhester, B., & Sakurai, T. 2006, Sol. Phys., 233, 215 [Google Scholar]
- Wiegelmann, T., Neukirch, T., Ruan, P., & Inhester, B. 2007, A&A, 475, 701 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
- Wiegelmann, T., Thalmann, J. K., Inhester, B., et al. 2012, Sol. Phys., 281, 37 [NASA ADS] [Google Scholar]
- Wiegelmann, T., Neukirch, T., Nickeler, D. H., et al. 2015, ApJ, 815, 10 [NASA ADS] [CrossRef] [Google Scholar]
- Yan, Y., & Sakurai, T. 1997, Sol. Phys., 174, 65 [NASA ADS] [CrossRef] [Google Scholar]
- Yan, Y., & Sakurai, T. 2000, Sol. Phys., 195, 89 [NASA ADS] [CrossRef] [Google Scholar]
- Yang, X.-S. 2017, in Engineering Mathematics with Examples and Applications, ed. X.-S. Yang (Cambridge: Academic Press), 231 [CrossRef] [Google Scholar]
- Zheng, L., & Zhang, X. 2017, in Modeling and Analysis of Modern Fluid Problems, eds. L. Zheng & X. Zhang, Mathematics in Science and Engineering (Cambridge: Academic Press), 361 [Google Scholar]
- Zhu, X., & Wiegelmann, T. 2018, ApJ, 866, 130 [NASA ADS] [CrossRef] [Google Scholar]
- Zhu, X., & Wiegelmann, T. 2019, A&A, 631, A162 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
- Zhu, X., Wiegelmann, T., & Solanki, S. K. 2020, A&A, 640, A103 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
- Zhu, X., Neukrich, T., & Wiegelmann, T. 2022, Sci. China E Technol. Sci., 65, 1710 [CrossRef] [Google Scholar]
All Tables
Comparison of the quantities and indicators representing the model’s accuracy after 4000 iteration steps for the COV model, and 20 000 iteration steps for the COMV and OM models.
C values and R values for 12 magnetic field lines, which start from the same grid cell for the COMV and OM models.
All Figures
![]() |
Fig. 1 Boundary condition at the lower side of the box. (a) The artificial magnetogram (Gauss), (b) distribution of plasma pressure (dyn/cm2), and (c) distribution of plasma density (gr/cm3). In panel (a), the arrows represent the horizontal components of the magnetic field in the photosphere |
In the text |
![]() |
Fig. 2 Iterative behavior of the normalized Lagrangian, |
In the text |
![]() |
Fig. 3 Behavior of the plasma pressure profile against ɀ for the COMV (solid blue line), the OM (dashed red line), and the reference (dotted black line) models. |
In the text |
![]() |
Fig. 4 Comparison between the plasma pressure profile against ɀ before (dashed line) and after (solid line) optimization. The red line shows the magnetic pressure, the blue line represents the plasma pressure, and the black line shows the total pressure. |
In the text |
![]() |
Fig. 5 Behavior of the mean β parameter in terms of ɀ for the COMV (solid blue line) and the OM (dashed red line) models. The reference model is plotted in a dotted black line. |
In the text |
![]() |
Fig. 6 Reconstructed magnetic field lines plotted for (a) the COMV model, (b) the OM model, and (c) NLFFF. |
In the text |
Current usage metrics show cumulative count of Article Views (full-text 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 48-96 hours after online publication and is updated daily on week days.
Initial download of the metrics may take a while.