| Issue |
A&A
Volume 700, August 2025
|
|
|---|---|---|
| Article Number | A268 | |
| Number of page(s) | 25 | |
| Section | Stellar structure and evolution | |
| DOI | https://doi.org/10.1051/0004-6361/202452307 | |
| Published online | 26 August 2025 | |
A new framework of multidimensional pulsating stellar envelopes
I. Properties of turbulent convection in static RR Lyrae envelope models with SPHERLS
1
HUN-REN Research Centre for Astronomy and Earth Sciences, Konkoly Observatory, MTA Centre of Excellence, Konkoly Thege Miklós út 15-17., H-1121 Budapest, Hungary
2
Eötvös Loránd University, Institute of Physics and Astronomy, Pázmány Péter sétány 1/a, H-1117 Budapest, Hungary
3
ELTE Eötvös Loránd University, Gothard Astrophysical Observatory, Szombathely, Szent Imre h. u. 112. H-9700, Hungary
⋆ Corresponding author: kovacs.gabor@csfk.org
Received:
19
September
2024
Accepted:
12
June
2025
Context. The one-dimensional treatment of turbulent convection had large successes until the early 2000s. However, the recent abundance and precision of observational data shows that this problem is far from solved. Even so, ongoing theoretical debates about proper one-equation-based treatment of convection and new results show that it has various other theoretical difficulties as well. A more modern approach should be developed by using multidimensional models.
Aims. We established a new theoretical framework for comparison between one-dimensional and multidimensional convection models by mapping the two-dimensional structure of the convective zone and optimizing the modeling parameters of the SPHERLS code.
Methods. We constructed a series of static envelope models for the same RR Lyrae stars, but with different horizontal sizes and resolutions. We then used a series of statistical methods to quantify the sizes of convective eddies, map the energy cascade, and describe the different structural parts of the convective zone. These include integral length scales, Fourier series, and the determination of the convective flux through horizontal averaging.
Results. The structure of the convective zone depends significantly on the model size below an angular size of 9°. Models of at least this size are more consistent, and the horizontal resolution of earlier studies is adequate to describe the granulation pattern in the large eddy simulation approach. In quasi-static RR Lyrae stars, the convective zone consists of two distinct dynamically unstable regions that are loosely connected. Approximately half of the convective flux is supplied by the transport of ionization energy in the partial hydrogen ionization zone.
Conclusions. The 2D models presented in this work with the described size and resolution parameters can be used for comparison against 1D models. The structure of the convective zone urges reconsideration of some recent approaches to describe the convective flux currently used in radial stellar pulsation codes, which will be addressed in a separate paper.
Key words: convection / turbulence / stars: oscillations / stars: variables: RR Lyrae
© 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
Convection is a buoyancy-driven transport process (Glatzmaier 2014), formed when the temperature gradient is greater than the adiabatic temperature gradient in stars1. Hence, small fluctuations in density cause mass elements to rise and sink nearly adiabatically, creating a 3D dimensional flow that is random, but has quasi-stationary structures called Rayleigh-Bénard cells. The flow inside these cells carries energy from the hotter bottom of the cell to the cooler top where the extra energy is released to the surroundings through heat diffusion and viscosity. This way, it transports energy, decreasing the temperature gradient of the system. In a closed system, this can sufficiently decrease this gradient to a level where the convection can stop, and the kinetic energy of the cells would dissipate. However, in an open system, for example a stellar envelope, the temperature difference between the two sides of the convectively unstable region does not disappear, so buoyancy maintains the convective cells. This phenomenological picture was formulated in many different versions of mixing length theories (MLT).
However, in stellar envelopes (also in stellar cores and other astrophysical fluids), the material viscosity of the fluid is very low. This causes the structure of Rayleigh-Bénard cells to decompose into smaller eddies, which also decompose, and so on, until they reach small-scale motions that are effectively braked by viscous forces. This cascade of eddies shows an inherently unpredictable chaotic flow structure that is called turbulent flow (Pope 2000), and its appearance can be characterized by a dimensionless number, the Reynolds number, determined by the fluid physical parameters2. This number, by definition, is the ratio of the inertial to viscous forces, Re = uL/ν, with a characteristic velocity, u, the characteristic length scale, L, and the kinetic viscosity, ν, of the flow. If Re ≫ 1, a flow becomesturbulent (e.g., its value is Re ∼ 1012 (Kupka & Muthsam 2017) in the solar envelope). Hence, convection in stars is always turbulent, but we emphasize that the two phenomena are different, and one can occur without the other, outside the scope of stellar astrophysics.
These are genuinely 3D phenomena, and their description in 1D pulsation models can only be achieved through approximations. First, one needs to use averaging on the 3D Navier-Stokes equations to derive horizontal mean quantities that are changing with the pulsations (such a derivation is presented by Kuhfuss 1986). These are called ensemble averages (Pope 2000 and for usage in other astrophysics problems, see Kupka & Muthsam 2017). Unfortunately, the method always includes unspecified terms; therefore, the 1D equations are not closed. This closure problem can be solved with simplifications, and the level of complexity depends on the number and quality of the used approximations. In pulsation theory, these include the Boussinesq approximation meaning neglecting density fluctuations except for buoyancy (first used for pulsations by Gough 1969), the neglect of acoustic modes, the eddy viscosity hypothesis (Kuhfuss 1986) simplifying pressure terms, and the gradient-diffusion (or down-gradient) hypothesis (Stellingwerf 1982), which relates the unsolved transport terms to the gradient of the mean-field. We refer to Kupka & Muthsam (2017) and Houdek & Dupret (2015) for background material.
The other solution for the problem would be 3D modeling, directly solving the Navier-Stokes equations. The direct numerical simulation (DNS) is still too computationally expensive on modern computers as one would need to resolve scales of the flow from scales of several million kilometers to the scales of meters (Kupka & Muthsam 2017). Instead, one can use the so-called large eddy simulation (LES) method, pioneered by Smagorinsky (1963), Lilly (1969), and Deardorff (1970). The main idea is to resolve the large-scale, mainly anisotropic (in our case, buoyancy-driven convection) motions and model only those on this scale. These modeling results are similar to measurements for a given resolution, or more likely, a filtered view of good resolution data. Regardless of the details, the filtering is similar to the ensemble averaging of the 1D models, although it has different properties (Pope 2000). The method itself has been widely used in engineering and meteorology since the sixties (Pope 2000), while it has had many successes in the simulation of solar granulation and solar physics (Nordlund et al. 2009), it is used for modeling A type stellar envelopes (Fabbian et al. 2023), studies of stellar cores (see, e.g., Rizzuti et al. 2023, Georgy et al. 2024), AGB stars (e.g., Freytag et al. 2012), and stellar convection in general (Meakin & Arnett 2007; Arnett et al. 2009; Viallet et al. 2013)3. Kupka & Muthsam (2017) gives an overview of the history of LES in astrophysics4. However, we emphasize that expectations that the 3D simulations will solve all the problems via brute force are misleading.
There are two approaches that are widely used in the aforementioned studies: the so-called box-in-a-star and the star-in-a-box method. In the former, one defines a simulation box(horizontally with periodic boundary conditions) inside the star (see, e.g., Stein & Nordlund 2001; Muthsam et al. 2010) because the length scales of the convective motions are not comparable to the size of the star (this is the case in main-sequence stars and classical pulsators). The latter case is used for red and asymptotic giant branch stars, where the convective length scales are comparable to the stellar radius (e.g., Freytag et al. 2012).
In the case of radial stellar pulsations of classical variables, a further problem occurs, namely the large amplitude radial oscillation of the outer layers, where the convection zone resides. This means that any codes need to follow the movement of the stellar layers; meanwhile, convection needs to remain resolved. If the former condition is not met, one cannot reach full-amplitude pulsation with the model, as the important partially ionization zones moves out from the grid (Deupree 1977a). The first attempt to reproduce 2D pulsation and convection together was done by Deupree (1977a), successfully reproducing the red edge of the instability strip (Deupree 1977b, 1980, 1985). Recently Mundprecht et al. (2013) implemented an adaptive method into the ANTARES code (Muthsam et al. 2010) which was used to simulate Cepheids (Mundprecht et al. 2015). Vasilyev et al. (2018) used the COBOLD5 software (Vasilyev et al. 2017, and references therein) to simulate a 2D Cepheid atmosphere as an input for spectral synthesis models. Geroux & Deupree (2011), Geroux & Deupree (2013) developed the SPHERLS code based on the ideas of Deupree (1977a) and successfully reached full-amplitude RR Lyrae models (Geroux & Deupree 2014, 2015), and we are using this code in our current study.
In this paper in our series, we optimize the SPHERLS code input parameters (resolution, model size) and determine the structure of the convective zone through a series of 2D quasi-static simulations to establish a theoretical ground for the comparison with 1D. For this, we use statistical methods and dimensionless numbers largely used in turbulence theory (Pope 2000), and define some new to follow the effects of the numerics. For example, we are using nondimensional numbers, such as the Prandtl number, that characterize the fluid and can be compared to numbers of real stellar flows derived from material science (Kupka & Muthsam 2017), while we are using numbers that characterize the flow, for example the Reynolds number, which is also dependent on the simulation setup.
In addition to the statistical quantities, we define other quantities by describing the size and structure of the convective zone, as these are comparable directly to 1D models. Only the consistency of these and statistical quantities can ensure that a comparison with 1D calculations, and the conclusions derived from it, would be meaningful.
In our previous papers (Kovács et al. 2023, 2024, and references therein), we confronted two 1D models (calculated with the Budapest-Florida and MESA-RSP codes) of RR Lyrae stars in M3 globular cluster with observed radial velocities, calibrated their free parameters, and analyzed the processes occurring in them during pulsation. This work focuses on technical questions of 2D modeling of these stars, and the following papers will discuss in detail the results provided by the comparison of 1D codes and the multidimensional SPHERLS in 2D for static and pulsating states.
The structure of this paper is the following. First, we introduce the main concepts behind the SPHERLS code alongside with the stellar parameters of the input models in Section 2. Then we define our analytical methods in Section 3: The modeling procedure (Sect. 3.1), the statistical methods that are describing turbulent flows (Sect. 3.2), and the various dimensionless quantities related to turbulence, numerics, and 1D treatment (Sect. 3.3). This is followed by the description of our results. First, we present the numerical costs of our calculations in Sect. 4.1, then we describe the vertical structure of the convective zone in the studied quasi-static RR Lyrae models in Section 4.2. We studied the different components of the convective flux, which is presented in Section 4.3. The effects of resolution and horizontal model size on the structure of the velocity field, on the size of the eddies and on the behavior of the energy cascade is given in Sections 4.4, 4.6, and 4.7, respectively. Our results and their consequences are discussed in Section 5, and our conclusions and a summary are given in Section 6.
2. The multidimensional SPHERLS model
SPHERLS is an open-source multidimensional numerical hydrocode5 that was developed by Geroux & Deupree (2011, 2013) for modeling stellar pulsation using LES principles. This code is based on a hybrid Lagrangian-Eulerian scheme, which makes it possible to follow the long-term and short-term changes in radially pulsating variable stars while maintaining a good enough resolution of the ionization regions. We repeat the governing equations in Appendix A to match our notations.
In the field of classical stellar pulsations, the main focus is on the optically thick stellar envelope, in which the partial ionization zones that drive the pulsations reside. This means that the atmosphere itself is used as a boundary condition and radiation flux is described through the diffusion approximation. SPHERLS has limited capabilities regarding horizontal resolution (see Sect. 4.1), even with simple numeric methods (see Appendices B and C). With horizontal resolution being magnitudes lower than current hydro-codes used in solar convection modeling, and following the same principles as 1D pulsation codes, this modeling method can be seen as an extended version of the latter, but without the Mixing Length Theory and other 1D approximations. So this code is suitable to study stellar convection in pulsating stars, keeping in mind the aforementioned limitations we have.
The three primary numerical concepts crucial to our study are the box-in-a-star nature of SPHERLS, the utilization of the subgrid scale viscosity model and the effects of numericaldamping.
The box-in-a-star approach of SPHERLS means that we are modeling a slice of an angular shell of the star. Geroux & Deupree (2015) have shown that 2D calculations are adequate to describe RR Lyrae variables. Therefore, we calculated 2D wedges, keeping in mind that in 2D the average lifetime of a convective structure can be longer (Kupka 2020) and the cascade behavior is different than in the 3D case (Kupka 2009). On the horizontal boundaries, we use periodic boundary conditions; the top boundary of the star is determined at the surface with a constant mass closing shell and pressure (Geroux & Deupree 2013). The bottom boundary is taken at 2 million K temperature with an incompressible boundary. These vertical boundaries are the same which are used in radial pulsation models in general (see, e.g., Paxton et al. 2019), and the stellar parameters define the vertical extent of the model. In contrast, the horizontal extent is always chosen to an arbitrary angular width that we call θwidth. This horizontal extent is defined by the number of horizontal cells, Nθ, and the horizontal size of a single cell, Δθ, as θwidth = NθΔθ. The choice of these values is not straightforward, as one has to choose them to have a θwidth large enough to capture the large-scale convective processes but with small enough Δθ to maintain the necessary resolution.
Another essential concept is the subfilter or subgrid scale (SGS) model. Since the simulation only solves equations on the so-called resolved scales, the effects on smaller scales than the grid scales have to be modeled somehow. Such an effect is, for instance, the turbulent cascade itself: the kinetic energy of the resolved scales is transferred to these SGS scales, and without proper treatment, the simulations fail. The SGS model usually defines the filter function of the LES equations, as well. The length scale of this function Δfilt is coupled to the resolution where the LES method gives information (Magnient et al. 2007). The length scale regarding the dissipation of energy (Δdiss) is related to Δfilt by the applied SGS model. This, in practice, means that an LES calculation shows the dissipation of kinetic energy at a scale of a different length than the actual flow. In the case of the SPHERLS, chose Δfilt = l where l is the length scale of the grid (see Appendix A).
SPHERLS uses the Smagorinsky-model (Smagorinsky 1963), which connects the viscous effects of SGS turbulence to the velocity stress tensor, similar to the eddy viscosity models in 1D; this also assumes incompressible turbulence. Although we perform compressible hydrodynamics, one can assume that on the subgrid scales, the fluid is incompressible. This assumption is valid if the related turbulent velocities are subsonic (Garnier et al. 2009) even in the case when the background radial pulsation has velocities above the speed of sound.
Lastly, numerical damping is a serious issue, especially in low-resolution models. This damping is caused by the numerical scheme of every hydrocode, and its main source is the truncation error of the spatial derivatives. This effect also can be stronger than the effects of the SGS models. We discuss this in detail in Appendix B. If this damping is too strong, shockwaves cannot be modeled. This could be an issue in the modeling of the ionization front, for which case we performed additional numerical tests next to the original ones of Geroux & Deupree (2011), which we present in Appendix C.
Similar to Geroux & Deupree (2013), we use tabulated opacity and equation of state values by OPAL (Iglesias & Rogers 1996) and the low temperature Alexander & Ferguson (1994) tables.
We ran a series of 2D models with two different sets of stellar parameters. These represent the RRab stars v036 and v046 in the M3 globular cluster, which were used for 1D model calibration by Kovács et al. (2023). We present the input parameters in Table 1.
Input parameters of the model series.
Geroux & Deupree (2013) used originally an angular size of θwidth = 6° and horizontal cell number of Nθ = 20, claiming that it is enough for one upward and downward moving convective cells to form. We refer to this model as the reference model throughout our paper. We chose a number of different angular widths for the models, covering the range from 4° to 45°. The number of horizontal cells chosen is between 20 and 60; this way we ran bad-resolution and small-sized models to test the effects of these arbitrary parameters.
The vertical resolution of our models is based on the 1D resolutions of pulsating stars (Paxton et al. 2019): we have a total Nr number of radial Lagrangian shells from which Nu is uniformly dispatched above the so-called anchor temperature, which is chosen to be Tanchor = 11 000 K in the partial hydrogen ionization region. Below this temperature, the shell sizes are increased according to a geometrical series. We ran 3 different vertical resolutions: Nr = 150, Nu = 50 is our baseline resolution (Nr = 152 in the case of v046 models), we have a few models calculated with Nr = 122, Nu = 25, and a high-resolution model with Nr = 200, Nu = 75, Tanchor = 50 000 K. Meanwhile, due to the very small cell sizes and the otherwise damped horizontal motions, SPHERLS uses 1D cells at the bottom of the model. We have 25 1D cells in the bottom of our baseline of low vertical resolution models, and 50 cells in the larger vertical resolution models. The different model dimensions are presented in Table 2.
General properties and dimensionless quantities of the models.
Due to this setup, the aspect ratio of the grid cells are changing throughout the stellar envelope: since the horizontal size is ∼r, we have a finer horizontal grid deeper in the star, while in the region above Tanchor the vertical resolution is finer, with aspect ratios Δr: rΔθ ∼ 1: 40 or larger. This directly affects the numerical damping and SGS viscosity: in some regions we have stronger horizontal damping then in other regions. We present aspect ratios of our models in Table D.1, in Appendix D.
3. Methods
We restricted our investigation to quasi-static envelopes before pulsation is triggered in them. In these envelopes, convection, and turbulence already develop spontaneously, which can thus be studied purely in themselves and their characterization is our aim in this study.
3.1. The modeling procedure
The discussed models are quasi-static which means that we started the hydrodynamic calculations from the zero velocity state in contrast with the method used in pulsation physics (see, e.g., Smolec & Moskalik 2008a; Geroux & Deupree 2013; Kovács et al. 2023). As these are pulsationally unstable envelopes, which means that a small perturbation (caused by either the convective motions or the numerical errors) can excite them, the models could not be run for too long; some models (e.g., v036_6_150x40) showed small amplitude but detectable pulsations at the end of the simulations. As the main focus was on the LES methodology of the SPHERLS code and not on the pulsation for the current study, we adjusted the simulation times accordingly.
All models were started from a fully radiative static initial structure (following the procedure of Geroux & Deupree 2013), and convection is ignited automatically by the numerical truncation errors in quantities of the models. Since the convective regions in RR Lyrae variables are relatively shallow, the convective turnover timescale (τconv) is 2–5 days. To reach a steady state of the convection, we ran the models for 40 days of simulation time, which sets the relaxation timescale (Kupka & Muthsam 2017) τrel ∼ 8 − 10 τconv. The statistical analysis of the models started after 40.5 days, and the statistical timescale was chosen to be 9 days (τstat ∼ 2 − 3 τconv); therefore, the statistical data were collected over the interval of ∼(40 − 50) days. The pulsation amplitude starts to increase only after that point, and was where we stopped the simulations.
In Fig. 1. we present the total turbulent kinetic energy (hereafter TKE) evolution of six different realizations of the v036 model. The differences are in the angular width (left panel) and angular resolution (right panel). The start of the statistical analysis is denoted by the vertical dashed line. The total turbulent kinetic energy is the kinetic energy of the shells projected onto the entirety of the star,
![]() |
Fig. 1. Time evolution of the total turbulent kinetic energy (TKE). Left panel: Comparison of the TKE evolution for different opening angles with resolution of Δθ = 0.3°. The models are v036_6_150x20 (blue solid line), v036_9_150x30 (yellow dashed line), and v036_12_150x40 (green dotted line). Right panel: Same as left panel, but with the same opening angle (θwith = 6°) and different resolutions: v036_6_150x20 (blue solid line), v036_6_150x30 (red dash-dotted line), and v036_6_150x40 (purple dotted line). The vertical dashed line denotes the end of τrelax and the start of τstat. |
where ρ is the density, U is the velocity field, U0 is the grid velocity (i.e., the velocity which is used to maintain the shell masses, see Appendix A) and S⋆ = 2π/(θwidth∫θ0θ0 + θwidthsinθdθ) is a scaling factor used to upscale the energy from the shell to the entire star. Here θwidth is the angular size of the model, R0 is the inner radius of the envelope, R is the radius of the star, θ0 = π/2 − θwidth/2 is the starting horizontal (θ) coordinate of the model.
The evolution of this quantity over time gives us a picture of the state of the model. First, it shows a somewhat steady rising phase, which comes from the initial small perturbation, and after that a relaxation phase in which it reaches a quasi-steady phase in which it fluctuates but has an almost constant average in time. Essentially, we can say that the first two phases are somewhat dependent on the resolution of the model, which is related to the numerical viscosity of the given model. This can be seen in Fig. 1 right panel: The larger numerical viscosity coming from the larger horizontal cell sizes of the model v036_6_150x20 (Nθ = 20, Δθ = 0.3°) delay the rising phase. Nevertheless all models reached the quasi-steady state after τrel.
3.2. Basic statistical quantities
There are several methods to analyze turbulent convection. In this section, we present some of the statistical methods that are broadly used in the field of turbulence.
In the literature of numerical hydrodynamical modeling of pulsation, the meaning of the terms of “ergodicity” and “ensemble average” are slightly different than in other branches of physics, for example in statistical physics (Kupka & Muthsam 2017). In this type of numerical solution, the computation time has to cover many periods or characteristic time intervals to provide good enough statistics, which requires a long computation time. Another possibility is that one runs several copies of the model, and instead of taking the average of one long sample, one takes the average of these copies. The ergodic hypothesis of numerical turbulence states that these two methods give identical results.
Hence, to collect statistical data about the turbulent convection, we assume ergodicity; so, ensemble averages are taken as time averages of τstat = 9-day interval (i.e., instead of averaging a static q quantity of N number of simulations, we take the time average of a single simulation). The ensemble averages are denoted by
In different cases, we use horizontal Reynolds and Favre averages. The former is denoted by the overbar,
and the Favre average is defined by the density-weighted Reynolds average and denoted by a tilde:
We note that the ensemble and horizontal averaging are commutable. To mitigate the fluctuations in the statistics caused by numerical uncertainties, we use ensemble averages of the horizontally averaged quantities as well, a procedure is widely used in the field (Kupka & Muthsam 2017). Using the above averaging methods, we can split quantities into mean and fluctuating parts:
We note that using fluctuating quantities allows the computation of other statistical moments: for instance, the horizontal standard deviation of a quantity q is defined by
.
The Favre and Reynolds averaging and their fluctuations are related to each other as
One can see that in the case of ρ′/ρ ≪ 1, the additive terms on the righthand side disappear, thus the two averaging and corresponding fluctuations are equivalent. These averages are usually used to analyze the multidimensional models in 1D and also to construct 1D models (Viallet et al. 2013).
To tackle the turbulent nature of stellar convection, we use statistical quantities usually used to describe turbulence. The structure of the velocity field can be described by the auto-correlation function6. The auto-correlation function at position x is the ensemble average of the velocity fluctuations and the fluctuation at x + rd, where rd is a displacement vector (Pope 2000):
Here ui = Ui − ⟨Ui⟩ is the ensemble fluctuation of the velocity in i direction. Since most Reynolds-averaged models used in the pulsation-literature (see Baker 1987) assume horizontal symmetry, and we mostly consider the horizontal (θd) displacements, rd = rθdeθ. On the other hand, numerical fluctuations break the strict homogeneity; thus we use the Reynolds averages as well:
.
We show vorticity (ω = rot(U − U0)) maps of different models in Fig. 2. All models are different realizations of v036. The left panel shows realizations with the same resolution and different widths, while the right panel shows different resolutions with the same angular width. We note that we included an animated version of this figure as supplementary material, in which one can follow the change of the vorticity field in τstat time. In this video, one can see that the different blobs move upward and downward, and there are larger ones that also rotate. To quantify the characteristic length scales of these eddies, we use the integral length scale:
![]() |
Fig. 2. Snapshot of five different simulations, taken at the same simulation time. The 2D simulations are in polar coordinates; the radial coordinate is in 1011 cm units; and the angular coordinates are in degrees. The color-coding denotes the vorticity of the fluid flow The simulation domains are rotated to fit on the figure. Left panel: Models v036_6_150x20 (top), v036_9_150x30 (middle), and v036_12_150x40 (bottom). These models have different angle widths, but the same resolution. Right panel: v036_6_150x20 (top), v036_6_150x30 (middle), v036_6_150x40 (bottom). These models have the same angle width, but different horizontal resolutions. In the left panel we can see that with increasing opening angle, the number of structures is also increasing in the HI region (at around 3.4 × 1011 cm radius.). In the HeII zone (at around 3.2 × 1011 cm), the size of the vortices increase. This means that the initial model with of 6° degrees used by Geroux & Deupree (2013) is inadequate to properly capture the properties of the flow structure in this area. Meanwhile, we can see on the right-hand side that the number of structures in the HI region is similar with higher resolutions (although more details appear). An animated version of this figure is available online. |
In engineering cartesian scenarios, the upper boundary rmax is set to infinity (Pope 2000). This cannot be maintained in stellar astrophysical scenarios, since in the radial direction it makes no sense to continue the integration into the interstellar medium, while in the horizontal domain the star has a finite extent of 2πR, which is a periodic boundary resulting in a self interaction. In our case the horizontal extent is much smaller being θwidthR. The periodic boundary also modifies the shape of the autocorrelation function, thus we select rmax based on the following conditions (O’Neill et al. 2004):
-
we integrate until the auto-correlation function reaches zero,
-
or until it reaches a minimum value.
These statistics give us a quantity that can be dependent on the horizontal width and resolution. If the angular size of the model is too small, it prevents the creation of larger eddies. The nonlinear interaction between convection and pulsation causes cycle-to-cycle variations in the pulsation (alongside with granulation noise), which can be severely modified by unphsysical self-interaction caused by the too small horizontal size. Having the current limitations regarding θwidth, we use Lij to minimize this effect, as this length scale does not increase further after reaching a minimum optimal angular size (O’Neill et al. 2004).
In addition to the length scale of the eddies, the overall horizontal fluctuation of the velocity field (or root-mean-square difference velocity) is an important quantity, as it is used directly in the 1D pulsation codes, so it can be compared to 1D results. Hence, it is crucial to map this dependence on the horizontal model size, θwidth and horizontal resolution, Δθ. We define these velocities by:
We note that by definition, these are equivalent to the square root of twice the horizontal and radial specific turbulent kinetic energy densities (e11 and e22 , respectively)7. The total specific kinetic energy is defined by
Since the Rayleigh-Bénard cells of the convection are genuinely anisotropic, and these anisotropies have their effects in the pressure terms of the turbulence (Pope 2000), the large scale anisotropy of the flow is also interesting. This is defined by the ratio of the rms velocities:
Convection in the stellar matter is always turbulent, as the viscous forces are negligibly small (Kupka & Muthsam 2017). Meanwhile, the radiative diffusion is large and the Prandtl numbers are in the 10−7 − 10−10 range. Turbulent convection with these low Prandtl numbers follows Kolmogorov-scaling (Verma et al. 2011), meaning that kinetic energy of the large scale convective motions are transferred through a cascade of eddies to scales where viscosity is relevant (Pope 2000). In this case, the kinetic energy in the cascade follows a power law of −5/3. Thus, the spatial spectra of the turbulent kinetic energy can be divided into three spatial ranges: the energy-containing range, which contains the bulk (> 80% Pope 2000) of the kinetic energy; the inertial subrange follows the Kolmogorov-law and the dissipation range, where the kinetic energy decreases exponentially, and is transformed into heat. In LES simulations, the main focus is to resolve the energy-containing range, which is done by a filtering function; however, this filter affects damping energies. To minimize the damping effect, one has to maintain a filter resolution in which Δfilt ≤ L11. In our case
(Magnient et al. 2007).
The other source of damping is numerical diffusion or numerical viscosity, which is caused by the truncation errors of the numerical scheme of the code. This actually can be more severe than the damping effect of the filter (see Appendices B and C). Therefore, it is worth to study the energy cascade of these models and compare it to the literature.
To quantitatively describe the energy cascade, we define the energy spectrum tensor by the Fourier transform of the auto-correlation function (Pope 2000),
where
is the horizontal width of the model ℒ = rθwidth With having N horizontal cells, the grid spacing horizontally is θwidth/Nθ = Δθ, which translates to a cut-off scale of rΔθ ≡ Δc. In practice, the largest horizontal frequency (Nyquist-frequency) is at wave number κc = π/Δc, and one can obtain N/2 number of spectrum points. Following this concept, the spatial spectrum of the turbulent kinetic energy is
We note that by using horizontal means, all previously described quantities will be dependent on the radius coordinate inside the star.
3.3. Dimensionless quantities
Although we do not have direct measurements of RR Lyrae subsurface convection, one can derive dimensionless numbers from material physics to characterize flow in these layers (Kupka & Muthsam 2017)8. The other and commonly used approach is comparing modeling results to observations. However, we need to follow many pulsation periods in nonlinear radial pulsation modeling, which has an unfeasible numerical cost in the case of two or three dimensional computations. One would need multiple observed stars, and for each, a dozen models followed through at least 400–500 cycles, which calculation for a single model can take months ( for the computational cost in SPHERLS, see Section 4.1 and also the original SPHERLS papers of Geroux & Deupree 2011, 2013, 2014; Geroux & Deupree 2015). Hence, we use dimensionless numbers that characterize the flow and underlying numerics.
The dimensionless numbers characterizing the flow are the ratio of effective kinematic to radiative energy diffusion (effective Prandtl number, Preff), the ratio of inertial to viscous forces (Reynolds number, Re), the ratio of total energy flux to radiative energy transport (Nusselt number, Nu) and the ratio of convective velocities to radiative diffusion (Péclet number, Pe). We also define the horizontal Reynolds number (Rehor) in which we only consider horizontal velocities and horizontal viscosity.
Their definitions:
where νnum is the kinetic diffusivity of the numerics,
, with χ = 16σT3/(3κcpρ2) which is the thermal diffusivity. The quantities
and
are the internal energy and heat diffusivity of the numerics, while χSGS = νSGS/(Prt) which is the subgrid scale model diffusivity with νSGS as the SGS viscosity and Prt is a constant (see Appendix A). The characteristic length scale of the flow is chosen to be the size of the eddies, L11. The numerical diffusivities are discussed in detail in Appendix B.
The last undefined term in the above definitions is Fc, the convective flux. This can be described as the covariance of the velocity and enthalpy (h) fields:
To measure the effects of the numerical methods and the resolutions, we define the following quantities: the ratio of resolved to SGS kinetic energies (qSGS), the ratio of the numerical to SGS viscosities (qnum) and the ratio of the numerical energy diffusivity to SGS energy diffusivity (qdiff):
where χnum is the numerical energy diffusivity (see Appendix B).
A significant problem of stellar convection modeling is that we cannot directly simulate Pr ∼ 10−7 flows, as the numerical dissipation would act as an additional viscosity and increase the effective Prandtl number. In SPHERLS, the numerical viscosity strongly depends on the model resolution and the current flow velocities (see Appendix B); therefore, it depends on location, and we cannot determine it before calculations. To circumvent this problem and describe expected flow characteristics before simulation, we define a characteristic Prandtl and Reynolds number that is used to describe expected Prandtl and Reynolds number differences via different zoning and resolution. For this, we use the minimum effective numerical viscosity needed for stable solution of hyperbolic partial differential equations (Strikwerda 2004), in the form of
where ΔUch is the characteristic velocity differences on the grid scale (1.5 km/s expected at this resolution with Uch ≈ 10 km/s characteristic velocities for RR Lyrae stars based on 1D calculations), and lch is the characteristic cell size of the model taken in the HI ionization zone. Since the radial grid is finer in the HI zone, we set lch = RΔθ. The characteristic length scales of the eddies, Lch is chosen to be 1.5Hp, based on the 1D mixing length theory, and usual parametrization of 1D codes (Paxton et al. 2019) The radiative thermal diffusivity χch, and pressure scale height Hp is calculated from 1D models at 10 000 K. So, our characteristic Prandtl number is defined as
and the Reynolds number as
We use these quantities to get a predominant view about the expected behavior of the simulations, as in this form they only depend on Δr and Δθ which are defined by our choice of cell numbers (Nr and Nθ respectively) and the horizontal size of the domain (θwidth) in the latter.
The final goal of our study is the comparison of the 1D and 2D pulsation models; hence, it is crucial to determine how the 1D properties of the convective regions depend on the domain size and resolution. We define five length scale parameters characterizing the size of the different structural components of the convective zone in RR Lyraes; see Tables 3 and 4.
Terminology of the convective structure components used in this paper.
Length scales corresponding to the convective structure components used in this paper.
These length scale parameters are given in pressure scale height units (Hp = pr2/(ρGMr), where p is the pressure, Mr is the mass inside the sphere with radius r and G is the gravitational constant). We use the Hp at the bottom of the HeII partial ionization zone.
The length scales are defined by the relation of the convective flux Fc and the nondimensional super-adiabatic gradient Y = −(Hp/cp)(∂s/∂r) similarly to Käpylä (2019), where cp is the specific heat at constant pressure and s is the entropy. The length scales ΛHI, and ΛHeII are defined by the buoyancy-driven convectively unstable region, that is, where Fc > 0 and Y > 0. We define the so-called Deardorff’s or counter-gradient9 regions by the condition of Fc > 0 and Y < 0. The overshooting zone, ΛOV, is described by the negative convective flux, that is Fc < 0 and Y < 0. We note that since Fc → 0 asymptotically, we have an extra condition as |Fc|/|maxFc|> 0.001. The length scale of the size of the convective region is Λconv = Lc/Hp, where Lc is the size of the convective region, which is defined from the bottom of the HeII ionization zone (Rbottom) to the top of the HI ionization zone (Rtop): Lc = Rtop − Rbottom and
. The effectively turbulent region, Λt , is defined by the condition et, 0 ≥ 106 erg. This is an important length scale to compare with the 1D calculations, as the 1D turbulent convection models of radial stellar pulsations are explicitly solving equations for et, 0, and many other terms of these models depend on this quantity10 (Kolláth et al. 2002; Paxton et al. 2019; Kovács et al. 2023).
Due to the choice of the Hp parameter and the fact that the two buoyancy-driven convective regions are separated, the length scales have this expected relation:
Alongside with the length scales, we also define the mean convective velocity,
, and the convective turnover timescale τconv. These values give us an overall estimate about the timescale of convective processes, and the total kinetic energy stored in the convective region, and were used for a red giant model by Viallet et al. (2013). The mean convective velocity,
, is defined similarly to Arnett et al. (2009),
where Et, conv is the total turbulent kinetic energy in the convective shells, and Mconv is the total mass of the convective shells:
This is used to define the convective turnover timescale:
.
In summary, we use different statistical and horizontal averaged quantities that describe the size of the turbulent eddies, the behavior of the velocity field, the turbulent cascade, general flow properties, and the size and behavior of the convective region. We are interested in determining whether these quantities are affected by the sizes and the resolutions of the 2D models, and if they are, then which model parameters give consistent results, and what is the best compromise between resolution and numerical performance. In the next section, we first show the fundamental computational limitations of the calculations, and then the different results of the aforementioned quantities.
4. Results
4.1. Calculation times
In this section, we present some benchmark information that are relevant to our study. The main reason behind resolution tests is the calculation times. We aim at finding a model resolution that:
-
(a)
can resolve horizontal scales that are relevant in radial pulsation physics
-
(b)
can ensure reaching full amplitude pulsations within reasonable computation times.
Therefore, here we study the evolution of time steps in the different scales and the scaling of computation times on different numbers of cores and different resolutions on two different machines.
In Fig. 3. we show the calculation time on different number of cores in two different environments. The filled squares represent calculations on the HUN-REN Cloud (Héder et al. 2022), with AMD EPYC-Rome CPU, the filled circles are points calculated on the HUN-REN CSFK Malor computer with a CPU of Intel Xeon Gold 5220R CPU @ 2.20 GHz. One can see that in most cases, after reaching twelve cores, the computational time increases, which is a phenomenon called API overhead. This problem is caused here by the OpenMPI environment, in which parallelization is solved by having the parallel threads in different processes. These processes have their own memory and do not see into each other’s, hence, a massage interface is used to communicate between the different parallel processes. This allows efficient usage of large CPU clusters. However, in this case, due to the continuous synchronizing between cores in each time step, after (in this case) twelve parallel processes, the communication between cores takes more time than the calculation.
![]() |
Fig. 3. Calculation times for 10 000 time steps, on HUN-REN Cloud (dashed line, filled squares) and the HUN-REN Malor computer (solid line, filled circles). The API overhead becomes a problem after 12 cores, while in the low vertical resolution case, this happens only for 18 cores. |
Since SPHERLS uses an explicit method to update velocities (Geroux & Deupree 2011), the time steps must be kept below the Courant-criterion. This causes two problems: first, as we reach the surface, the pressure scale height drops, decreasing the sound speed and thus the time step; secondly, the better horizontal resolution also decreases the time step for a given velocity. These effects can decrease time steps to the level of Δt ∼ 10−3 seconds, which means that in the case of 10 000 time steps, one propagates the model by 10 seconds only, but to do this the calculation time amounts to 8 minutes.
4.2. Structure of the convective zone
The convective zone in the observed quasi-static RR Lyrae stellar models can be divided into four main regions based on the conditions listed in Table 3. This structural division is presented together with the components of the convective flux in Fig. 4. The zones can be followed through the relation of the super-adiabatic (or dimensionless entropy) gradient, Y (presented by a green dotted line, values corresponding to the right vertical axis), and the convective flux, Fc (presented by the blue curve, values belonging to the left vertical axis). The identified regions are the convectively unstable zone at the second helium ionization zone (we denote it with HeII), the unstable zone in the overlapping hydrogen and first helium partial ionization zones (HI), a counter-gradient layer (CG) which connects the two unstable zones, and a large overshooting region (OV) penetrating into the lower layers of the star. Above HI, one can also see a thin counter-gradient and overshooting region, which are very thin compared to the regions below.
![]() |
Fig. 4. Structure of the convective zone and the flux components. The left-hand side is the vicinity of the HeII zone, and the right-hand side is the vicinity of the HI zone. The left-hand side vertical axis is the flux, and the horizontal axis is the radius. The green dotted curve with the right-hand axis denotes the dimensionless entropy gradient. Comparing the sign of this and the convective flux (blue curve) gives the borders of the different regions, which are separated by the dashed gray vertical lines. The condition of the regions is given in Section 3, and also in Table 3. The other flux components are the temperature flux (orange curve), the pressure flux (red curve), and the ionization energy flux, Fμ (yellow dash-dotted curve). The sum of these three components gives the black dashed curve. The kinetic energy flux is shown as a purple line. |
In the animated version of Fig. 2, available online, one can also see plumes in the CG region, originating from the HI region and penetrating into the HeII region. The HeII region has larger rotating structures, and blobs from these can break off, escaping in either direction. Those in the CG usually connect into the HI region, while in the OV they are dissolved.
The sizes of the different layers for every model are given in Table 5. We plot these and
against the θwidth in Fig. 5. The color code denotes the characteristic Prandtl numbers of the different models. Models of v046 are denoted by plus signs, and models with radial cell numbers of 122 are denoted by crosses; v0366200x20 is presented by the gray triangle. For
, Λconv, ΛHI and ΛHeII, there is a decreasing trend with the horizontal width, while ΛOV and Λt increases when we increase the θwidth. While in the θwidth < 10° region, the resolution has larger effects than in the larger θwidth regime.
Horizontal averaged convective properties of the models.
![]() |
Fig. 5. Different properties of convection vs. the horizontal size of the model. These data are also presented in Table 5. The color-coding denotes the resolution through the characteristic Prandtl number. The standard vertical resolution v036 models are denoted by circles, and the reduced vertical resolution (Nr = 122) models by crosses. Pluses denote the v046 runs, and the v036_6_200x20 model is represented by the gray triangle. Top left panel: Average convective velocity; top right panel: Size of the turbulent region (Λt) in pressure scale height (Hp) units. Middle left: Size of the total convective region in Hp units. Middle right: Size of the hydrogen ionization zone in Hp units. Bottom left: Size of the overshooting region in Hp units. Bottom right: Size of the second helium ionization zone in Hp units. |
The consistency and amplitude of differences are also different for the different Λs. The largest change happens with ΛOV, changing by a factor of 3. This means that θwidth > 6° is a crucial condition for having meaningful simulations in the HeII region. The models with low resolution (Prch > 0.3) show very low velocities, but otherwise, they fit in the trend in the case of the other parameters. v046 models show the same trends as v036 models, while the vertical resolution has a small effect.
Interestingly, we did not find a counter-gradient region between the overshooting and HeII zones, not even in the higher resolution models. In low-resolution models, the CG zone can be “squeezed out”, meanwhile convection is already insufficient in the HeII region, causing an insufficient transport of flux downward. On the bottom-line, this feature needs further investigation in quasi-static RR Lyrae models in the future.
4.3. Components of the convective flux
As our final goal is the comparison with 1D models, we study the different decompositions of the convective flux, that are used to derive 1D models. The energy transported by the convective motions is typically the fluctuating enthalpy flux Fc (see Eq. (16) and also Kupka & Muthsam 2017). Regularly, the two main methods using thermodynamic equities to split this term into its components are (Viallet et al. 2013)
where δ = (ρ/T)(∂lnρ/∂lnT)p is the isobaric compressibility, and μ is the mean molecular weight. In most cases, the pressure terms are neglected based on filtering out acoustic waves (this is called low Mach number approximation Gough 1977; Stellingwerf 1982; Kuhfuss 1986). Eq. (23) is usually used in the descriptions of the current state-of-the-art pulsation codes (Bono & Stellingwerf 1994; Yecko et al. 1998; Paxton et al. 2019). Viallet et al. (2013) showed that in the case of Eq. (23) the pressure term is, in fact, significant in the stellar envelope; meanwhile, in Eq. (24), the compressibility mostly compensates the pressure term (δ ≈ 1). This latter equation is used many times for analysis (Geroux & Deupree 2013), and for modeling, as well (Canuto & Dubovikov 1998).
The last term of Eqs. (23) and (24) are also neglected in the stellar envelopes, usually because the mean molecular weight changes only because of the ionization, which can be incorporated into cp and δ or s. On the other hand, in the case of the sharp stratification of the ionized zones in RR Lyrae stars, the ionized matter that moves upward by the convective motions carries a significant amount of latent heat: their ionization energy. We found this in our study to be a significant term, giving up to 50% of the convective flux in the v036 models. This is mostly significant in the HI region.
We present this effect in Fig. 4. The two panels show the vicinity of the two dynamically unstable regions: the left-hand side is the HeII zone, and the right-hand side is the HI zone. The left vertical axis is the flux, while on the right vertical axis, we present the nondimensional super-adiabatic gradient Y with a green dotted curve, and the horizontal axis is the radial coordinate inside the star. The real enthalpy flux, Fc, is denoted by the blue line. We separate the different regions described in the previous section by vertical dashed black lines. We also show the different terms of the convective energy flux: the temperature component
is presented by an orange curve, the pressure term
is given by the red solid line, and the molecular weight term,
is denoted by the dash-dotted yellow line. This last term is calculated only approximately in our study, and the sum of the aforementioned terms (black dashed curve) is not fully equivalent with Fc. Lastly, the purple curve denotes the turbulent kinetic energy flux defined by (Viallet et al. 2013)
. This term does not take part in the enthalpy transport, and it is sometimes neglected (see, e.g., parameter set A and B in Paxton et al. 2019), but as we can see in Fig. 4, it is more significant than Fp. This flux term appears near the edges of the total convective zone (i.e., not in the inter-zone counter-gradient layer). Interestingly in the top of the HI zone, Fkin becomes positive, which phenomenon is not present in solar and red giant convection, but was found earlier in A-type stars, which have thin convection zones similarly to the models presented here (Kupka et al. 2009).
4.4. Structure and anisotropy of the velocity field
Now, we turn our attention to the horizontal fluctuations of the velocity fields. In Fig. 6. we present the velocity fluctuations (
with solid and
with dashed line) versus the radius of four different models of v036: v0366150x20 (top left), v03612150x20 (top right), v0366150x50 (bottom left) and v03612150x40 (bottom right). These four models cover the observed trends. The rms velocities show two peaks, a smaller one in the HeII ionization zone at R ∼ 3.2 × 1011 cm, and a larger one in the overlapping HeI and HI ionization zone at R ∼ 3.4 × 1011 cm. The slope of the radial velocity shows a hump at roughly the middle of the HeI region. The figure shows the presence of the Rayleigh-Bénard cells: we can see that in the middle of the convection zones, one has higher radial than horizontal velocities.
![]() |
Fig. 6. Velocity fluctuations in different models. The solid line denotes the radial direction, and the dashed lines denote the horizontal direction. Top left: v036_6_150x20; top right: v036_12_150x20; bottom left: v036_6_150x50; bottom right: v036_12_150x40. |
This structure also mirrors the structure seen in Fig. 4. The two dynamically unstable regions generate their own convective shells. Still, in the inter-zonal region, these layers overshoots toward each other, establishing a loose connection between the two zones.
The anisotropy of the flow follows the same pattern in every model. Generally, the convective zones are anisotropic with σrθ ∼ 2, while in the counter-gradient and overshoot layers, it is almost isotropic. Mostly, we can say that the counter-gradient and overshooting layers show isotropic decaying of the granulation structure, as shown in Fig. 7. In the case of bad resolution Δθ > 0.2°, we experience a drop in the horizontal velocities and an increase in the radial velocities. In the case of resolutions with Δθ > 1°, numerical viscosity is so large that the overall convective velocities drop. Compared to the reference case of θwidth = 6°, Nθ = 20, increasing the size of the computational domain and increasing the resolution has a similar effect on
: it is increased, especially near the surface.
![]() |
Fig. 7. Anisotropy factors, σrθ, of four different v036 models vs. the radial coordinate. The models are the reference model, v036_6_150_20 (blue solid line); v036_12_150x20 (orange dashed line); v036_6_150x50 (green dotted line); v036_12_150x40 (red dash-dotted line). |
4.5. General properties of the flow structure
The dimensionless numbers describing the properties of the flow are presented against the Prch and θwidth in Fig. 8, and are listed in Table 2. We also present a list of grid aspect ratios, horizontal Reynolds numbers, and effective Prandtl and Péclet numbers at different radial positions in Appendix D. From the characteristic Prandtl and Reynolds number, one can conclude that the resolution presented here is too low to show actual turbulence in the simulations. The effective Prandtl numbers in the middle of the HI zone (PrHI) are in the same range for every model: PrHI ∈ [0.02; 0.06] (top left panel). This is systematically lower than Prch by a factor of 2–10, which is a combined effect of our arbitrarily chosen χch, the fact that viscosity ν ∝ U, and that
11. This can be seen especially in the case of the very low-resolution models, with θwidth = 45°. The ratio of numerical to SGS diffusion is in the same range, weakly anti-correlating with the opening angle (top right panel), and similar behavior can be observed in the case of the ratio of numerical to SGS viscosities (middle left panel). Both quantities are extremely large (qdiff ∼ 𝒪(1000); qnum ∼ 𝒪(100)) which also indicates very large numerical damping, which easily outweighs the SGS model. Therefore, the ratio of SGS energy to total kinetic energy is low: qSGS ≈ 10−3 (middle right panel), and it is slightly increased in the bad resolution models, which is expected.
![]() |
Fig. 8. Dimensionless properties of the simulations vs. the angle width. The color-coding denotes the characteristic Prandtl numbers. The symbols are the same as in Figure 5. The corresponding data can be found in Table 2. Upper left: Prandtl number in the middle of the HI zone; Upper right: Ratio of numerical to SGS diffusivity; Middle left: Ratio of numerical viscosity to SGS viscosity; Middle right: Ratio of the SGS kinetic energy to the turbulent kinetic energy of the resolved scales; Lower left: Maximum Nusselt number; Lower right: Péclet number in the middle of the HI zone. |
In the v036 models, the convective flux is inefficient and strongly depends on the opening angle (bottom left panel); meanwhile, Péclet numbers are similar in the different models: Pe ≈ 0.75, except for the low-resolution model. The v046 models have larger convective fluxes (Nu > 1.1), but still smaller than one would expect from 1D models (Kovács et al. 2023).
It can be said altogether that the numerical properties and Nusselt number (similarly to
, see Fig. 5) anti-correlate with the opening angle of the models. At the same time, the other dimensionless quantities do not depend significantly on them. The resolution also has a much smaller effect, and it decreases PrHI (which is expected) while increasing
. Meanwhile qdiff ≫ 1 and qnum ≫ 1 meaning that even though qSGS ≪ 1, this means in this case that the velocity is so much damped by the numerics on the grid scale, that the SGS model is just a second-order problem next to it. This means that qSGS cannot be used to determine the quality of the resolution.
Comparing these results with the calculations of v046, we can see that as it has a lower effective temperature, it also shows the same trends with the opening angle. Meanwhile, having increased (v0366200x20) or decreased vertical resolution does not produce significantly different results.
4.6. Length scales of the turbulent convection
As shown in Fig. 2 and the supplementary animation (available online), the horizontally larger models do not contain more vorticity structures in the HeII region; instead, the size of the structures is increased. To further delve into this problem, we calculated the longitudinal and transversal integral length scales of the velocity field, as they give us information about the size of the largest eddies. In this section, we refer to the diameters of the eddies as 2L11 and 2L22. We note that we choose the reference models to Δθ = 0.3° and θwitdh = 6°, that was used in Geroux & Deupree (2013).
We present the results of seven chosen models in Fig. 9 to differentiate between the effects of different opening angles and resolutions. This figure shows 2L11 and 2L22 values in the top and bottom panels, respectively. We chose the models for the presentation to cover the problem of resolution and opening angles. Hence, we compare the reference models to different θwidth runs in the left-hand side panels, while the effects of resolution change compared to the reference model are presented in the right-hand side panels.
![]() |
Fig. 9. Longitudinal (top panels) and transversal (bottom panels) integral length scales of different realizations as a function of the radial coordinate. Left panels: Comparison of different θwidth models; Right panels: Comparison of θwidth = 6° models with different resolutions. The vertical dashed lines separate the different regions of the convection zones: the dynamically stable zone, the overshooting region, the convection zone corresponding to the HeII ionization layer, the counter gradient zone that connects the HeI ionization and the HeII ionization layers, and the convective zone belonging to the overlapping HeI and HI ionization. The thin dotted lines denote the horizontal length of a cell (bottom) and the total horizontal domain in the 6° wide model (top). |
In Figure 9 top left panel we compare the 2L11 values of the model v0364150x20 (blue solid line), v0366150x20 (yellow dashed line), v0369150x30 (green dotted line) and v03612150x40 (red dash-dotted line). The horizontal axis is the radial coordinate, and we labeled the different subregions of the convective zone. We plotted the pressure scale height with a thinner purple dashed line for comparison. The resolution of the Δθ = 0.3° models is shown with a black dotted line at the bottom of the figure, while the total domain size of the θwidth = 6° model in the different depths is denoted by the top black dotted line. We can see that the horizontal velocities, given a large enough domain, create eddies at the bottom and top of the HeII zone around 2/3 of the reference (θwidth = 6°) models. In other words, the HeII zone’s boundary regions produce eddies with sizes correlating with the computational domain size.
In the meantime, there is no significant change in the longitudinal integral length scales when we increase the resolution, as it can be seen in the top right panel of Fig. 9. Here, the reference model (v0366150x20) is the blue solid line, v0366150x30 is denoted by the yellow dashed line, a green dotted line is the v0366150x40 and red dash-dotted line presents the higher resolution v0366150x50. As one can see, there are no significant differences between the longitudinal integral length scales of these models.
The angle width effect is present, albeit with much less efficiency, when we compare the transversal lengths scale in the bottom left panel of Fig. 9; the models are the same as those in the top left panel. We note that in homogenous isotropic turbulence (Pope 2000), L22 = L11/2. Comparing the left-hand side panels to each other, and also with the anisotropies in Fig. 7, one can deduce that the flow is indeed almost isotropic in the counter-gradient and overshooting regions. Corresponding to the larger anisotropy in the dynamically unstable regions, the 2L22 values are also larger.
The increased resolution did not affect the 2L22 values, similarly to the case of 2L11. On the other hand, we detected a strange anomaly in the case of v0366150x30 and v0366150x40, in which the transversal integral length scales are enhanced at the top boundary of the HeII zone. We show this phenomenon in the bottom right panel of Fig. 9. This behavior is puzzling and will need further investigation.
Another interesting feature of the length scales is the return to the horizontal size of the model in the stable region. As
, the Rrr(rd)/Rrr(0)→1, the transversal integral length scale quickly becomes the total horizontal width. Meanwhile, it seems that there is some remaining horizontal velocity in the deeper regions, which still shows a decaying auto-correlation. In the deeper 2D regions, 2L22(r) = rθwidth while 2L11(r)≈rθwidth/3.
In summary, we can conclude that the diameter of the larger eddies is greatly dependent on the angular size of the modeling box until reaching θwidth > 9°. After that point, the effect diminishes. The larger resolution than the reference Δθ = 0.3° does not affect the larger eddies, and there is some remainder horizontal velocity in the dynamically stable region.
4.7. The behavior of the energy cascade
An LES simulation aims to resolve the large, possibly anisotropic scales of motion, that is, the energy-containing ranges (Pope 2000) of the turbulent cascade. The filtering function that appears in the derivation of such a method (Garnier et al. 2009) damps the energy cascade at the filtering scales (in our case, it is l, the grid scale length). The energy of these scales and (those that are below l) are modeled through the eSGS models. Having reached ∼80% of the kinetic energy in the resolved scales implies that the largest structures are resolved (Pope 2000), but these will be severely damped by the numerical (and SGS) viscosities; therefore, a real turbulent energy cascade cannot be formed. For a good resolution, one would need at least 95–99% in the resolved TKE, which also means that qnum ≪ 1 and qSGS ≪ 1. As we have seen in Section 4.5, our simulations are far from this.
Nevertheless, numerical simulations of this scale can show an energy cascade that eventually have a power law subrange. This does not mean that we reached automatically the inertial subrange. In fact, the granulation pattern of stars (slow uprising and strong confined downflows) show a similar energy spectrum (Nordlund et al. 1997).
To study the presence of granulation, we present the normalized horizontal kinetic energy spectra (Φ11/(2e11)) and normalized turbulent kinetic energy spectra (et(κ)/et, 0) of fourrepresentative models in Fig. 10 (top and bottom panels, respectively). We chose two different depths for the comparison: the middle of the HeII zone and the middle of the HI zone; the orange curves represent the former, while the blue curves denote the latter. The dashing type of the curves denotes the models: results of v0366150x20 is denoted by solid curves, v0366150x50 is presented by the dotted curve, dashed curve presents v03615150x40 and lastly the dash-dotted curve is the v03645150x20.
![]() |
Fig. 10. Logarithm of the horizontal kinetic energy spectrum normalized by 2e11 (top panel) and the total normalized turbulent kinetic energy spectrum normalized by et, 0 (bottom panel) vs. the logarithm of the horizontal wave-number in the HI zone (blue) and the HeII zone (orange) for different models: v036_6_150x20 (solid line); v036_6_150x40 (dotted line); v036_12_150x60 (dashed line); v036_45_150x20 (dash-dotted line). We show the Kolmogorov −5/3 slope as a dashed black line for comparison. The low-resolution model does not show the granulation energy cascade as it is damped already at the energy maximum. Simultaneously, the amount of total kinetic energy is lower in the HeII region, and L11 and L22 are larger. Thus, the spectrum has κmax at a lower wavenumber. |
Taking the strong damping into account, we accept a resolution (and horizontal size) if the structure of the energy spectrum is the following:
-
There is a driving range from the largest scales (smallest κ), in which the spectrum increases, reaching its maximum.
-
This maximum (κmax) corresponds to the largest scale eddies, and the energy is determined by the number of up and downflows that can be created.
-
At κ > κmax, e(κ) starts decreasing, which range contains a part where e(κ)∝κ−5/3 or even κ−2 (Nordlund et al. 1997).
-
This is followed by a steeper decay, where numerical/SGS viscosity takes over.
In the top panel of Fig. 10, we can see that in the bad-resolution models, the large-scale part of the spectrum is present, but it is sharply cut at the Nyquist-frequency, without reaching the decaying range. In addition, the spectrum fluctuates, and HI and HeII spectra are the same. The other models show that the real granulation spectra starts at wave numbers κmax ∼ 3 × 10−3 km−1. The driving range start at lower wave numbers and are not present in the 6° wide models (lack of rising part). Otherwise, the larger resolution model resembles more closely the spectra presented by Nordlund et al. (1997).
If we look at the total turbulent kinetic energy spectrum in the bottom panel of Fig. 10, we can see that the vertical kinetic energy has different spectra in the two different regions. The resolution features are similarly present, though we can see that the dissipation range of the HI zone is not that strong with models Δθ = 0.3. Meanwhile, in the HeII zone, κmax ∼ 1.7 × 10−3 km−1, that is, motions here are on a larger scale, which can be explained by the larger pressure scale height in this region.
5. Discussion
We organize our discussion around the three main results: (1) the convective zone structure, (2) the domain size and resolution effects, and (3) the optimal size of RR Lyrae models based on our results.
5.1. The consequences of the convective zone structure
As we have seen in Sections 4.2 and 4.3, the convective zone structure differs from the 1D picture, such as provided by the hydro-codes of Yecko et al. (1998) or Smolec & Moskalik (2008a). Recently, these two codes were compared by Kovács et al. (2023). Primarily, the two convectively unstable regions at the first hydrogen ionization zone and the second helium ionization zone are not completely separated in the static case (as in the code of Smolec & Moskalik 2008a), but they are connected through decaying eddies, in a counter-gradient region.
The presence of counter-gradient layers is commonly known in astrophysics (Kupka & Muthsam 2017), but their actual presence in a flow can depend on various parameters. For instance, Käpylä (2019) found a correlation between the extent of this zone and the effective Prandtl number in solar-like convection simulations. Meanwhile, we do not find a CG region at the bottom of the HeII zone, not even in higher resolution models, suggesting that this region is very narrow, and we couldn’t resolve it. In the RGB model of Viallet et al. (2013), the transition between buoyancy driven and overshooting region is also very sharp. We conclude that this region would need an infeasibly large vertical resolution.
Nevertheless, the presence of CG layers means that the general mixing length view currently employed in pulsation theory is not a good approximation in these regions. This approach assumes that Fc ∝ Y, that is, the convective flux is aligned with the super-adiabatic temperature gradient. The usage of this type of gradient-diffusion hypothesis creates various problems: overestimated convective velocities (Wuchterl & Feuchtinger 1998), unphysical stratification (Kupka et al. 2022; Kovács et al. 2023), missing turbulent kinetic energy in the overshooting regions (Kovács et al. 2023). This theoretical problem has effects on the nonlinear behavior of pulsating stars (see, e.g., Smolec & Moskalik 2008b), and probably is one of the main reasons for the reproduction difficulties of secondary light curve features (Marconi 2017).
Our other main result is that due to the sharp stratification of the hydrogen partial ionization zone, the temperature flux cannot reproduce the whole convective flux:
(see Fig. 4). Instead, we have latent heat transport, which originates from the ionization energy of the transported HII and HeII ions. This energy transport is significant, giving about half of the convective flux. In the meantime, Viallet et al. (2013) showed that the pressure term is nonnegligible if we use the entropy flux only (see the derivation of Kuhfuss 1986). This means that convection models that describe convective flux through solving temperature fluctuation (e.g., Canuto & Dubovikov 1998) have to deal with this problem, as well. One way of doing this is to incorporate the fluctuations in the specific heat (in which ionization is usually incorporated) into the definition of Fc. This method was investigated by Montgomery & Kupka (2004), who found it to be a correction of 15% in A-type stars as well as in DA and DB white dwarfs. We note that this is a specific feature of sharp ionization fronts, and this problem probably does not occur in solar or red giant models. On the other hand, nonlocality of the convective-flux is a more serious problem in 1D models.
Another feature we found is the sign inversion of kinetic energy flux at the top of the HI zone. This phenomenon is not present in solar or red giant convection, instead it was reported in A-type star convection by Kupka et al. (2009). Kupka et al. (2009) gives an explanation by pointing out that in their model the convective region is very shallow, causing heating from the bottom and cooling from the top acting on the same distance around one pressure scale height. Although they have presented this in a model without helium, our model has lower density, and an even sharper temperature gradient.
The structure of the velocity field is similar to the red giant and other models, similar to those in Viallet et al. (2013), but the two convective zones can be separated as two maxima in the rms velocity profile (Fig. 6). In general, the large-scale convective motions are anisotropic (see Fig. 7), they become almost isotropic in the inter-zone counter-gradient layer and the overshooting region as well, which is supported by the behavior of integral length scales of this region (L11 ≈ 2L22). The question of how this anisotropy influences the mode selection through pressure-like terms needs further study.
Altogether, the overall structure of the convective zones in static RR Lyrae models is composed of the two distinct dynamically unstable regions (also the engines of the pulsation),connected through a counter-gradient layer. This creates a very complicated coupling between these zones, which needs further studies for both the static and the dynamical models. The first step in unfolding this problem is determining the optimal model size and resolution to allow affordable computations with enough details. In the next section, we summarize and discuss our experiences with these models’ size and resolution constraints.
5.2. Effects of the domain size and resolution
Nearly all the important quantities (size of the different structures in the convective zones, velocities, effectiveness of the convection, sizes of the eddies, anisotropy) showed some dependence on the horizontal size and resolution of the models.
In the case of the structure of the convective zone, the resolution effects become less important at larger models (see Sect. 4.2 and Fig. 5). The horizontal width of the models had larger effects, and universally, we see that the mean convective velocity,
decreases with the horizontal width of the models (θwidth) while the length scale of the overshooting zone, ΛOV increases. This, together with the shape of the energy spectrum (i.e., κmax ∼ 1.7 × 10−3 km−1) and the fact that the eddy sizes (Fig. 9) became unaffected by the angular sizes, show us that in the lower θwidth models, the “box” of our simulation is too small, the largest two eddies interact with themselves through the periodic boundary condition. We note that with periodic boundary conditions, one always has at least two counter-rotating eddies (Glatzmaier 2014). As we presented in Sect. 4.6, the horizontal size severely affects the length scale of the overshooting (ΛOV) and nonzero turbulence (Λt) regions. The size of these regions are connected to the eddies formed in the HeII region. If θwidth is too small, the corresponding eddies will be small as well, resulting in a lower penetration depth.
The change in the other parameters can also be connected to the eddy sizes. The smaller eddies must increase the velocities to cover up the kinetic energy budget missing from the larger scales. This enhances convective flux in these models.
Meanwhile, we have a stronger resolution problem in the horizontal direction, which increases numerical viscosity, outweighing the SGS model. This enhanced convection (especially in the HeII zone) will increase the Nusselt number. Due to the technical details of SPHERLS (Geroux & Deupree 2011), the numerical viscosity is also dependent on the velocity, which will also be enhanced in this case (see Appendix B). Interestingly, we experience that the background pulsation is more effectively excited with smaller θwidth, which is probably caused by the stronger instabilities of the flow. The supplementary animation also showcases the more violent nature (see also Fig. 2) , which can be responsible for the increase of total turbulent kinetic energy of the v066150x40 model seen in Fig. 1.
The v046 models follow the same trends as the v036 models too, indicating that this might be a general feature of the RR Lyrae LES models. On the other hand, it is important to note that despite being too small, the reference models that were also used in Geroux & Deupree (2013, 2014), Δθ = 0.3° ; θwidth = 6° models reproduced M3 RR Lyrae light curves reasonably well, leading us to the conclusion that the effects are probably small compared to the classical pulsation instabilities themselves. This is due to the fact that classical pulsation itself is governed by the kappa-mechanism which needs good radial resolution, while 2D simulation even with low resolution can produce more accurate convective effects then 1D mixing length theory. These box sizes and resolutions are nevertheless inadequate to model strongly nonradial phenomena, such as p-mode pulsation (see, e.g., the resolution of the models of Stein & Nordlund 2001). Meanwhile, studying the nonlinear, chaotic effects and the comparison with 1D models need the full view of which effects are numerical and which are physical; our further studies will need larger θwidth models.
The larger L22 integral length scales of the models v0366150x30 and v0366150x40 in the bottom right panel of Fig. 9 remain a puzzle. The asymmetry of the resolution is an unlikely explanation as the v0366150x50 model has a similar L22 profile, than v0366150x20. We hypothesize that some quasi-stationary structures are developed in these models. This can be a feature of the 2D modeling as well, since, 2D convection models are mostly less ergodic than the 3D ones (Kupka 2020). Studying stochastic and quasi-static structures would be an interesting future project, as these can cause modulations, for example, but are beyond of the scope of the present work.
The behavior of horizontal structures that lower L11 in the stable zone is probably a numerical artifact inherent to the periodic boundary condition. The original numerical fluctuations can normally cause a net drifting of the Rayleigh-Bénard cells (Glatzmaier 2014). Meanwhile, we note that the net velocities in the stable region are negligible (
km/s).
In the case of the velocity profiles, we see that increasing horizontal resolution and increasing the horizontal size of the models both decrease the anisotropy of the models. The effect in the bad resolution models is interesting: at around Δθ ≈ 0.6°, we had enlarged radial velocities and decreased horizontal velocities at the convective boundary. In contrast, above Δθ > 1°, all kinetic energy terms are decreased. To understand this feature, we should look at the kinetic energy spectra of the models, as we can see in Fig. 10. The Δθ > 1° model cannot catch the granulation, while the θwidth = 12° , Δθ = 0.3° model shows similarities with the granulation spectra presented by Nordlund et al. (1997).
Another problem with the large models with bad resolution is the numerical damping. With qnum ≫ 1 and qdiff ≫ 1, numerical damping acts on all lengthscales. Comparing our energy spectra to the one of Chan & Sofia (1996) or Porter & Woodward (2000), we cannot reproduce the Kolmogorov cascade, and our energy spectra resembles the granulation pattern (Nordlund et al. 1997). Even with codes producing less damping, one needs at least a decade of wavenumbers, that are affected by it (Kritsuk et al. 2011). In our models wavenumbers barely exceed one decade, and therefore all scales are affected by the damping. In these circumstances, the effects of the SGS model cannot be studied.
The vertical resolution has smaller effects, as it has a constraint originating from the pulsation calculation itself, and therefore it is larger than the horizontal resolution. The increased vertical resolution model (v0366200x20 with gray triangle in Figs. 5 and 8) does not show significant differences from the standard 150 radial zone models. We ran some decreased vertical resolution models, with 122 radial zones (denoted by crosses in Figs. 5 and 8). In these cases, having more horizontal cells had a larger effect than having less vertical cells. This mainly means that a model grid with resolution adequate for pulsation modeling (see, for example, some description in Paxton et al. 2019) is adequate to resolve the convective eddies, as well.
5.3. Optimal size of 2D RR Lyrae models
The largest obstacle is the calculation time of the models. As we previously presented in Fig. 3, the SPHERLS code reaches API overhead above twelve cores. This number mostly depends on the vertical resolution, as horizontal parallelization is not implemented in the code due to calculating grid velocities (Geroux & Deupree 2013). This means that roughly above 40 horizontal cells, we reach real-time computation speed. For a classical pulsator to reach maximum amplitude, it is needed to calculate hundreds or thousands of pulsation cycles (Kolláth et al. 2002). To study mode selection, we need more (Szabó et al. 2004; Paxton et al. 2019). Therefore, a real-time calculation with an RR Lyrae, for 1000 pulsation cycles could take almost one and a half years, which is not feasible.
Our other obvious constraints are the resolution and minimum horizontal sizes needed for a meaningful simulation. We found that the minimum angular size that is needed for the largest eddies in the second helium ionization zone is at least 9°–10°, supported by the behavior of the longitudinal length scale and the appearance of the second up and downflow structures. The longitudinal integral length scale can be also used for a resolution constraint (Pope 2000), which is 2L11 ≈ 1 × 1010 cm which is around Δθ ≈ 0.3°. Meanwhile, the delay in the initial convective velocity growth (see Fig. 1) indicates, that Δθ < 0.2° is needed for realistic driving. This way, we can conclude that Geroux & Deupree (2013) had an adequate resolution to observe surface eddies, but for a meaningful comparison with 1D models, we need at least 1.5–2 times larger models with slightly better resolution. The Nθ = 40 θwidth = 12° models are currently the maximum affordable models for our available hardware regarding domain size, while reaching stricter Δθ constraints one would need Nθ = 45 θwidth = 9°. An optimistic choice of Nθ = 30 θwidth = 9° models can be seen as a compromise solution for quicker calculations.
6. Summary and conclusions
We performed a series of quasi-static envelope simulations with different angular widths and resolutions of two M3 RR Lyrae stars to determine the main features of the convection zone and to acquire an optimal setup for comparison with 1D model codes. The input parameters were previously derived by Kovács et al. (2023).
To achieve our goals, we analyzed the resulting models through a series of statistical methods used in turbulence theory (Pope 2000). Under the assumption of the ergodic hypothesis, we calculated the fluctuating velocity (or root-mean-square difference) profiles
, the convective flux, and its components; we determined the size of the larger convective eddies by using longitudinal and transversal integral length scales. We also calculated the kinetic energy spectrum of the models in the two main convective zones. Our results are the following:
-
The convective zone in the studied RR Lyrae stars is complex. In the rms velocity profile, one can determine the two unstable zones at the overlapping first partial ionization regions of hydrogen and helium and the second ionization region of helium. We call these dynamically unstable regions HI and HeII, respectively. However, these two regions are connected in the velocity profiles by a counter-gradient layer.
-
This inter-zonal counter-gradient layer and the bottom overshooting region are almost isotropic. The size of the overshooting region correlates with the angular size of the model, with a difference in the region’s size with a full pressure scale length.
-
We found positive kinetic energy flux in the top of the HI zone, which indicates very shallow convection, similar toA-type stars (Kupka et al. 2009).
-
Due to the sharp stratification of the HI region, the traditional assumption that the convective flux can be described by temperature fluctuation alone does not hold. Approximately half of the energy in this zone is transported by the ionized matter as latent heat. This is because the stratification is so sharp and the ionization energies are so large that a small amount of displacement causes a large amount of energy difference.
-
The presence of a counter-gradient layer suggests that the relaxation of local diffusion based description of convection in 1D models should be a top priority in new radial pulsation codes.
-
The smaller angular size models had larger convective velocities, more efficient convective transport, and more unstable flow structure. They had larger contamination of background pulsation, as well.
-
This was caused by the enhanced convection that was an effect of the small box size, where eddies are not large enough, and the kinetic energy missing from the larger scales is compensated at the scales available in the model. The enhancements were negated at larger angular sizes. This process could also be followed by the change in the longitudinal and transversal integral length scales.
-
Based on the correlation behavior (O’Neill et al. 2004) between the integral length scales (L11 and L22) and horizontal model sizes (θwidth), as well as the appearance of the second up- and down-flow structures in the HeII region, we estimate a minimal necessary angular size of θwidth ≈ 9°.
-
Based on the condition of Δfilt < =L11 (Garnier et al. 2009; Pope 2000), the minimal necessary angular resolution was determined as Δθ = 0.3°, while adequate driving of the convection needs at least Δθ ≲ 0.2°, based on the initial velocity growth time. In addition, at these resolutions the energy spectra resembles the formation of granules (Nordlund et al. 1997).
-
The size difference in the eddies of the different convective zones can also be followed in the horizontal and full kinetic energy spectra. The wavenumber of maximum energy (κmax is smaller in the HeII region, explained by the larger pressure scale heights in this region.
The models presented here show a severe numerical damping on all scales, which can limit their usefulness. Based on the previous results of Geroux & Deupree (2014, 2015), we can conclude that even with these problems, the optimal size and resolution presented here is enough to make conclusions about the large-scale convection and its representation in 1D models of classical variables.
Our current results of quasi-static RR Lyrae envelope convection pave the way toward a full-scale comparison with the 1D static envelope models, calculated with the Budapest-Florida Code (Yecko et al. 1998; Kolláth et al. 2002) and MESA RSP (Smolec & Moskalik 2008a; Paxton et al. 2019). The SPHERLS code already showed promising 2D results (Geroux & Deupree 2013, 2014, 2015). In the following papers in our series, we provide a full analysis and comparison with the 1D models in addition to the static model structure differences covering the fully developed pulsation states.
This project helps make our current knowledge more robust regarding the interaction between turbulent convection and pulsation. It also provides a valuable asset to improve our models in the future in their physical content and numerical realizations, exploiting the recently available hardware and software tools.
Data availability
Movie associated to Fig. 2 is available at https://www.aanda.org
The turbulence arises from instability and is closely connected to chaos observed in nonlinear dynamical systems; we cannot follow the path of a small mass element, although it is one of the basic assumptions in fluid mechanics. For example, the particles of a small dye drop will disperse to an attractor with fractal geometry in the phase space.
Strictly speaking the type of models that Arnett et al. (2009) use, are the so called iLES models, or implicit LES models. In this type of modeling the conservative numerical method is used as filtering, hence there is no subgrid-scale modeling.
We refer to the excellent review of Kupka & Muthsam (2017), which gives a more detailed overview of the numerical approaches.
Available on GitHub under MIT Licence: https://github.com/cgeroux/SPHERLS
Strictly speaking, auto-correlation is used to describe homogeneous and isotropic turbulence, while large-scale convective motions are anisotropic, homogeneity can be broken at boundary layers, and even far from the surface (see, e.g., Hanson et al. 2024).
We use e11 for the horizontal kinetic energy. We chose this notation because we only consider horizontal displacements in rd; hence, the longitudinal integral length scale is based on the horizontal velocities. This latter is noted L11 by convention; therefore, we chose i = 1 to be the θ direction and i = 2 the radial direction.
This is a variant of overshooting generated by the nonlocal nature of the turbulent flow where flux transported into stable layers (see, e.g., Kupka (2020) section 5). The detailed features of these phenomena and the layer will be discussed in the following papers.
Including the source term of the turbulent convection (Kuhfuss 1986). To have actually et, 0 in the models, a so-called minimum value is added numerically to the system (Yecko et al. 1998). There are fundamental differences between 1D et, 0 profiles of the different codes (see the discussion of Smolec & Moskalik 2008a), hence we chose the minimum value of accepted turbulent energy level of 106 erg, which is 2–4 magnitudes higher than the minimum value used in 1D hydrocodes.
The relatively low advective velocities are a consequence of inefficient convection in our models. This also decreases Prandtl and Péclet numbers as radiative diffusion can largely exceed numerical diffusion. This scenario is completely different from the convection at the bottom of the solar convection zone or above a convective core of intermediate to high-mass stars.
l is commonly called filter length scale and can be larger than the actual grid spacing. In that case we speak about subfilter scales, and dissipation is stronger on the grid scales, which can lead to numerically more stable calculations. However, the smallest scale where one has information in practice is l. (Magnient et al. 2007)
minϑ = 0.2 is a value used in SPHERLS, instead of the usual 0.1, that was described in (Geroux & Deupree 2011). This value is reported in Geroux (2013), as a trial-by-error solution.
The actual implementation of the donor-cell algorithm is more complex in SPHERLS, because it uses a staggered mesh with velocities defined at cell-borders, internal variables in the center of the cells, and (in the case of stellar problems) it uses implicit time steps. Nevertheless, this test is suitable to determine the general performance of this scheme
The test case program is available on GitHub under MIT Licence at: https://github.com/kovacsgb/upwindtest
Acknowledgments
We are grateful to the referee, Dr. Friedrich Kupka for the careful and thorough reading of our manuscript, and whose detailed suggestions greatly improved the quality of this paper. We thank Robert Deupree and Chris Geroux for their generous help with the SPHERLS code. This project has been supported by the ‘SeismoLab’ KKP-137523 Élvonal grant, OTKA projects K-129249, SNN-147362, K-147131 and NN-129075, as well as the NKFIH excellence grant TKP2021-NKTA-64. The research was supported by the EKÖP-24 University Excellence Scholarship Program of the Ministry for Culture and Innovation from the source of the National Research, Development and Innovation Fund, through the EKÖP-24-4-I-ELTE-363 grant. This research was also supported by the International Space Science Institute (ISSI) in Bern/Beijing through ISSI/ISSI-BJ International Team project ID #24-603 – “EXPANDING Universe” (EXploiting Precision AstroNomical Distance INdicators in the Gaia Universe). On behalf of Project ‘Hydrodynamical modeling of classical pulsating variables with SPHERLS’ we are grateful for the usage of HUN-REN Cloud (see Héder et al. 2022, https://science-cloud.hu/) which helped us achieve the results published in this paper.
References
- Alexander, D. R., & Ferguson, J. W. 1994, ApJ, 437, 879 [NASA ADS] [CrossRef] [Google Scholar]
- Arnett, D., Meakin, C., & Young, P. A. 2009, ApJ, 690, 1715 [CrossRef] [Google Scholar]
- Baker, N. H. 1987, in Physical Processes in Comets, Stars and Active Galaxies, eds. W. Hillebrandt, E. Meyer-Hofmeister, H. C. Thomas, & R. Kippenhahn, 105 [Google Scholar]
- Bono, G., & Stellingwerf, R. F. 1994, ApJS, 93, 233 [Google Scholar]
- Buchler, J. R., Kolláth, Z., & Marom, A. 1997, Ap&SS, 253, 139 [Google Scholar]
- Canuto, V. M., & Dubovikov, M. 1998, ApJ, 493, 834 [NASA ADS] [CrossRef] [Google Scholar]
- Chan, K. L., & Sofia, S. 1996, ApJ, 466, 372 [NASA ADS] [CrossRef] [Google Scholar]
- Courant, R., Isaacson, E., & Rees, M. 1952, Commun. Pure Appl. Math., 5, 243 [CrossRef] [Google Scholar]
- Deardorff, J. W. 1970, Commun. Pure Appl. Math., 41, 453 [Google Scholar]
- Deupree, R. G. 1977a, ApJ, 211, 509 [NASA ADS] [CrossRef] [Google Scholar]
- Deupree, R. G. 1977b, ApJ, 214, 502 [Google Scholar]
- Deupree, R. G. 1980, ApJ, 236, 225 [Google Scholar]
- Deupree, R. G. 1985, ApJ, 296, 160 [Google Scholar]
- Fabbian, D., Caldiroli, A., Kupka, F., Montgomery, M. H., & Muthsam, H. J. 2023, in PLATO Stellar Science Conference 2023, 48 [Google Scholar]
- Fraley, G. S. 1968, Ap&SS, 2, 96 [NASA ADS] [CrossRef] [Google Scholar]
- Freytag, B., Steffen, M., Ludwig, H. G., et al. 2012, J. Comput. Phys., 231, 919 [Google Scholar]
- Garnier, E., Adams, N., & Sagaut, P. 2009, Large Eddy Simulation for Compressible Flows (Springer Netherlands) [Google Scholar]
- Georgy, C., Rizzuti, F., Hirschi, R., et al. 2024, MNRAS, 531, 4293 [Google Scholar]
- Geroux, C. M. 2013, Ph.D. Thesis, Saint Mary’s University, Halifax, Halifax, Nova Scotia, https://library2.smu.ca/handle/01/24825 [Google Scholar]
- Geroux, C. M., & Deupree, R. G. 2011, ApJ, 731, 18 [Google Scholar]
- Geroux, C. M., & Deupree, R. G. 2013, ApJ, 771, 113 [Google Scholar]
- Geroux, C. M., & Deupree, R. G. 2014, ApJ, 783, 107 [Google Scholar]
- Geroux, C. M., & Deupree, R. G. 2015, ApJ, 800, 35 [NASA ADS] [CrossRef] [Google Scholar]
- Glatzmaier, G. A. 2014, Introduction to Modeling Convection in Planets and Stars: Magnetic Field, Density Stratification, Rotation, STU – Student edn. (Princeton University Press) [Google Scholar]
- Gough, D. O. 1969, J. Atmos. Sci., 26, 448 [NASA ADS] [CrossRef] [Google Scholar]
- Gough, D. O. 1977, ApJ, 214, 196 [NASA ADS] [CrossRef] [Google Scholar]
- Hanson, C. S., Bharati Das, S., Mani, P., Hanasoge, S., & Sreenivasan, K. R. 2024, Nat. Astron., 8, 1088 [Google Scholar]
- Héder, M., Rigó, E., Medgyesi, D., et al. 2022, Információs Társadalom, 22, 128 [Google Scholar]
- Hirsch, C. 2007, in Numerical Computation of Internal and External Flows, ed. C. Hirsch, 2nd edn. (Oxford: Butterworth-Heinemann) [Google Scholar]
- Houdek, G., & Dupret, M.-A. 2015, Liv. Rev. Sol. Phys., 12, 8 [Google Scholar]
- Iglesias, C. A., & Rogers, F. J. 1996, ApJ, 464, 943 [NASA ADS] [CrossRef] [Google Scholar]
- Käpylä, P. J. 2019, A&A, 631, A122 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
- Kolláth, Z., Buchler, J. R., Szabó, R., & Csubry, Z. 2002, A&A, 385, 932 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
- Kovács, G. B., Nuspl, J., & Szabó, R. 2023, MNRAS, 521, 4878 [CrossRef] [Google Scholar]
- Kovács, G. B., Nuspl, J., & Szabó, R. 2024, MNRAS, 527, L1 [Google Scholar]
- Kritsuk, A. G., Nordlund, Å., Collins, D., et al. 2011, ApJ, 737, 13 [NASA ADS] [CrossRef] [Google Scholar]
- Kuhfuss, R. 1986, A&A, 160, 116 [NASA ADS] [Google Scholar]
- Kupka, F. 2009, in Interdisciplinary Aspects of Turbulence, eds. W. Hillebrandt, & F. Kupka, 756, 49 [Google Scholar]
- Kupka, F. 2020, in Multi-Dimensional Processes In Stellar Physics, eds. M. Rieutord, I. Baraffe, & Y. Lebreton, 69 [Google Scholar]
- Kupka, F., & Muthsam, H. J. 2017, Liv. Rev. Comput. Astrophys., 3, 1 [Google Scholar]
- Kupka, F., Ballot, J., & Muthsam, H. J. 2009, CoAst, 160, 30 [Google Scholar]
- Kupka, F., Ahlborn, F., & Weiss, A. 2022, A&A, 667, A96 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
- Lilly, D. K. 1969, Phys. Fluids, 12, II [Google Scholar]
- Magnient, J.-C., Sagaut, P., & Deville, M. 2007, Phys. Fluids, 13, 164 [Google Scholar]
- Marconi, M. 2017, in Recent progress in the theoretical modelling of Cepheids and RR Lyrae stars, European Physical Journal Web of Conferences, 152, 06001 [Google Scholar]
- Meakin, C. A., & Arnett, D. 2007, ApJ, 667, 448 [NASA ADS] [CrossRef] [Google Scholar]
- Montgomery, M. H., & Kupka, F. 2004, MNRAS, 350, 267 [NASA ADS] [CrossRef] [Google Scholar]
- Mundprecht, E., Muthsam, H. J., & Kupka, F. 2013, MNRAS, 435, 3191 [NASA ADS] [CrossRef] [Google Scholar]
- Mundprecht, E., Muthsam, H. J., & Kupka, F. 2015, MNRAS, 449, 2539 [NASA ADS] [CrossRef] [Google Scholar]
- Muthsam, H. J., Kupka, F., Löw-Baselli, B., et al. 2010, New Astron., 15, 460 [Google Scholar]
- Noh, W. F. 1987, J. Comput. Phys., 72, 78 [NASA ADS] [CrossRef] [Google Scholar]
- Nordlund, A., Spruit, H. C., Ludwig, H. G., & Trampedach, R. 1997, A&A, 328, 229 [NASA ADS] [Google Scholar]
- Nordlund, Å., Stein, R. F., & Asplund, M. 2009, Liv. Rev. Sol. Phys., 6, 2 [Google Scholar]
- O’Neill, P., Nicolaides, D., Honnery, D., & Soria, J. 2004, in 15th Australasian Fluid Mechanics Conference (University of Sydney), 1 [Google Scholar]
- Paxton, B., Smolec, R., Schwab, J., et al. 2019, ApJS, 243, 10 [Google Scholar]
- Pope, S. B. 2000, Turbulent Flows (Cambridge University Press) [Google Scholar]
- Porter, D. H., & Woodward, P. R. 2000, ApJS, 127, 159 [NASA ADS] [CrossRef] [Google Scholar]
- Rizzuti, F., Hirschi, R., Arnett, W. D., et al. 2023, MNRAS, 523, 2317 [NASA ADS] [CrossRef] [Google Scholar]
- Sedov, L. I. 1959, Similarity and Dimensional Methods in Mechanics (New York: Academic Press) [Google Scholar]
- Smagorinsky, J. 1963, Mon. Weather Rev., 91, 99 [NASA ADS] [CrossRef] [Google Scholar]
- Smolec, R., & Moskalik, P. 2008a, Acta Astron., 58, 193 [NASA ADS] [Google Scholar]
- Smolec, R., & Moskalik, P. 2008b, Acta Astron., 58, 233 [NASA ADS] [Google Scholar]
- Sod, G. A. 1978, J. Comput. Phys., 27, 1 [CrossRef] [MathSciNet] [Google Scholar]
- Stein, R. F., & Nordlund, Å. 2001, ApJ, 546, 585 [Google Scholar]
- Stellingwerf, R. F. 1975, ApJ, 195, 441 [Google Scholar]
- Stellingwerf, R. F. 1982, ApJ, 262, 330 [NASA ADS] [CrossRef] [Google Scholar]
- Strikwerda, J. 2004, in Finite Difference Schemes and Partial Differential Equations, (Society for Industrial and Applied Mathematics), Other titles in applied mathematics [Google Scholar]
- Szabó, R., Kolláth, Z., & Buchler, J. R. 2004, A&A, 425, 627 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
- van Leer, B. 1977, J. Comput. Phys., 23, 276 [Google Scholar]
- Vasilyev, V., Ludwig, H. G., Freytag, B., Lemasle, B., & Marconi, M. 2017, A&A, 606, A140 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
- Vasilyev, V., Ludwig, H. G., Freytag, B., Lemasle, B., & Marconi, M. 2018, A&A, 611, A19 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
- Verma, M. K., Mishra, P., Chandra, M., & Paul, S. 2011, J. Phys. Conf. Ser., 318, 082014 [Google Scholar]
- Viallet, M., Meakin, C., Arnett, D., & Mocák, M. 2013, ApJ, 769, 1 [NASA ADS] [CrossRef] [Google Scholar]
- Wuchterl, G., & Feuchtinger, M. U. 1998, A&A, 340, 419 [NASA ADS] [Google Scholar]
- Yecko, P. A., Kollath, Z., & Buchler, J. R. 1998, A&A, 336, 553 [Google Scholar]
Appendix A: Governing equations of SPHERLS
Here we present the governing equations of the SPHERLS code using a notation consistent with that one used in the paper. Further details are presented in the original instrument papers of Geroux & Deupree (2011, 2013). The main three governing equations are the conservation of mass, momentum, and energy:
Here
is the Stokes derivative, U is the velocity, U0 is the grid velocity, p is the thermodynamic pressure, ρ is the density, G is the gravitational constant, Mr is the total mass inside radius r,
is the unity vector in radial direction,
is the subgrid scale turbulent stress tensor. In eq. (A.3) e denotes thermodynamic internal energy, FSGS the subgrid scale energy flux, and DSGS describes energy transfer (dissipation) from subgrid scales to resolved scales. The radiative energy flux, Fr, is described by the diffusion approximation,
where T is the temperature, σ is the Stefan-Boltzmann constant and κR denotes the Rosseland mean opacity. This approximation breaks down in the near-surface layers, where the atmosphere becomes optically thin, resulting in too hot layers, but classical pulsation is driven by the kappa mechanism deeper in the envelope. Since the kinematics and their coupling with convection matters more, 1D pulsation codes (and SPHERLS) have no aim to produce accurate atmospheres suitable for applications such as synthetic spectra calculations. Instead, all of these code produce bolometric light-curves which are then transformed to photometric bands via quasi-static atmosphere models (see Bono & Stellingwerf 1994).
The grid velocity is used to maintain radial resolution, especially in pulsating models, where due to the structural differences between the initial and full-amplitude models, a simple Eulerian grid wouldn’t been able to maintain the resolution of the partial ionization zones, which drive the pulsation. This grid velocity is used to update the shell radii, while Lagrangian (mass) derivatives (i.e.,
) are used during the calculation in the radial direction. The grid velocity is derived from the net inflow and outflow of the total spherical shell (see for details Geroux & Deupree 2011):
The horizontal boundary condition is periodic, so U0 only has a radial component, and the grid radius coordinates are updated by
The subgrid scale effects are described by the Smagorinsky-model (Smagorinsky 1963), and their formulas are the following (Geroux & Deupree 2013, and references therein):
Here
denotes identity matrix, l is the cell scale length12 (
, with vertical grid spacing of Δr and horizontal grid spacing of Δθ), L = 3.75 × l, At = 0.117, dt = 1.4,Prt = 0.7, C = 0.17 are constants. The subgrid scale turbulent kinetic energy is related to the subgrid scale kinematic viscosity by the relation: eSGS = [νt/(AtL)]2.
Appendix B: Numerical viscosity and artificial diffusion
Since there is no modeled molecular viscosity in the SPHERLS models (since it affects only scales that are much smaller than the model grid), to actually make our models comparable to real stars and other models, we need to derive some other measures instead.
In numerical calculations, the other source of dissipation next to molecular (and SGS) viscosity is numeric viscosity or numerical damping, which is always unique to the numerical method. Its source is the truncation errors caused by finite differences.
These truncation errors can be calculated using Taylor series (Hirsch 2007). Since we deal with polar coordinates, one has to take into account the transform of the unit vector. Hence, we write the general Taylor series as:
The displacement vectors are
in the radial and
in the horizontal direction (with
as the covariant unit vector in the horizontal direction).
SPHERLS uses different discretization techniques in different situations. In general, it uses a staggered mesh, with fluxes defined at cell interfaces, internal variables defined at cell centers (Deupree 1977a; Geroux & Deupree 2011). Simple derivatives are calculated by the second-order accurate central method, while for the advection terms, the donor-cell algorithm is used with weighted upwind and central schemes. The upwind scheme is the CIR scheme (Courant et al. 1952). The scheme is in 1D (with positive velocity direction),
where x denotes one of the coordinates, and the last term on the right-hand side is the second-order truncation error. The parameter ϑ is a weighting factor; its value is dependent on the velocities on the grid:13
The second-order truncation error is equivalent with an additional nonlinear diffusion term (Pope 2000), which is in 2D Cartesian (assuming ϑ = 1):
Here δ denotes the finite difference operator describing the algorithm. The diffusivity is linear and χfnum = UΔx/2 in 1D (Pope 2000). However, in more than one dimension it becomes nonlinear and direction dependent. This nonlinearity is also enhanced by the unit vector transformations in polar coordinates.
Based on this, we first derive the second-order truncation errors in each direction for the velocity and energy advection terms. The velocity damping is called numerical viscosity. The damping terms can be derived from Eq. (B.1), and have the following forms:
Here 𝒟rU, 𝒟θU, and 𝒟e are the damping of Ur, Uθ, and e, respectively. Assuming Δr/r ≪ 1 and rΔθ/r ≪ 1 we can neglect the last term in (B.5) and the last two terms in (B.6), arriving at
where the direction dependent numerical viscosity is
Then we take numerical viscosity as
. Similarly one can derive from (B.7), that 𝒟e = (νnumgrad )grad e ≈ χenumdivgrad e with the numerical energy diffusivity χenum = νnum.
Since the radiative heat conductivity is very large in our models, it is worth to study the numerical dissipation of the heat diffusion term divFr. This is calculated by the second-order accurate scheme (Hirsch 2007),
where K = χρcp, and the radiative conductivity, and half-index values are Ki + 1/2, j = (Ki + 1 + Ki)/2. We note that equation (B.10) is in Cartesian coordinates for simplicity. Truncation error here involves the third derivatives of the flux (i.e., fourth derivatives of temperature). Since this is a higher-order error than in the case of advection, we simplify the problem by considering Fr components as scalars. Therefore, the truncation error becomes:
from this we approximate numerical heat diffusivity as
This way, we provided all necessary numerical values. We note that these are usually only good approximations, as truncation errors are highly nonlinear.
On the other hand, to provide stability during shocks, SPHERLS also includes an artificial viscosity term (Geroux & Deupree 2011, and references therein) as an additional pressure term in equations (A.2) and (A.3). However, we found this term is negligible in smooth regions.
Appendix C: Numerical testing
The presence of the ionization front of RR Lyrae and other classical variables may question the usage of simple numerical methods that are used in SPHERLS. To investigate this problem, we perform a numerical test of the donor-cell method against the Sod shock tube problem (Sod 1978) on an 1D Eulerian grid, solving Euler equations. The equation is given in the conservative form:
where:
Here ρ is the density, v is the velocity, p is the pressure, and γ = 1.4 is the adiabatic constant. The equation in the test is solved explicitly by this scheme:14
The second equation is the artificial viscosity in diffusion form (Sod 1978). The half-centered flux terms are given by B.2.
We present our result of a test15 on the Sod shock tube problem in Figure C.1. The Sod shock tube is characterized with a discontinuity with
After the simulation is started, a shockwave starts to move to the right, which is followed by a slower contact discontinuity, while a rarefaction fan propagates to the left. This problem is a common test for numerical hydrocodes.
We performed one test with good resolution (Δx = 0.02), and three tests on a sparser grid (Δx = 0.12). All four tests were run to t = 1.4 s, the time steps were determined by the Courant–Friedrichs–Lewy condition, with different CFL numbers (0.1 for the dense grid, and 0.5, 0.25, and 0.1 in the three sparse cases, respectively), such that
In Fig. C.1, we present the density, velocity, pressure, and entropy of the system (top to bottom). In the case of the dense grid, the scheme is highly unstable, as we needed to use a strong artificial viscosity with ξ = 2.5 to achieve not disastrous result, but the oscillations are still visible, especially for the velocity and entropy. The sparse grids are more stable with ξ = 1, we only experienced oscillations with CFL = 0.5, while over and undershooting was present. The rarefaction fan is only slightly diffused, while the discontinuities show diffusion as well. Overall, this scheme shows similar features than the Ricthmyer scheme, but with stronger overshooting and oscillations.
![]() |
Fig. C.1. Results of the Sod shock-tube test for four scenarios: a higher resolution (Δx = 0.02, first column), and three sparser grids (Δx = 0.12) with three different numbers: 0.5, 0.25, and 0.1. The rows represent the density (ρ), velocity (v), pressure (p), and specific entropy (s) (from top to bottom). |
Other numerical tests on an adaptive grid were made by Buchler et al. (1997) against the Noh (Noh 1987) and Sedov (Sedov 1959) problems, while in SPHERLS, the 2D Sedov-problem was investigated by Geroux & Deupree (2011).
It is worth to mention that in 1D pulsation codes (e.g., Stellingwerf 1975; Bono & Stellingwerf 1994; Smolec & Moskalik 2008a) traditionally Lagrangian grids are used with simple upwind based flux terms. The sole exception is the adaptive code of the Budapest-Florida code (Buchler et al. 1997; Yecko et al. 1998; Kolláth et al. 2002), where the van Leer (1977) scheme is used. Their numerical tests showed that the simple CIR scheme is inadequate to properly follow shock fronts (Buchler et al. 1997). This is an interesting result, considering the successes of 1D pulsation modeling (see Kovács et al. 2023, Sec. 2. and references therein). We propose a few answers to resolve this contradiction:
-
The ionization front is only investigated in the stellar envelope, while shock fronts are created above the photosphere, where the speed of sound drops. Therefore, the ionization front is mathematically not a discontinuity, and it can be resolved.
-
All of these codes (including SPHERLS) use Lagrangian grids in which they resolve the ionization front, and its steep temperature gradient.
-
The energy equation is solved implicitly, mostly using the Stellingwerf (1975) method, or based on the method of Fraley (1968).
At a bottom line, SPHERLS can be considered as a pulsation hydrocode that is expanded into the horizontal direction. We can expect it to give better results for the convective processes, which happens naturally here, even if (especially horizontal) numerical dissipation is much stronger than in state-of-the-art LES/VLES/iLES codes.
Appendix D: Flow and grid characteristics
In this appendix, we provide the aspect ratios and Reynolds numbers of the models (Table D.1.), as well as the Prandtl and Péclet numbers (Table D.2.) in the two convective regions and in the overshooting region. We note that our models have very inefficient convection, which means that radiative diffusion largely exceeds the numerical (and SGS) diffusion caused by calculation of the advective fluxes. This feature represents a flow very different from those at the bottom of the solar convection zone or above a convective core of intermediate to high-mass stars, resulting in small Prandtl and Péclet numbers.
Grid aspect ratios defined by rΔθ/Δr and horizontal Reynolds numbers at different positions in the models.
Effective Prandtl and Péclet numbers at different positions in the models.
All Tables
Length scales corresponding to the convective structure components used in this paper.
Grid aspect ratios defined by rΔθ/Δr and horizontal Reynolds numbers at different positions in the models.
All Figures
![]() |
Fig. 1. Time evolution of the total turbulent kinetic energy (TKE). Left panel: Comparison of the TKE evolution for different opening angles with resolution of Δθ = 0.3°. The models are v036_6_150x20 (blue solid line), v036_9_150x30 (yellow dashed line), and v036_12_150x40 (green dotted line). Right panel: Same as left panel, but with the same opening angle (θwith = 6°) and different resolutions: v036_6_150x20 (blue solid line), v036_6_150x30 (red dash-dotted line), and v036_6_150x40 (purple dotted line). The vertical dashed line denotes the end of τrelax and the start of τstat. |
| In the text | |
![]() |
Fig. 2. Snapshot of five different simulations, taken at the same simulation time. The 2D simulations are in polar coordinates; the radial coordinate is in 1011 cm units; and the angular coordinates are in degrees. The color-coding denotes the vorticity of the fluid flow The simulation domains are rotated to fit on the figure. Left panel: Models v036_6_150x20 (top), v036_9_150x30 (middle), and v036_12_150x40 (bottom). These models have different angle widths, but the same resolution. Right panel: v036_6_150x20 (top), v036_6_150x30 (middle), v036_6_150x40 (bottom). These models have the same angle width, but different horizontal resolutions. In the left panel we can see that with increasing opening angle, the number of structures is also increasing in the HI region (at around 3.4 × 1011 cm radius.). In the HeII zone (at around 3.2 × 1011 cm), the size of the vortices increase. This means that the initial model with of 6° degrees used by Geroux & Deupree (2013) is inadequate to properly capture the properties of the flow structure in this area. Meanwhile, we can see on the right-hand side that the number of structures in the HI region is similar with higher resolutions (although more details appear). An animated version of this figure is available online. |
| In the text | |
![]() |
Fig. 3. Calculation times for 10 000 time steps, on HUN-REN Cloud (dashed line, filled squares) and the HUN-REN Malor computer (solid line, filled circles). The API overhead becomes a problem after 12 cores, while in the low vertical resolution case, this happens only for 18 cores. |
| In the text | |
![]() |
Fig. 4. Structure of the convective zone and the flux components. The left-hand side is the vicinity of the HeII zone, and the right-hand side is the vicinity of the HI zone. The left-hand side vertical axis is the flux, and the horizontal axis is the radius. The green dotted curve with the right-hand axis denotes the dimensionless entropy gradient. Comparing the sign of this and the convective flux (blue curve) gives the borders of the different regions, which are separated by the dashed gray vertical lines. The condition of the regions is given in Section 3, and also in Table 3. The other flux components are the temperature flux (orange curve), the pressure flux (red curve), and the ionization energy flux, Fμ (yellow dash-dotted curve). The sum of these three components gives the black dashed curve. The kinetic energy flux is shown as a purple line. |
| In the text | |
![]() |
Fig. 5. Different properties of convection vs. the horizontal size of the model. These data are also presented in Table 5. The color-coding denotes the resolution through the characteristic Prandtl number. The standard vertical resolution v036 models are denoted by circles, and the reduced vertical resolution (Nr = 122) models by crosses. Pluses denote the v046 runs, and the v036_6_200x20 model is represented by the gray triangle. Top left panel: Average convective velocity; top right panel: Size of the turbulent region (Λt) in pressure scale height (Hp) units. Middle left: Size of the total convective region in Hp units. Middle right: Size of the hydrogen ionization zone in Hp units. Bottom left: Size of the overshooting region in Hp units. Bottom right: Size of the second helium ionization zone in Hp units. |
| In the text | |
![]() |
Fig. 6. Velocity fluctuations in different models. The solid line denotes the radial direction, and the dashed lines denote the horizontal direction. Top left: v036_6_150x20; top right: v036_12_150x20; bottom left: v036_6_150x50; bottom right: v036_12_150x40. |
| In the text | |
![]() |
Fig. 7. Anisotropy factors, σrθ, of four different v036 models vs. the radial coordinate. The models are the reference model, v036_6_150_20 (blue solid line); v036_12_150x20 (orange dashed line); v036_6_150x50 (green dotted line); v036_12_150x40 (red dash-dotted line). |
| In the text | |
![]() |
Fig. 8. Dimensionless properties of the simulations vs. the angle width. The color-coding denotes the characteristic Prandtl numbers. The symbols are the same as in Figure 5. The corresponding data can be found in Table 2. Upper left: Prandtl number in the middle of the HI zone; Upper right: Ratio of numerical to SGS diffusivity; Middle left: Ratio of numerical viscosity to SGS viscosity; Middle right: Ratio of the SGS kinetic energy to the turbulent kinetic energy of the resolved scales; Lower left: Maximum Nusselt number; Lower right: Péclet number in the middle of the HI zone. |
| In the text | |
![]() |
Fig. 9. Longitudinal (top panels) and transversal (bottom panels) integral length scales of different realizations as a function of the radial coordinate. Left panels: Comparison of different θwidth models; Right panels: Comparison of θwidth = 6° models with different resolutions. The vertical dashed lines separate the different regions of the convection zones: the dynamically stable zone, the overshooting region, the convection zone corresponding to the HeII ionization layer, the counter gradient zone that connects the HeI ionization and the HeII ionization layers, and the convective zone belonging to the overlapping HeI and HI ionization. The thin dotted lines denote the horizontal length of a cell (bottom) and the total horizontal domain in the 6° wide model (top). |
| In the text | |
![]() |
Fig. 10. Logarithm of the horizontal kinetic energy spectrum normalized by 2e11 (top panel) and the total normalized turbulent kinetic energy spectrum normalized by et, 0 (bottom panel) vs. the logarithm of the horizontal wave-number in the HI zone (blue) and the HeII zone (orange) for different models: v036_6_150x20 (solid line); v036_6_150x40 (dotted line); v036_12_150x60 (dashed line); v036_45_150x20 (dash-dotted line). We show the Kolmogorov −5/3 slope as a dashed black line for comparison. The low-resolution model does not show the granulation energy cascade as it is damped already at the energy maximum. Simultaneously, the amount of total kinetic energy is lower in the HeII region, and L11 and L22 are larger. Thus, the spectrum has κmax at a lower wavenumber. |
| In the text | |
![]() |
Fig. C.1. Results of the Sod shock-tube test for four scenarios: a higher resolution (Δx = 0.02, first column), and three sparser grids (Δx = 0.12) with three different numbers: 0.5, 0.25, and 0.1. The rows represent the density (ρ), velocity (v), pressure (p), and specific entropy (s) (from top to bottom). |
| 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.











































![$$ \begin{aligned} &\nu _{\rm SGS} = \frac{\mathrm{C}^2 l^2}{\sqrt{2}}\left( \mathrm{grad}\, \boldsymbol{U} : [ \mathrm{grad}\, \boldsymbol{U} + (\mathrm{grad}\, \boldsymbol{U})^T]\right)^\frac{1}{2} \text{,} \end{aligned} $$](/articles/aa/full_html/2025/08/aa52307-24/aa52307-24-eq68.gif)
![$$ \begin{aligned} &\boldsymbol{\underline{\tau }}^\mathrm{SGS} = \rho \nu _{\rm SGS} \left[ \mathrm{grad}\, \boldsymbol{U} + (\mathrm{grad}\, \boldsymbol{U})^T- \frac{2}{3}\underline{\boldsymbol{I}}\mathrm{div}\,\boldsymbol{U} \right]\text{,} \end{aligned} $$](/articles/aa/full_html/2025/08/aa52307-24/aa52307-24-eq69.gif)


![$$ \begin{aligned} f(\boldsymbol{x} +&\boldsymbol{\Delta x}) = f(\boldsymbol{x}) + \boldsymbol{\Delta x} \cdot \mathrm{grad}\, f + \frac{1}{2} \boldsymbol{\Delta x}^T \cdot (\mathrm{grad}\, \mathrm{grad}\, f )\cdot \boldsymbol{\Delta x} + \nonumber \\&+\frac{1}{6}\boldsymbol{\Delta x} \cdot \left[\boldsymbol{\Delta x}^T \cdot (\mathrm{grad}\,\mathrm{grad}\,\mathrm{grad}\, f)\cdot \boldsymbol{\Delta x}\right] + \mathcal{O} (|\boldsymbol{\Delta x}|^4)\text{.} \end{aligned} $$](/articles/aa/full_html/2025/08/aa52307-24/aa52307-24-eq74.gif)








![$$ \begin{aligned}&\mathrm{div} (K \mathrm{grad}\, T)_{i,j} = \nonumber \\&\frac{1}{\Delta x^2}\left[K_{i+1/2,j}(T_{i+1,j}-T_{i,j})-K_{i-1/2,j}(T_{i,j}-T_{i-1,j})\right] \nonumber \\&+ \frac{1}{\Delta y^2}\left[ K_{i,j+1/2}(T_{i,j+1}-T_{i,j})+K_{i,j-1/2}(T_{i,j}-T_{i,j-1})\right] \nonumber \\&+ \mathcal{O} (\Delta x^2 ,\Delta y^2), \end{aligned} $$](/articles/aa/full_html/2025/08/aa52307-24/aa52307-24-eq87.gif)



![$$ \begin{aligned} \boldsymbol{q} = \left[\begin{matrix} \rho \\ \rho v\\ \frac{p}{\gamma -1}+\frac{1}{2}\rho v^2 \end{matrix}\right], \qquad \boldsymbol{F} =\left[\begin{array}{c}\rho v\\ \rho v^2 + p \\ \left(\frac{\gamma }{\gamma -1}p + \frac{1}{2}\rho v^2\right)v \end{array}\right]. \end{aligned} $$](/articles/aa/full_html/2025/08/aa52307-24/aa52307-24-eq91.gif)

![$$ \begin{aligned}&q_i^{n+1} = q^{*,n}_i\nonumber \\&\quad + \frac{\Delta t}{\Delta x} \xi \left[\left|q^{*,n}_{i+1}-q^{*,n}_{i}\right| \left(q^{*,n}_{i+1}-q^{*,n}_{i}\right) - \left|q^{*,n}_{i}-q^{*,n}_{i-1}\right| \left(q^{*,n}_{i}-q^{*,n}_{i-1}\right) \right]. \end{aligned} $$](/articles/aa/full_html/2025/08/aa52307-24/aa52307-24-eq93.gif)


