Abstract

Relations between temperature, T, and optical depth, τ, are often used for describing the photospheric transition from optically thick to optically thin in stellar structure models. We show that this is well justified, but also that currently used T(τ) relations are often inconsistent with their implementation. As an outer boundary condition on the system of stellar structure equations, T(τ) relations have an undue effect on the overall structure of stars. In this age of precision asteroseismology, we need to re-assess both the method for computing and for implementing T(τ) relations, and the assumptions they rest on. We develop a formulation for proper and consistent evaluation of T(τ) relations from arbitrary 1D or 3D stellar atmospheres, and for their implementation in stellar structure and evolution models. We extract radiative T(τ) relations, as described by our new formulation, from 3D simulations of convection in deep stellar atmospheres of late-type stars from dwarfs to giants. These simulations employ realistic opacities and equation of state, and account for line blanketing. For comparison, we also extract T(τ) relations from 1Dmarcsmodel atmospheres using the same formulation. T(τ) relations from our grid of 3D convection simulations display a larger range of behaviours with surface gravity, compared with those of conventional theoretical 1D hydrostatic atmosphere models based on the mixing-length theory for convection. The 1D atmospheres show little dependence on gravity. 1D atmospheres of main-sequence stars also show an abrupt transition to the diffusion approximation at τ ≃ 2.5, whereas the 3D simulations exhibit smooth transitions that occur at the same depth for M ≃ 0.8 M, and higher in the atmosphere for both more and less massive main-sequence stars. Based on these results, we recommend no longer using scaled solar T(τ) relations. Files with T(τ) relations for our grid of simulations are made available to the community, together with routines for interpolating in this irregular grid. We also provide matching tables of atmospheric opacity, for consistent implementation in stellar structure models.

1 INTRODUCTION

The complexity of stellar atmospheres is due to the highly complicated behaviour of opacity with wavelength and thermodynamic state, coupled with the non-local nature of radiative transfer in the photospheric transition from optically thick to optically thin. To treat this region properly, present-day stellar atmosphere codes solve the radiative transfer for hundreds of thousands of wavelength points, including tens of millions of spectral lines. Further ‘non-classical’ complications arise when deviations from local thermodynamic equilibrium (LTE) need to be accounted for, when the absence of convection allows for chemical stratification, or when strong magnetic fields or rapid rotation affect the atmospheric structure. Thus, although stellar evolution modelling requires non-trivial boundary conditions at the stellar surface, these complications obviously render impractical the direct calculation of realistic atmospheres in stellar structure models.

A solution to this problem is to use pre-computed results of stellar atmosphere modelling (semi-empirical or fully theoretical) as upper boundary conditions for stellar structure models. Knowing pressure (equation-of-state, EOS) and Rosseland opacity as functions of ϱ and T, and assuming hydrostatic equilibrium, the system of equations can be closed by the T(τ) relation without having to solve the frequency-dependent radiative transfer – i.e. the stratification of the detailed atmosphere calculation can be recovered with a mean opacity, as we show in Section 2. Note that the Rosseland opacity is not used for performing radiative transfer in the atmosphere of the structure model – it is merely used to reconstitute the detailed atmosphere model, which has been condensed into the T(τ) relation. The resulting atmosphere is therefore not grey, unless the grey T(τ) relation has been used (see e.g. Fig. 3).

Since this method was implemented by, e.g., Böhm-Vitense (1958), this outer boundary has received relatively little attention. Indeed, T(τ) relations from that period are still in widespread use in stellar structure models – despite these T(τ) relations having little resemblance with current atmosphere models.

Chabrier & Baraffe (1997) investigated the effect of T(τ) relations on stellar evolution for solar-composition low-mass stars. The authors were rightly concerned about the proper implementation and interpretation of T(τ) relations in the transition between radiative and convective zones – an issue which is often overlooked. VandenBerg et al. (2008) performed a similar analysis of stellar models using marcs stellar atmosphere models (Gustafsson et al. 2008) as outer boundaries, as well as the often used grey and Krishna Swamy (1966, see Section 5) atmospheres. They were likewise concerned about how and where to merge the two formulations, and the inconsistencies and discontinuities arising there. The fundamental problem is that the transition should ideally take place in the optically deep layers, where the diffusion approximation applies, and above the top of the convection zone to avoid inconsistencies due to differing formulations of convection. It is often assumed that optically deep means τ ≳ 1 in which case it is barely possible to have this separation in one-dimensional (1D) models. Morel et al. (1994) show, however, that the diffusion approximation is not fulfilled unless τ ≳ 10 (as we confirm). Furthermore, in more realistic 3D simulations of convective atmospheres, even τ = 1 overlaps with convection. The problems plaguing the outer boundary conditions are recognized, yet there has been little theoretical progress on the issue. We address these problems with our new self-consistent formulation, discussed in Section 2, which also eliminates the extra parameters introduced by the above-mentioned prescriptions.

A helioseismic analysis of various commonly used prescriptions for the outer boundary of solar models was carried out by Morel et al. (1994). They found sizeable effects that show up as part of the so-called surface effect: a systematic and frequency-dependent shift of frequencies (Christensen-Dalsgaard & Thompson 1997). They also show how the classic calibration of solar models to the present Sun (Gough & Weiss 1976) tightly couples the outer boundary condition to the mixing length of convection.

Since the solar T(τ) relation can in principle be inferred from limb-darkening observations (e.g. Mitchell 1959), the use of semi-empirical models based on such observations has often been considered the safest choice. The observations and corresponding T(τ) relations can only be performed monochromatically, however, which is of little use to stellar modellers. Connecting to the more useful Rosseland optical depth scale requires pan-chromatic knowledge of opacities, which is the exact weakness of fully theoretical models that semi-empirical models seek to circumvent. At the time there were indications, though, that the Rosseland opacity was little affected by spectral lines, in which case the 5000 Å monochromatic opacity (which is straightforward to compute, since only few and well-known sources contribute to that opacity) was a good proxy in late-type stars. This justified the use of semi-empirical models, as a largely model-independent alternative to fully theoretical models. Subsequent work has shown that spectral lines can have a large influence on the Rosseland opacity, in our case adding 20–40 per cent to the opacity in stellar atmospheres. Since the Rosseland mean is a harmonic mean, it heavily weights the lowest opacity, that is, the continuum. When the spectral density of lines becomes so high that lines overlap, a pseudo-continuum is formed, which raises the Rosseland mean (Rogers & Iglesias 1994, for analysis of interior opacities). The result is that semi-empirical models depend almost as much on opacities (and other atomic physics) as do the fully theoretical solar model atmosphere.

Theoretical T(τ) relations from 1D stellar atmosphere models have been published in connection with, e.g., the atlas (Kurucz 1992c, 1996; Castelli & Kurucz 2003), the marcs (Gustafsson et al. 1975; Asplund et al. 1997; Gustafsson et al. 2008), the NextGen (Hauschildt, Allard & Baron 1999a; Hauschildt et al. 1999b; Short et al. 2012) and the MAFAGS-OS (Grupp 2004; Grupp, Kurucz & Tan 2009) grids of stellar atmospheres. These are grids in effective temperature, surface gravity and metallicity, and the grids are dense enough that simple interpolation is safe. The level of sophistication is very impressive, but detailed comparisons with solar spectra still reveal many lines unaccounted for (e.g. Kurucz 2009). Plez (2011) compares the first three grids for late-type stars and find good agreement between their atmospheric structures (see also Gustafsson et al. 2008), but significant differences between their spectra.

In late-type stars, however, the treatment of convection is the weakest point in the modelling of atmospheres. Not only are they not one-dimensional, but the convective fluctuations are also well outside the regime of linear perturbations. So far, the only way to deal with the combined problem of radiation and convection in stellar photospheres is to perform realistic radiation-coupled hydrodynamic (RHD) simulations. There are now a couple of grids of such simulations in development or available: the CIFIST grid (Ludwig et al. 2009) of co5bold simulations (Wedemeyer et al. 2004; Freytag et al. 2012) and the stagger grid (Collet, Magic & Asplund 2011; Magic et al. 2013) of stagger-code simulations (Nordlund & Galsgaard 1995; Stein et al. 2009). T(τ) relations were briefly discussed by Ludwig, Freytag & Steffen (1999) for an earlier grid, using a 2D version of the predecessor of the co5bold code. They used mostly grey radiative transfer in the simulations and a fit to the grey atmosphere in the structure models, with no details on their implementation of the latter. The few T(τ) relations they did evaluate from non-grey simulations were not published. Magic, Weiss & Asplund (2014) used 1D atmosphere models corresponding to the simulations of their stagger grid, as their T(τ) relations, also not published. Tanner, Basu & Demarque (2014) carried out 3D simulations that use the Eddington approximation to the grey atmosphere, instead of solving the radiative transfer, and explored effects of metallicity. This approach neatly isolates the effect of adiabatic cooling by convective overshooting (Nordlund & Stein 1991; Asplund et al. 1999; Collet, Asplund & Trampedach 2007), since they ignore line blanketing (Chandrasekhar 1935) which would normally interfere with this effect. It does, however, not describe a realistic atmosphere, since the defining radiative transfer has been ignored.

We base our present work on the grid of solar-metallicity, deep convective atmospheres by Trampedach et al. (2013), which used the Stein & Nordlund (1998) code. We describe the most pertinent features of these convection simulations in Section 3 and derive a consistent formulation of T(τ) relations that also works with 3D radiative transfer in Section 2.4. The T(τ) relations of the simulations are presented in Section 4, and in Section 5 we make a more detailed analysis of our solar simulation and compare with semi-empirical and theoretical T(τ) relations from the literature. The general variation of our T(τ) relations with stellar parameters is explored in Section 6, by means of interpolation routines readily employed in stellar structure calculations.

This paper is the first in a series dedicated to the improvement of stellar structure and evolution calculations. These improvements are based on lessons learnt from 3D radiation-coupled hydrodynamical simulations of convection in the atmospheres of late-type stars (F-K). Here we present results on the radiative part of the mean stratification of the simulations in the form of T(τ) relations, to be used as outer boundary conditions for stellar structure models. Paper II (Trampedach et al. 2014) deals with the convective part of the mean stratification by calibrating the mixing length and presenting the results in a form easy to implement in stellar structure codes. The radiative and the convective parts of the problem are strongly interdependent, as discussed in this paper and in Paper II, but we also show that separating the two parts is possible and that such a separation is relevant for stellar structure models. Paper II also examines the coupling between T(τ) relations and the mixing length of convection. A future paper will address the consequences of applying the above improvements to stellar evolution calculations.

2 THE BASIS FOR T(τ) RELATIONS

A T(τ) relation is needed for describing the photospheric transition between optically thick (diffusion approximation) and optically thin (the free-streaming approximation) layers. In late-type stars, this transition is affected by the large temperature fluctuations caused by convection, but it is in principle separable from the issue of how large a fraction of the flux is transported by convection. We first need to formalize these statements and establish the theoretical foundation for a consistent definition and use of T(τ) relations.

The 3D simulations are all performed with uniform gravity, which corresponds to the plane-parallel approximation in 1D. We keep the following derivations in that approximation. This should be valid even for our lowest gravity simulations (nos. 1 and 2 in Table 1, with log g = 2.2), since Plez, Brett & Nordlund (1992) found a maximum sphericity effect of a mere −20 K for a 3800 K, log g = 1.0, 1 M giant, at log τ = −4.5, using marcs 1D model atmospheres. The sphericity effect will obviously be smaller for larger g as in our case.

Table 1.

Fundamental parameters for the 37 simulations.

simMK classTeff (K)log gM (M)Star
1K34681 ± 192.2003.694
2K24962 ± 212.2004.805
3K54301 ± 172.4200.400
4K64250 ± 113.0000.189
5K34665 ± 163.0000.852
6K14994 ± 152.9302.440ξ Hya
7G85552 ± 173.0002.756
8K34718 ± 153.5000.721
9K05187 ± 173.5001.786
10K05288 ± 203.4211.923ν Ind
11F96105 ± 253.5001.875
12K64205 ± 84.0000.601
13K44494 ± 94.0000.684
14K34674 ± 84.0000.738
15K24986 ± 134.0000.836
16G65674 ± 163.9431.130β Hyi
17F96137 ± 144.0401.222
18F46582 ± 263.9661.567Procyon
19F46617 ± 334.0001.542
20K44604 ± 84.3000.568
21K14996 ± 174.3000.694
22K15069 ± 114.3000.719
23K05323 ± 164.3000.810
24G15926 ± 184.2951.056α Cen A
25F56418 ± 264.3001.261
26F26901 ± 294.2921.433
27K44500 ± 44.5000.565
28K34813 ± 84.5000.664
29K05232 ± 124.5000.812
30G55774 ± 174.4381.002The Sun
31F76287 ± 154.5001.246
32F46569 ± 174.4501.329
33K15021 ± 114.5500.772
34G95485 ± 144.5570.949α Cen B
35G15905 ± 154.5501.114
36K64185 ± 34.7400.649
37K44531 ± 104.7400.742
simMK classTeff (K)log gM (M)Star
1K34681 ± 192.2003.694
2K24962 ± 212.2004.805
3K54301 ± 172.4200.400
4K64250 ± 113.0000.189
5K34665 ± 163.0000.852
6K14994 ± 152.9302.440ξ Hya
7G85552 ± 173.0002.756
8K34718 ± 153.5000.721
9K05187 ± 173.5001.786
10K05288 ± 203.4211.923ν Ind
11F96105 ± 253.5001.875
12K64205 ± 84.0000.601
13K44494 ± 94.0000.684
14K34674 ± 84.0000.738
15K24986 ± 134.0000.836
16G65674 ± 163.9431.130β Hyi
17F96137 ± 144.0401.222
18F46582 ± 263.9661.567Procyon
19F46617 ± 334.0001.542
20K44604 ± 84.3000.568
21K14996 ± 174.3000.694
22K15069 ± 114.3000.719
23K05323 ± 164.3000.810
24G15926 ± 184.2951.056α Cen A
25F56418 ± 264.3001.261
26F26901 ± 294.2921.433
27K44500 ± 44.5000.565
28K34813 ± 84.5000.664
29K05232 ± 124.5000.812
30G55774 ± 174.4381.002The Sun
31F76287 ± 154.5001.246
32F46569 ± 174.4501.329
33K15021 ± 114.5500.772
34G95485 ± 144.5570.949α Cen B
35G15905 ± 154.5501.114
36K64185 ± 34.7400.649
37K44531 ± 104.7400.742
Table 1.

Fundamental parameters for the 37 simulations.

simMK classTeff (K)log gM (M)Star
1K34681 ± 192.2003.694
2K24962 ± 212.2004.805
3K54301 ± 172.4200.400
4K64250 ± 113.0000.189
5K34665 ± 163.0000.852
6K14994 ± 152.9302.440ξ Hya
7G85552 ± 173.0002.756
8K34718 ± 153.5000.721
9K05187 ± 173.5001.786
10K05288 ± 203.4211.923ν Ind
11F96105 ± 253.5001.875
12K64205 ± 84.0000.601
13K44494 ± 94.0000.684
14K34674 ± 84.0000.738
15K24986 ± 134.0000.836
16G65674 ± 163.9431.130β Hyi
17F96137 ± 144.0401.222
18F46582 ± 263.9661.567Procyon
19F46617 ± 334.0001.542
20K44604 ± 84.3000.568
21K14996 ± 174.3000.694
22K15069 ± 114.3000.719
23K05323 ± 164.3000.810
24G15926 ± 184.2951.056α Cen A
25F56418 ± 264.3001.261
26F26901 ± 294.2921.433
27K44500 ± 44.5000.565
28K34813 ± 84.5000.664
29K05232 ± 124.5000.812
30G55774 ± 174.4381.002The Sun
31F76287 ± 154.5001.246
32F46569 ± 174.4501.329
33K15021 ± 114.5500.772
34G95485 ± 144.5570.949α Cen B
35G15905 ± 154.5501.114
36K64185 ± 34.7400.649
37K44531 ± 104.7400.742
simMK classTeff (K)log gM (M)Star
1K34681 ± 192.2003.694
2K24962 ± 212.2004.805
3K54301 ± 172.4200.400
4K64250 ± 113.0000.189
5K34665 ± 163.0000.852
6K14994 ± 152.9302.440ξ Hya
7G85552 ± 173.0002.756
8K34718 ± 153.5000.721
9K05187 ± 173.5001.786
10K05288 ± 203.4211.923ν Ind
11F96105 ± 253.5001.875
12K64205 ± 84.0000.601
13K44494 ± 94.0000.684
14K34674 ± 84.0000.738
15K24986 ± 134.0000.836
16G65674 ± 163.9431.130β Hyi
17F96137 ± 144.0401.222
18F46582 ± 263.9661.567Procyon
19F46617 ± 334.0001.542
20K44604 ± 84.3000.568
21K14996 ± 174.3000.694
22K15069 ± 114.3000.719
23K05323 ± 164.3000.810
24G15926 ± 184.2951.056α Cen A
25F56418 ± 264.3001.261
26F26901 ± 294.2921.433
27K44500 ± 44.5000.565
28K34813 ± 84.5000.664
29K05232 ± 124.5000.812
30G55774 ± 174.4381.002The Sun
31F76287 ± 154.5001.246
32F46569 ± 174.4501.329
33K15021 ± 114.5500.772
34G95485 ± 144.5570.949α Cen B
35G15905 ± 154.5501.114
36K64185 ± 34.7400.649
37K44531 ± 104.7400.742
We describe the 1D radiative transfer in terms of the usual moments of the radiation field
(1)
where the intensity, Iλ, only depends on the angle with the surface normal, μ = cos θ. Dependence on optical depth, τ, is implied throughout this section. Extension to the 3D case is dealt with in Section 2.4. The negative half of the integral accounts for photons going into the interior. At the top of the domain (if τ ≪ 1), this can be assumed zero, unless irradiation by a companion star has to be accounted for.
The first three moments are also called
(2)
where Frad, λ is the monochromatic astrophysical flux. The transfer equation is
(3)
where the source function, Sλ, is assumed to be isotropic.
The corresponding radiative heating (cooling when negative) is
(4)
where the 4π comes from the angular integration of an isotropic quantity. Qrad, λ is the extensive (per unit volume) radiative heating. Since any heating mechanism, X, has an associated flux FX, given by QX = dFX/dz, QX is also known as the flux divergence.
A solution in radiative equilibrium obviously obeys |$Q_{\rm rad}=\int _0^\infty Q_{\rm rad,\lambda }{\rm d}\lambda =0$|⁠. In the more general case where convection also supplies heating or cooling, but no energy sinks or sources are present, the equilibrium constraint is Qrad + Qconv = 0. How this convective term affects the equilibrium stratification can be gleaned from the angular moments of the transfer equation, equation (3). The zeroth moment
(5)
contains the derivative of Hλ and the first moment
(6)
contains Hλ itself. Since we have no energy generated in the atmospheres, the luminosity is constant throughout the atmosphere translating into a constant flux Ftot = 4πH + Fconv in the plane-parallel case, where H is the wavelength-integrated Hλ. The decrease of H as we enter the convection zone provides the first-order effect of convection on the T(τ) stratification.

2.1 Convective versus radiative T(τ) relations

The temperature as a function of optical depth, T(τ), is trivial to extract from any atmosphere model, be it 1D or a 3D simulation. The T(τ) relation, however, is greatly affected by the presence of convection, having a much smaller gradient in convective regions (see Fig. 3). When applying T(τ) relations to stellar structure calculations, the convective fluxes will most likely differ between the atmosphere model and the 1D structure model, which renders the T(τ) relation inappropriate for the structure model. Using the T(τ) relation from even the most sophisticated 3D simulation of a convective atmosphere in a 1D model would be both inconsistent and unphysical if the convective flux differs between the two cases. Unfortunately, we do not yet have a way of directly incorporating the convection of the 3D simulations into the 1D models in any consistent or even physically meaningful way. To rectify this is obviously a long-term goal of ours.

The first-order effect of convection on T(τ) relations is due to the radiative flux not being constant. If we can somehow express the T(τ) relation with an explicit appearance of the radiative flux, it should be possible to isolate this first-order effect and calculate a radiativeT(τ) relation (i.e. reduced to the radiative equilibrium case with Qrad = 0 and therefore Frad = const). When used in stellar structure calculations, the first-order convective effect can be added back in, as appropriate for that particular model (see Section 2.5). From here on we will call temperatures from T(τ) relations with this first-order convective effect subtracted Trad(τ) – the radiative T(τ) relation.

The original, unaltered T(τ) relation of the atmosphere models, which includes the transition to convective transport of the flux, will be referred to as partially convective T(τ) relations.

Another effect of a varying H is the finite difference between source function and mean intensity, Δ = J − S, giving rise to the radiative heating or flux divergence of equation (4). In radiative equilibrium Δ converges, Δ → 0, with optical depth, but not in the transition to a convection zone. The relative difference, Δ/S, is small, however. The largest values are found in the cooling peak at the top of convective envelopes, where |Δ|/S ≲ 1×10− 3, or in a heating bump above the photosphere of the coolest dwarf stars, with |Δ|/S ≲ 5×10− 3. Estimating the effect on temperature as |Δ|/S ≃ 4ΔT, we get |ΔT| ≲ 1 K and |ΔT| ≲ 4 K, respectively, and we have therefore chosen to ignore this effect. Since it is equally ignored in the 1D models used here, this in practice means that we assume the same Δ in the atmosphere model as in the 1D structure model. The actual error thus committed is therefore much smaller.

It follows that in order to make self-consistent 1D stellar models, we need to remove the first-order effect from the 3D T(τ) relation: the transition from convective to radiative transport of energy in the photosphere. All higher order convective effects arising from, e.g., the mean stratification differing from the 1D model, cooling by convective overshooting (cf. Section 6), the large convective fluctuations in the photosphere and the correlations between them will, however, be retained in Trad(τ). And this is plenty motivation for continuing this exercise, as will be shown in the comparisons between 1D and 3D T(τ) relations in Section 4.

2.2 T(τ) relations from grey atmospheres

In order to isolate the first-order convective effect on the T(τ) relation, we seek an expression containing H, and to simplify the problem we begin with the grey case (by simply dropping the λ subscripts), and generalize afterwards.

The choice of formulation rests on the choice of quantity that will be assumed invariant under convection, i.e. unchanged whether convection carries flux or not. The invariant should contain quantities from equations (5) and (6) which can be used to reconstruct the Planck function, B = σT4/π. Reasonable choices are K/B, K/J, dK/dB or dK/dJ, which all can be shown to converge to 1/3 for τ → ∞ (Mihalas 1978; Rutten 2003). These ratios can all be used in a similar way as the variable Eddington factor, K/J (Auer & Mihalas 1970). We choose fdB(τ) ≡ dK/dB for the relative simplicity of the temperature reconstruction. We effectively distil the whole stellar atmosphere calculation down to one quantity: fdB as a function of depth. This is the essence of the elaborate atmosphere calculation that we want to transfer to the stellar structure calculation, regardless of how convection differs between the two cases.

Such a temperature perturbation, from different treatments of convection, would cause differences in fdB if it were to be computed anew from radiative transfer on the perturbed structure. So by keeping fdB invariant, we impose on the structure model the radiative transfer result from the full atmosphere calculation based on the latter's temperature structure. This counts amongst the second-order effects of convection on the radiative transfer (variation of fdB is indeed quadratic in small temperature perturbations, but also sizeable at relevant amplitudes).

The main thrust in this paper is the utility of 3D atmosphere simulations in setting outer boundary conditions for stellar structure models. Our method can also be used with 1D stellar atmospheres, however, e.g. using different formulations or parameters for convection than the interior models, but with a seamless combination of the two (see Section 2.5).

Using equation (6) to express our invariant as
(7)
it is straightforward to isolate the derivative of B and integrate to obtain
(8)
where Hx is the radiative flux of the stellar structure model, x, seeking to recover the T(τ) relation of the atmosphere model. In other words, x is the structure model employing the T(τ) relation of the detailed atmosphere model. Bx is the corresponding Planck function. The important point to realize here is that H in equation (7) is that of the detailed atmosphere calculation, from which the T(τ) relation is derived.
We transform to the actual T(τ) relation through the so-called Hopf function, q(τ), originally introduced to describe the solution of grey radiative transfer in a semi-infinite atmosphere (Hopf 1930; King 1956). Here we use the same formulation for the general case and reserve qgrey for the original intent. The (generalized) Hopf function, q(τ), is then defined as
(9)
on some optical depth scale, τ.

The radiative Hopf function (which assumes an atmosphere in radiative equilibrium) is convergent, qrad(τ) → q for τ → ∞, and thus recovers the diffusion approximation at depth. Equivalently, we describe a (partly) convective stratification, T(τ), by qconv(τ). With part of the flux transported by convection, the temperature is decoupled from the optical depth and there is no convergence with depth. The Schwarzschild criterion (e.g. Kippenhahn & Weigert 1990) for convective instability tells us that at any depth the energy transport mechanism with the smallest temperature gradient is the relevant one. The temperature in a partly convective stratification will therefore be lower than that in a corresponding radiative one, and from equation (9) we see that qconv(τ) will diverge to large negative values.

From equation (8), we find that the radiative Hopf function, qrad(τ), of a stratification in radiative equilibrium, Trad, related by equation (9) is
(10)
(11)
with |$q_0 = q_0^\prime + \tau _0$|⁠. That last equality, equation (11), constitutes the Hopf function for radiative equilibrium. Similarly, we find the Hopf function for the partially convective atmosphere to be
(12)
where we introduced the fraction, frad = Frad/Ftot, of the total flux, |$F_{\rm tot}=\sigma T_{\rm eff}^4$|⁠, which is carried by radiation.
In practice, we assume that there is no convective flux at the upper boundary of the simulations (it is less than 3 × 10−5Ftot for all our simulations), and simply use the average temperature at τ0 for the integration constant,
(13)
which is therefore the same for equations (11) and (12).

The use for T(τ) relations in the grey case is widely appreciated, but we have now included convective effects and put the whole formulation on a firmer footing. The final step is to ensure that they can be used in the general non-grey case and therefore provide a valid and useful description of real stellar atmospheres.

2.3 T(τ) relations from non-grey atmospheres

If the opacity does depend on wavelength, integrating equation (6) over wavelength gives
(14)
where we substituted dτλ = ϱκλdz. Frad and H are just the results of direct integration over wavelength.
The definition of the Rosseland mean opacity is motivated by the desire for an average opacity that can be taken outside the integral of equation (14). This goal can be further simplified by noting that 3KλJλSλ for τλ → ∞ and that in LTE Sλ = Bλ. This results in the usual definition of the Rosseland opacity
(15)
[The differentiation with respect to z in equation (14) and T in equation (15) can be freely interchanged, if they are monotonic functions of each other.]
In order to cast equation (14) in a form similar to the grey version of equation (6), dK/dτ = H, we now define |$\widetilde{K}$| by
(16)
In the non-grey case, the tight link between the moments of the intensity and the moments of the transfer equation is broken, as |$K\ne \widetilde{K}$| in general. Before we can use equation (16) as a basis for computing |$f_{{\rm d}B} = {\rm d}\widetilde{K}/{\rm d}B$|⁠, we need to ensure convergence in the radiative case. Dividing equation (16) by dB/dτRoss to obtain fdB, expanding κRoss of equation (16), and finally exchanging the remaining differentiations by τRoss for ones by T (which can be done since they are monotonic functions of each other), we get
(17)
Since we know the ratio to converge for each wavelength, according to equation (7) (which is for the grey case, but also valid monochromatically), the integrals must similarly converge. For each wavelength, the ratio will converge as in the grey case, but in evaluating the total, spectral lines will spread the transition over a larger range of heights. With all the steps in equation (7) now validated for the non-grey case (using |$\widetilde{K}$| instead of K), fdB will in practice be evaluated as
(18)
and temperatures can be found from equations (12) and (10) using τ = τRoss. This is the procedure for computing radiative T(τ) relations from 1D atmospheres.

From this analysis, we conclude that T(τ) relations are perfectly suited for describing real stellar atmospheres. Since the formulation does not rely on S = B, except in the optically deep layers, this formulation will also be valid for non-LTE atmospheres, whether they just include continuum scattering or a thorough implementation of non-LTE effects. The choice of κRoss as the standard opacity is merely to ensure proper convergence with depth and as a convenience to stellar modellers. This does not limit the scope of the formulation in the photosphere and above. It is often asserted that the use of T(τ) relations with a Rosseland opacity amounts to using the grey approximation. We hope that we have demonstrated this to be far from the case and that T(τ) relations can describe arbitrarily realistic and complex atmospheres. The use of a Rosseland opacity to reconstitute the atmosphere in structure models says nothing about the level of complexity that went into the original atmosphere calculation from which the T(τ) relation was derived. Reconstituting the T(τ) relation with the Rosseland opacity results in the structure of the original atmosphere, but without the need to perform the computationally expensive radiative transfer calculation.

2.4 T(τ) relations in 3D

In 1D there is no ambiguity about the meaning of a certain quantity, e.g. τ and T, and they depend in simple ways on the height in the atmosphere, z. In 3D, on the other hand, there is a whole range of temperatures and optical depths at a particular height, and different averaging methods will give rather different results. This is illustrated in Fig. 1 where we compare three different averaging methods for our solar simulation (no. 30 in Table 1). We plot temperatures averaged over the undulated surfaces of equal optical depth (τ-average) in case (a). In case (b) we plot a straight horizontal average of the temperature as a function of a straight horizontal average of the optical depth, 〈…〉z. For the temporal averaging of these, we map the horizontal averages to a fixed column mass scale. We refer to these as pseudo (since we use the average, not the local column mass) Lagrangian averages, denoted by 〈…〉L. This filters out the main effect of the p modes that are excited in the simulations. Finally, in case (c) we show the horizontally averaged temperature as a function of an optical depth integrated from the opacity of the horizontally averaged density and temperature.

The effect of various averaging techniques applied to a solar simulation (see the text for details). Notice how cases (a) and (b) follow closely in the atmosphere down to 〈T〉 = Teff, at log τ ≃ −0.3. The horizontal dotted line indicates Teff and the vertical, unity optical depth. The solar T(τ) relations in this plot include the first-order convective effect.
Figure 1.

The effect of various averaging techniques applied to a solar simulation (see the text for details). Notice how cases (a) and (b) follow closely in the atmosphere down to 〈T〉 = Teff, at log τ ≃ −0.3. The horizontal dotted line indicates Teff and the vertical, unity optical depth. The solar T(τ) relations in this plot include the first-order convective effect.

Not unexpectedly, these three different methods diverge in the region where the temperature fluctuations are the largest, from the photosphere down to 1 Mm below (at τRoss ∼ 105). There the convective fluctuations, in mainly the temperature, are so large that the opacity and the EOS (e.g. gas pressure, pg) are non-linear on the scale of the fluctuations. This has the consequence that 〈pg〉 ≠ pg(〈ϱ〉, 〈T〉). In other words, the average gas pressure is, in general, not related to the average density and temperature through the EOS. The relative difference amounts to about 5 per cent in the solar photosphere. This effect is much larger for the opacity where the relative difference reaches more than 90 per cent in the solar photosphere. Well above the photosphere, the averaging methods converge, as the temperature fluctuations decrease and, more importantly, as the opacity varies less steeply.

The large differences between the methods around the photosphere mean that great care is needed in choosing the appropriate form of averaging. Intuitively, quantities having to do with radiative transfer would be best represented as τ-averages, case (a) above. This choice was also advocated by Ludwig et al. (1999), who used τ-averaged temperatures of their 2D convection simulations as T(τ) relations for corresponding 1D envelope models. These then formed the basis for a calibration of the mixing length, similar to what we present in Paper II.

Averaging on the τ-scale, however, presents problems for the concept of slanted rays through the atmosphere, and hence for the angular moments of the intensity. On the τ-scale, these rays will no longer be straight lines through the (inclined) simulation box, and the formulation becomes impractical, rendering the straight horizontal average the obvious choice. We therefore need to rephrase the transfer equation, equation (3), and its first angular moment, equation (16), in terms of z instead of τ. This is option (b), mentioned above, where 〈…〉z are functions of time. Temporal, pseudo-Lagrangian averaging, 〈…〉L, is performed on the final products of our derivation, the radiative Hopf functions. Recasting in terms of τ results in
(19)
which is used to form our invariant
(20)
with 〈…〉z denoting horizontal averages. This 3D version of |$f^z_{{\rm d}B}$| converges as shown for the 1D case in Section 2.3, although this convergence also depends on the horizontal fluctuations becoming insignificant with depth, so that the 1D version, equation (18), applies again. We have confirmed, numerically, that |$f^z_{{\rm d}B} \rightarrow 1/3$| well before the bottom of the simulation domains. Due to the increasing numerical instability with depth (since |$f^z_{{\rm d}B}$| is a ratio between exponentially increasing quantities), we actually enforce an exponential convergence to 1/3, from just before the first point that goes above 1/3 (due to numerical noise in the hydrodynamics and the radiative transfer). The change to |$f^z_{{\rm d}B}$| due to this forced convergence is small and not systematic, but it greatly improves the convergence and smoothness of the resulting qrad below the photosphere.
Similar to what we did for equation (8), we integrate |$\widetilde{H}/f^z_{{\rm d}B}$| in order to obtain Brad(z) and hence the radiative Hopf function, as in equation (12),
(21)
where the τH-scale, defined by 〈ϱκHz in terms of the H-averaged opacity κH, remains to be determined. In order for the radiative Hopf function to be convergent for τH ≫ 1, the square bracket must converge to 0. With the convergent |$f^z_{{\rm d}B} \rightarrow \frac{1}{3}$|⁠, we must therefore have
(22)
for τH ≫ 1. This defines κH such that it satisfies
(23)
In practice, |$q^{\rm rad}_H$| is fully converged at τH ≃ 10.
We further demand consistency, so that the full (partially convective) Hopf function, |$q^{\rm conv}_H(z)$|⁠, defined by
(24)
can reproduce the actual temperature structure of the simulation. With |$\langle {\widetilde{H}}\rangle$| cancelling from equation (20) for |$f^z_{{\rm d}B}$|⁠, B = σT4/π and |$F_{\rm tot}=\sigma T_{\rm eff}^4$|⁠, we see that this is indeed fulfilled, and that |$q_0 = \frac{4}{3}\langle T^4\rangle (z_0)/T_{\rm eff}^4 - \tau _H(z_0)$| as in equation (13).

The τH-scale defined by equation (23) is a bit awkward, since it demands knowledge of the complete radiative transfer solution – something we explicitly are trying to avoid with our approach. We therefore want to rephrase q in terms of the ‘universal’ Rosseland opacity, which depends only on the local thermodynamic state.

Since the first term in the integrand of q(z) in equation (21) is independent of the τ-scale and the second term is just the τ-scale itself, this can be achieved by replacing 〈ϱκH〉 by 〈ϱκRoss〉, for a suitably defined κRoss, to obtain
(25)
(26)
which defines the radiative Hopf function on the Rosseland scale. However, unless κRoss → κH for τ ≫ 1, then |$q_{\rm Ross}^{\rm rad}(z)$| will not converge to a constant either.

Unfortunately, what would normally be interpreted as the average Rosseland opacity does not converge to the flux averaged opacity, 〈ϱκHz, as defined by equation (23). On the other hand, qH) depends on this definition in order to fulfil the constraints of converging |$f^z_{{\rm d}B}$| and qradH) and the ability of qconvH) to reproduce the temperature stratification of the simulations.

The solution to this problem is to cast the averaging method for the Rosseland opacity into a form similar to equation (23), where the opacity and the normalizer (see equation 15) are averaged separately
(27)
but by using dB/dz instead, resulting in
(28)
to be used in equation (25). The 〈ϱκH〉 of equation (23) converges properly to this form of the horizontally averaged Rosseland opacity for τ ≫ 1. This can be ascertained by relating the numerators of equations (23) and (28) through equation (19), and separately their denominators through equation (14), and realizing that both sets converge to each other as 3KλBλ.

In and above the photosphere the two opacities diverge, as the diffusion approximation no longer holds, κH being the larger of the two (since the flux spectrum is largely determined at the photosphere and the temperature there, whereas dBλ/dτλ is entirely set by the local temperature. This redshifts the Rosseland weighting function towards the lower opacity of the H bump, away from the crowded lines and metallic absorption edges in the UV). This means qRoss > qH, and in the optically deep layers they are merely offset by a constant. It is also worth noting that the 1D form of equation (28) is identical to the conventional form, leaving our formulation consistent with previous 1D work.

2.5 Implementation of the T(τ) relation in stellar structure models

We proved above that T(τ) relations can describe real stellar atmospheres and therefore have the potential to provide the outer boundary conditions of stellar structure models. In this section, we will show in detail how this is carried out, in particular how convective effects are reintroduced in a consistent manner. The reason for this elimination and subsequent reintroduction of convection to the T(τ) relation is the resulting independence of convection treatment between the atmosphere models (providing the T(τ) relation) and the stellar structure models (employing the T(τ) relation). Thus, the models can be internally self-consistent, despite differing greatly in their convection treatment – in our case 3D convection simulations and 1D with the mixing-length theory (MLT; Böhm-Vitense 1958) formulation of convection.

From here on, we will use the abbreviation |$q=q_{\rm Ross}^{\rm rad}$|⁠, and a Rosseland mean is implied for both opacity and optical depth, unless explicitly stated otherwise. All quantities in this section pertain to the structure model implementing the T(τ) relation, except for q(τ) which, of course, is computed from the atmosphere model.

In deriving the T(τ) relation in Sections 2.2 and 2.3, we made the transformation from actual to radiative T(τ) relation by changing T, as shown in equation (10). In the envelope calculations, we need to reintroduce convection in the T(τ) relation, this time described by, e.g., MLT. Defining
(29)
we see that the full temperature profile, from equation (24), can be rewritten to give
(30)
(31)
(32)
(33)
The last line results in the very simple transformation
(34)
entirely accomplished through a modification of the optical depth. equation (33) is not exact, since the first term of the integrand is evaluated at τ and not |$\hat{\tau }$|⁠, as implied by equation (33). For all the cases we have dealt with, the differences are small, corresponding to a less than 0.2 K increase of the temperature in and above the photosphere, spanning about two orders of magnitude in optical depth.

The right-hand side is the complete T(τ) relation of the structure model, including the transition to (1D) convection, and qrad(τ) + τ is the radiative T(τ) relation from the detailed atmosphere model, converging properly for τ → ∞. The change of |$\tau \rightarrow \hat{\tau }$| on the left-hand side is solely responsible for recovering the partially convective T(τ) relation from a radiative Hopf function. Due to the simple behaviour of the first-order effect of convection on the temperature stratification (a consequence of equation 6), the radiative equilibrium stratification and the actual stratification can be described by the same Hopf function, merely by a simple change to the argument.

The radiative temperature gradient is, as usual, defined as the gradient that would be caused by radiative transport of energy alone, i.e. assuming that T is given by q(τ) + τ. Differentiating with respect to r, using dτ = −ϱκdr, and dividing by the equation of hydrostatic equilibrium, dp/dr = −gϱ, we find
(35)
(⁠|$\ln$| being the natural logarithm), where p is the total hydrostatic pressure, possibly including a turbulent contribution from the vertical component of the convective velocity field, |$p_{\rm turb} = \langle \varrho u_z^2\rangle$| (see Paper II for a discussion of pturb).
The actual gradient, ∇, can similarly be found by using the left-hand side of equation (34) so that
(36)
Cancelling the two τ-terms in equation (31), we find the derivative in equation (36) to be the first term of the integrand of equation (31)
(37)
(all evaluated at τ) which we also recognize, using equation (26), as [q′(τ) + 1]frad. This results in
(38)
Had we taken the derivative of the approximate expression, equation (33), the result would have been more complicated. With the small effect of the approximation, we have seen no problems arising from the slight inconsistency.

With these relations, the T(τ) relation can be used throughout the stellar envelope model, without the (common) artificial transition between atmosphere and interior. A somewhat similar, but less rigorous, approach was used by Henyey, Vardya & Bodenheimer (1965) to ensure a smooth transition between the atmosphere and interior of stellar models.

2.6 Summary of procedures

As derived above, there are two separate steps involved. First, the calculation of the T(τ) relation, in the form of a generalized Hopf function q(τ), from an atmosphere model which explicitly solves the radiative transfer equation. Secondly, the implementation of T(τ) relations in 1D stellar structure models.

The purely radiative Hopf function, q(τ), is computed from 1D stellar atmospheres from equation (11) and the invariant fdB of equation (18), both based on the Rosseland opacity.

For 3D atmospheres, the procedure is slightly more complicated, although it reduces properly to the 1D case above. In 3D the invariant, fdB, is computed from equation (20) and applied in equation (25) for the radiative Hopf function. The horizontally averaged Rosseland opacity, 〈ϱκRossz, needs to be slightly redefined, so that the wavelength integrals of the opacity and of the normalization factor are averaged separately, as specified by equation (28).

The implementation of the T(τ) relation is accomplished through modifications of the radiative, ∇rad, and actual temperature gradients, ∇, equations (35) and (36), respectively. The actual gradient involves the radiative Hopf function evaluated at a modified τ-scale, |$q(\hat{\tau })$|⁠, constructed to account for the first-order convective effect on the stratification, due to departure from radiative equilibrium. This modification is defined by equation (38).

We have provided electronic tables of q(τ) for our grid of simulations, and of the [Fe/H] = 0.0 Rosseland opacity, as well as code for reading and interpolating in these tables.

3 THE 3D CONVECTION SIMULATIONS

The fully compressible, transmitting-boundary, radiation-coupled hydrodynamic (RHD) simulations that we rely on here are described by Trampedach et al. (2013). A recent and thorough review of applications of such 3D stellar convection simulations can be found in Nordlund, Stein & Asplund (2009).

The EOS and the opacities were originally supplied by the so-called Uppsala package by Gustafsson (1973) which forms the atomic-physics basis for the original marcs atmosphere models (Gustafsson et al. 1975, greatly improved and updated in the present marcs models by Gustafsson et al. 2008). Since the matching to 1D envelopes (employed in the mixing-length calibration of Paper II) requires a high degree of consistency between the simulations and the envelopes, we found it necessary to bring the microphysics of the 3D simulations up to the same level as that of the 1D envelopes. The ever stronger constraints from improving observations also demanded an upgrade to more realistic atomic physics.

We therefore implemented the realistic Mihalas–Hummer–Däppen (MHD) EOS (Däppen et al. 1988; Hummer & Mihalas 1988). This EOS treats hundreds of bound levels explicitly for every ionization level of every included element. The hydrogen molecules H2 and H|$_2^+$| are included as the only molecules, and non-ideal interactions leading to pressure ionization are treated in detail, as are degenerate electrons. Furthermore, thermodynamic consistency (that the Maxwell relations are obeyed) is ensured by the use of the free energy minimization procedure (Däppen 1980), which was also a motivation for the EOS update. The EOS tables were custom calculated for a 15-element mixture (as opposed to the normal 6), to correspond to what is included in the Uppsala package.

Improvements to the continuum opacities are described in Section 3.1. Line opacity is supplied by the opacity distribution functions (ODFs) of Kurucz (1992a,b), and line blanketing is included in the radiative transfer by means of opacity binning (Nordlund 1982). The spectrum is divided into four bins according to the strength of opacity at each wavelength, and the source function is summed-up for each bin, as described in detail by Trampedach (1997) and Trampedach et al. (2013). Radiative transfer in the simulations is then calculated for just these four bins, reducing the problem by more than three orders of magnitude and making it tractable in 3D. This binning scheme does not benefit from increasing the number of bins beyond 4. From comparisons with the full monochromatic radiative transfer, we estimate that the temperature error due to this binning is less than 40 K for the solar case, in the range of −4 < log τ < 0. For each bin, the transfer equation, equation (3), is solved for the vertical ray and four slanted, μ = 1/3 rays, equally spaced in azimuthal angle (giving a total of five rays). The azimuthal dimension is of course degenerate in 1D, but adds another dimension to the 3D problem. The bin assignment is based on a full monochromatic radiative transfer calculation for the temporally and horizontally averaged simulation, and therefore varies between the simulations. Detailed radiative transfer is computed for all horizontal layers that have a minimum Rosseland optical depth min (τ) < 300, and the diffusion approximation is used below.

Our radiative transfer is performed in strict LTE where S = B. We minimize the effects of that approximation by excluding scattering cross-sections from the free-streaming, intensity-weighted opacity above the photosphere, and including it as absorption in the Rosseland mean below. Hayek et al. (2010) found from a consistent treatment of scattering that this is a good approximation, at least for solar-metallicity atmospheres.

We have performed simulations for 37 sets of atmospheric parameters, all with solar abundances (discussed below), as listed in Table 1. This table is ordered in ascending gravity and, for similar gravities, ascending in effective temperature – the same order as in table 2 of Trampedach et al. (2013). The spectral class is rather approximate, as is the mass which is based on estimates of intersections with evolutionary tracks. Neither of these two quantities is used in this work, but is merely included for the reader's convenience. Some of the simulations correspond to actual stars, as indicated in the rightmost column, but with the caveat that all the simulations have solar composition.

Table 2.

Sample of the online table of Hopf functions as functions of log τ (rows) and atmospheric parameters, Teff and log g (columns).

Sim. no.1830281726 31624⋅⋅⋅
Teff (K)6582.3015774.5014813.1996137.3016901.7994301.2015674.8005926.601⋅⋅⋅
log g3.9664.4384.5004.0404.2922.4203.9434.295⋅⋅⋅
[Fe/H]0.0000.0000.0000.0000.0000.0000.0000.000⋅⋅⋅
MLT alpha1.648 100 971.767 387 991.760 032 061.696 580 051.677 181 011.764 937 041.757 174 971.753 844 02⋅⋅⋅
sig alpha0.029 251 000.030 499 000.021 746 000.025 264 000.038 257 000.021 235 000.034 484 000.028 779 00⋅⋅⋅
−4.500000000.371 563 890.383 302 160.368 646 820.384 669 470.364 006 300.398 519 320.386 380 910.383 715 88⋅⋅⋅
−4.419753070.376 204 990.387 974 570.373 356 180.388 954 230.368 983 500.404 105 610.391 587 570.388 082 86⋅⋅⋅
−4.339506150.380 910 880.392 815 060.378 165 400.393 375 890.373 985 170.409 728 240.396 948 690.392 584 15⋅⋅⋅
−4.259259220.385 652 360.397 799 050.383 055 310.397 953 610.379 007 280.415 373 870.402 404 680.397 233 57⋅⋅⋅
−4.179012300.390 435 540.402 904 390.387 918 910.402 688 370.384 051 110.421 022 080.407 893 700.402 015 36⋅⋅⋅
−4.098765370.395 290 220.408 120 810.392 838 120.407 568 580.389 098 730.426 663 480.413 416 770.406 937 03⋅⋅⋅
−4.018518450.400 233 930.413 430 650.397 905 010.412 588 760.394 171 380.432 303 240.418 975 630.411 987 29⋅⋅⋅
⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
Sim. no.1830281726 31624⋅⋅⋅
Teff (K)6582.3015774.5014813.1996137.3016901.7994301.2015674.8005926.601⋅⋅⋅
log g3.9664.4384.5004.0404.2922.4203.9434.295⋅⋅⋅
[Fe/H]0.0000.0000.0000.0000.0000.0000.0000.000⋅⋅⋅
MLT alpha1.648 100 971.767 387 991.760 032 061.696 580 051.677 181 011.764 937 041.757 174 971.753 844 02⋅⋅⋅
sig alpha0.029 251 000.030 499 000.021 746 000.025 264 000.038 257 000.021 235 000.034 484 000.028 779 00⋅⋅⋅
−4.500000000.371 563 890.383 302 160.368 646 820.384 669 470.364 006 300.398 519 320.386 380 910.383 715 88⋅⋅⋅
−4.419753070.376 204 990.387 974 570.373 356 180.388 954 230.368 983 500.404 105 610.391 587 570.388 082 86⋅⋅⋅
−4.339506150.380 910 880.392 815 060.378 165 400.393 375 890.373 985 170.409 728 240.396 948 690.392 584 15⋅⋅⋅
−4.259259220.385 652 360.397 799 050.383 055 310.397 953 610.379 007 280.415 373 870.402 404 680.397 233 57⋅⋅⋅
−4.179012300.390 435 540.402 904 390.387 918 910.402 688 370.384 051 110.421 022 080.407 893 700.402 015 36⋅⋅⋅
−4.098765370.395 290 220.408 120 810.392 838 120.407 568 580.389 098 730.426 663 480.413 416 770.406 937 03⋅⋅⋅
−4.018518450.400 233 930.413 430 650.397 905 010.412 588 760.394 171 380.432 303 240.418 975 630.411 987 29⋅⋅⋅
⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
Table 2.

Sample of the online table of Hopf functions as functions of log τ (rows) and atmospheric parameters, Teff and log g (columns).

Sim. no.1830281726 31624⋅⋅⋅
Teff (K)6582.3015774.5014813.1996137.3016901.7994301.2015674.8005926.601⋅⋅⋅
log g3.9664.4384.5004.0404.2922.4203.9434.295⋅⋅⋅
[Fe/H]0.0000.0000.0000.0000.0000.0000.0000.000⋅⋅⋅
MLT alpha1.648 100 971.767 387 991.760 032 061.696 580 051.677 181 011.764 937 041.757 174 971.753 844 02⋅⋅⋅
sig alpha0.029 251 000.030 499 000.021 746 000.025 264 000.038 257 000.021 235 000.034 484 000.028 779 00⋅⋅⋅
−4.500000000.371 563 890.383 302 160.368 646 820.384 669 470.364 006 300.398 519 320.386 380 910.383 715 88⋅⋅⋅
−4.419753070.376 204 990.387 974 570.373 356 180.388 954 230.368 983 500.404 105 610.391 587 570.388 082 86⋅⋅⋅
−4.339506150.380 910 880.392 815 060.378 165 400.393 375 890.373 985 170.409 728 240.396 948 690.392 584 15⋅⋅⋅
−4.259259220.385 652 360.397 799 050.383 055 310.397 953 610.379 007 280.415 373 870.402 404 680.397 233 57⋅⋅⋅
−4.179012300.390 435 540.402 904 390.387 918 910.402 688 370.384 051 110.421 022 080.407 893 700.402 015 36⋅⋅⋅
−4.098765370.395 290 220.408 120 810.392 838 120.407 568 580.389 098 730.426 663 480.413 416 770.406 937 03⋅⋅⋅
−4.018518450.400 233 930.413 430 650.397 905 010.412 588 760.394 171 380.432 303 240.418 975 630.411 987 29⋅⋅⋅
⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
Sim. no.1830281726 31624⋅⋅⋅
Teff (K)6582.3015774.5014813.1996137.3016901.7994301.2015674.8005926.601⋅⋅⋅
log g3.9664.4384.5004.0404.2922.4203.9434.295⋅⋅⋅
[Fe/H]0.0000.0000.0000.0000.0000.0000.0000.000⋅⋅⋅
MLT alpha1.648 100 971.767 387 991.760 032 061.696 580 051.677 181 011.764 937 041.757 174 971.753 844 02⋅⋅⋅
sig alpha0.029 251 000.030 499 000.021 746 000.025 264 000.038 257 000.021 235 000.034 484 000.028 779 00⋅⋅⋅
−4.500000000.371 563 890.383 302 160.368 646 820.384 669 470.364 006 300.398 519 320.386 380 910.383 715 88⋅⋅⋅
−4.419753070.376 204 990.387 974 570.373 356 180.388 954 230.368 983 500.404 105 610.391 587 570.388 082 86⋅⋅⋅
−4.339506150.380 910 880.392 815 060.378 165 400.393 375 890.373 985 170.409 728 240.396 948 690.392 584 15⋅⋅⋅
−4.259259220.385 652 360.397 799 050.383 055 310.397 953 610.379 007 280.415 373 870.402 404 680.397 233 57⋅⋅⋅
−4.179012300.390 435 540.402 904 390.387 918 910.402 688 370.384 051 110.421 022 080.407 893 700.402 015 36⋅⋅⋅
−4.098765370.395 290 220.408 120 810.392 838 120.407 568 580.389 098 730.426 663 480.413 416 770.406 937 03⋅⋅⋅
−4.018518450.400 233 930.413 430 650.397 905 010.412 588 760.394 171 380.432 303 240.418 975 630.411 987 29⋅⋅⋅
⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅

This set of simulations is the beginning of a grid of stellar convection simulations, aimed at augmenting the existing grids of 1D stellar atmosphere models. Other aspects and applications of the grid will be presented in forthcoming papers.

For the solar composition, we have chosen a helium mass fraction, Y = 0.245, according to helioseismic determinations (Basu & Antia 1995), and a metal-to-hydrogen ratio (by mass) of Z/X = 0.0245 in agreement with Grevesse & Noels (1993). This ratio results in the hydrogen mass fraction X = 0.736 945 and the helium–hydrogen number ratio N(He)/N(H) = 0.083 70, instead of the historically assumed value of ≃ 0.1. Our metal mixture is constrained by that of the available ODF tables (Kurucz 1992a) that were constructed for Anders & Grevesse (1989) abundances. Additional tables for different He and Fe abundances meant that we could interpolate between tables to the He abundance above, A(He/H) = 10.92 and A(Fe/H) = 7.50 from Grevesse & Noels (1993), where A denotes logarithmic number abundances, normalized to A(H) = 12.

The above solar composition has been challenged over the last decade by abundance analyses performed on 3D convection simulations using the same code and atomic physics as used for the simulations in this paper. The result is a general lowering of the metal abundances as detailed by Asplund, Grevesse & Sauval (2005, and references therein). Such a lower metal abundance ruins the otherwise good agreement with helioseismic inversions, as pointed out by Antia & Basu (2005) and Bahcall et al. (2005). This controversy highlights the fact that our own star, the Sun, is less well known than often assumed and stresses the need for improved modelling efforts as pursued with, e.g., this work, and improved atomic-physics calculations (Rogers & Nayfonov 2002; Badnell et al. 2005). The re-evaluation of the solar abundances by Asplund et al. (2009), based on a new solar simulation, has increased the overall metallicity by about 10 per cent and reduces the disagreement with helioseismology to about 2/3 of the former (Serenelli et al. 2009). The new simulation has improved radiative transfer and opacities (Trampedach et al., in preparation) and agrees very well with observations of limb darkening, flux distribution and strong hydrogen lines (Pereira et al. 2013).

Due to the lingering controversy, and since the change in abundances will have a rather small effect on stellar atmospheres, we did not feel compelled to re-compute the, at that time, mostly finished grid of simulations to adopt the new abundances.

Each of the simulations was performed on a 150$ × $150$ × $82-point grid (equidistant horizontally and non-uniform vertically, optimized to resolve the large photospheric gradients). This resolution is adequate for our purposes and is guided by the study of resolution effects by Asplund et al. (2000a). The simulation domain covers about 10 major granules horizontally and 13 pressure scaleheights vertically, with about 20 per cent (in height) being above 〈T〉 = Teff. We ensured that Rosseland optical depths as low as log τ = −4.5 were completely contained in each of the simulations. The area and depth of the solar simulation is 6$ × $6$ × $3.6 Mm and the size of the other simulations is mainly scaled by g−1. After relaxation to a quasi-stationary state, we calculated mean models as described in Section 2.4. The relaxation involves a damping of radial p modes which efficiently extracts surplus energy from the simulations. This damping is turned off again for the production runs, on which our work is based.

3.1 Opacities

We have revised most of the continuum opacity sources and added a few more sources as follows: H bound–free (bf; Broad & Reinhardt 1976; Wishart 1979), free–free (ff; Bell & Berrington 1987), H|$_2^+$| bf+ff (Stancil 1994), H|$_2^-$| ff (Bell 1980) and OH/CH photodissociation (Kurucz, van Dishoeck & Tarafdar 1987). The most important levels of He i, C i, N i, O i, Na i, Mg i, Mg ii, Al i, Si i, Ca i, Ca ii and Fe i were included as simple analytical fits as listed by Mathisen (1984). The usual Thomson scattering by free electrons is included, together with Rayleigh scattering by H i (Gavrila 1967), He i (Langhoff, Sims & Corcoran 1974) and H2 (Victor & Dalgarno 1969). These changes were described in more detail by Trampedach (1997).

We have generated Rosseland opacity tables with these absorption sources, for a rectangular grid of (X, Z) compositions with 8 values of X ∈ [0; 0.9] and 13 values of Z ∈ [0; 0.1]. We have not merely scaled the contribution of each opacity source by the change in abundance (i.e. assuming the EOS to be linear in composition), but have rather re-computed the EOS for each of the 104 sets of compositions to use as a basis for the summation of opacities.

These tables have in turn been assembled into one global opacity table that can be interpolated in density, log ϱ, temperature, log T and composition, X, Y. These atmospheric, low-temperature tables (log T ∈ [3; 4.5]) have furthermore been merged differentiably with interior opacities from the Opacity Project (OP; Badnell et al. 2005). The combined opacities can be accessed by stellar structure codes through the interpolation package, opint, by Houdek & Rogl (1996), currently at version 11.

We show our atmospheric opacities in Fig. 2 together with the interior OP opacities. We note that the two sets of opacities show good agreement in the temperature range where we bridge between the two. In Fig. 2, we also compare with the atmospheric opacities of Ferguson et al. (2005), which also include water molecules (contributing for log T ≲ 3.5) and dust particles (the two bumps for log T ≲ 3.2). None of our simulations enter the dusty regime, but our coolest simulations would be affected by absorption by water.

Opacities per mass as a function of log T. The 19 sets of curves are for log R = log ϱ − 3$ × $(log T − 6) as indicated, each offset by 1.0 from the previous, with no offset for log R = −8. The black curves show the interior OP (Badnell et al. 2005) opacities for log T ≥ 3.75. The blue curves show the present calculation of atmospheric opacities, compared with the Ferguson et al. (2005) opacities in green. The atmospheric are bridged with the interior opacities between the two vertical dotted lines.
Figure 2.

Opacities per mass as a function of log T. The 19 sets of curves are for log R = log ϱ − 3$ × $(log T − 6) as indicated, each offset by 1.0 from the previous, with no offset for log R = −8. The black curves show the interior OP (Badnell et al. 2005) opacities for log T ≥ 3.75. The blue curves show the present calculation of atmospheric opacities, compared with the Ferguson et al. (2005) opacities in green. The atmospheric are bridged with the interior opacities between the two vertical dotted lines.

4 T(τ) RELATIONS OF THE SIMULATIONS

The T(τ) relations of six of the simulations (nos. 2, 3, 11, 4, 26 and 36 of Table 1) are compared with 1D marcs stellar atmospheres in Fig. 3. The thick solid lines show the partially convective T(τ) relations of the simulations, and the thick dashed lines show the radiative T(τ) relations, where the first-order convective effect has been removed.

Comparison of T(τ) relations for six of the simulations with corresponding 1D atmosphere models. Solid lines show full T(τ) relations, including the first-order convective effect, and dashed lines show radiative T(τ) relations without this first-order convective effect. The black thick lines show results for the 3D simulations and the thin grey lines show 1D atmospheres interpolated in the marcs (Gustafsson et al. 2008) grid. The solution to the grey atmosphere is shown with dotted lines. The horizontal dotted lines show Teff. The differences between the 1D marcs models and the 3D simulations are shown around the T = Teff line with thin black lines (dashed for the radiative T(τ) relations), and exaggerated by a factor of 10. The atmospheric parameters and index in Table 1 are given in each panel.
Figure 3.

Comparison of T(τ) relations for six of the simulations with corresponding 1D atmosphere models. Solid lines show full T(τ) relations, including the first-order convective effect, and dashed lines show radiative T(τ) relations without this first-order convective effect. The black thick lines show results for the 3D simulations and the thin grey lines show 1D atmospheres interpolated in the marcs (Gustafsson et al. 2008) grid. The solution to the grey atmosphere is shown with dotted lines. The horizontal dotted lines show Teff. The differences between the 1D marcs models and the 3D simulations are shown around the T = Teff line with thin black lines (dashed for the radiative T(τ) relations), and exaggerated by a factor of 10. The atmospheric parameters and index in Table 1 are given in each panel.

The light grey lines show the marcs 1D models by Gustafsson et al. (2008), with the dashed grey lines showing the radiative T(τ) relations, as calculated from equations (10) and (18). The 1D marcs models are interpolated to the same atmospheric parameters as the simulations. The corresponding 1D atlas9 models are very similar to the marcs models, with only minor differences below the photosphere due to different choices for the parameters of the standard MLT formulation (Böhm-Vitense 1958) of convection [see Ludwig et al. (1999, appendix A) for a comparison of the form factors of the various flavours of MLT].

The plots of Fig. 3 are ordered with Teff decreasing to the right and log g decreasing towards the top. This ordering also means that the most efficient convection occurs in the right-side plots, and the least efficient on the left side. Low efficiency of convection means that it takes larger velocities to transport the required flux, resulting in the turbulent pressure contributing more to the hydrostatic equilibrium (sub-photospheric maxima of the pturb/ptot-ratios of 27 per cent for our warmest dwarf, no. 26, versus 3.9 per cent for our coolest dwarf, no. 36, of Table 1), expanding the atmosphere (Trampedach et al. 2013). It is also accompanied by larger temperature fluctuations, not the least due to the large temperature sensitivity of the opacity. The higher opacities in the warm upflows mean that they stay adiabatic until (spatially) very close to the photosphere. These are the bright granules. In the cooler downflows, the photosphere lies much deeper with the overturning plasma radiating away energy all the way. The net effect is higher temperatures below the photosphere, compared with a corresponding 1D model. This effect is also known as convective back-warming (Trampedach 2003), and expands the atmosphere by about as much as the turbulent pressure (as higher temperatures cause larger pressure scaleheights).

From Fig. 3, we clearly see the first-order effect of convection (due to a non-constant radiative flux), as the differences between solid and dashed lines. This shows the onset of convection and the sets of lines converge above the convection zone.

The difference between the 1D atmospheres (dotted and short dashed lines) and the grey atmospheres (solid grey lines) in the photosphere and above shows the effect of line blanketing. The line absorption evidently affects the cooler atmospheres the most, although they all show the signature of strong lines, by having a temperature gradient even at the uppermost point of the model.

The radiative T(τ) relations of the simulations (dashed lines) converge to the grey atmospheres (grey lines) with depth, as expected. In the photosphere and above, the deviations show the effects of lines and higher order convective effects. In this region, the differences between the 1D models and the 3D simulations mainly show the higher order convective effects. This comparison can be most cleanly carried out with the atlas9 models since we have employed the same line opacity data for our 3D simulations. The higher order convective effects are clearly significant and depend in a non-trivial way on the atmospheric parameters.

5 THE SOLAR CASE

Simulation no. 30, presented in Table 1, is constructed to correspond to the Sun.

It has an effective temperature of Teff = 5 774 ± 17 K and a (nominal) surface gravitational acceleration of 27 395.9 cm s−2.

We compare the resulting T(τ) relations with various 1D models in Fig. 4, using both the optical depth τRoss defined with the Rosseland mean opacity κRoss and the monochromatic optical depth τ5000 corresponding to the opacity at 5000 Å. This plot compares the full T(τ) relations including convection, employing flavours of MLT in the 1D theoretical models. Panel (a) shows temperature differences on the τRoss-scale and panel (b) is for the τ5000-scale. The vertically hatched area around the zero-line (in both panels) shows the temporal rms scatter of the T(τ) relation of the simulation, indicating which differences are statistically significant. Panel (a) also shows the difference between the temperature measured on the two τ-scales for the simulation (dot–dashed curve), the sign of which means that we can see deeper into the Sun at 5000 Å than on (a Rosseland) average, as a consequence of the fact that the Rosseland opacity is larger than the 5000 Å opacity.

Comparison of the full τ-averaged temperature structure, 〈T〉τ, from the solar simulation, with some often used solar T(τ) relations. (a) The difference in Rosseland T(τ) relations between the simulation and the semi-empirical model by Holweger & Müller (1974, solid line), and an atlas9 atmosphere model (Kurucz 1993; Castelli, Gratton & Kurucz 1997, dashed line). Here we also show the difference between the two τ-scales (dot–dashed line) as T(τRoss = x) − T(τ5000 = x), as well as comparisons with the averaging methods of Fig. 1 in grey: dotted for case (b) 〈T〉L(〈τRoss〉L) and dashed for case (c) 〈T〉L(τRoss(〈ϱ〉L, 〈T〉L)). (b) Differences, on a τ5000-scale, between the simulation and an atlas9 model, and four semi-empirical atmosphere models: the model by Holweger & Müller (1974), the classical fit by Krishna Swamy (1966), the HSRA model (Gingerich, Noyes & Kalkofen 1971) and the average, quiet-Sun, VAL model (Vernazza et al. 1981, see the text).
Figure 4.

Comparison of the full τ-averaged temperature structure, 〈Tτ, from the solar simulation, with some often used solar T(τ) relations. (a) The difference in Rosseland T(τ) relations between the simulation and the semi-empirical model by Holweger & Müller (1974, solid line), and an atlas9 atmosphere model (Kurucz 1993; Castelli, Gratton & Kurucz 1997, dashed line). Here we also show the difference between the two τ-scales (dot–dashed line) as TRoss = x) − T5000 = x), as well as comparisons with the averaging methods of Fig. 1 in grey: dotted for case (b) 〈TL(〈τRossL) and dashed for case (c) 〈TLRoss(〈ϱ〉L, 〈TL)). (b) Differences, on a τ5000-scale, between the simulation and an atlas9 model, and four semi-empirical atmosphere models: the model by Holweger & Müller (1974), the classical fit by Krishna Swamy (1966), the HSRA model (Gingerich, Noyes & Kalkofen 1971) and the average, quiet-Sun, VAL model (Vernazza et al. 1981, see the text).

The past two decades of work on compiling and computing line data for atoms and molecules has added a lot of line opacity in the UV, which has increased the Rosseland opacity with respect to the 5000 Å opacity (Kurucz 1992b; Trampedach 1997; Castelli & Kurucz 2003; Gustafsson et al. 2008). This in turn has increased the difference between τRoss and τ5000, which is clearly expressed in the 200 K difference at |$\tau \simeq \frac{2}{3}$|⁠. This difference is twice as large as the corresponding differences amongst modern atmosphere models (cf. Fig. 4b), so it is no longer justified to assume the two τ-scales to be equal. For stellar structure calculations, it has been common practice to use a T–τ5000 relation combined with a Rosseland opacity. With the current opacities and today's demand for accuracy, this no longer seems a valid approximation and we recommend against using it.

The semi-empirical Holweger & Müller (1974) model (solid line in Fig. 4) is given on both the 5000 Å and the Rosseland τ-scales. We have used their original data and have made no attempt to update the Rosseland scale with modern opacities. Above the photosphere, the Holweger & Müller (1974) model is about 100 K warmer than the simulation, on both τ-scales. For this model, the T difference between the two τ-scales is less than 60 K, so in layers deeper than τ ≃ 0.5 the behaviour in the two panels is dominated by the (τRoss − τ5000) difference for the simulation. In the photosphere, the Holweger–Müller model is hotter than the simulation by up to 300 K on the τRoss-scale, but on the τ5000-scale they are very similar. On both τ-scales, the Holweger–Müller model becomes increasingly cooler with depth, compared with the 3D solar simulation, indicating a faster transition to convective transport of the whole flux.

For the theoretical atlas9 atmosphere models (Kurucz 1993), both monochromatic and Rosseland T(τ) relations are available, illustrated as the dashed line in both panels of Fig. 4. The peculiar wiggles in these curves are features from the atlas9 model. Using the ‘overshoot’ option, later disfavoured by Castelli et al. (1997), these wiggles combine to a larger but smoother dip, compared with the simulation. The rather close agreement in the radiative part of the atmosphere is expected, since the same line opacities were used, and since the convective fluctuations have only a small effect on the averaged T(τ) relation above the convection zone (i.e. all averaging methods give the same results, cf. Fig. 1). This is not necessarily the case for other stars where there will be a different balance between the expansion cooling of the overshooting flows and the radiative heating/cooling by spectral lines (see Section 6; Asplund et al. 1999; Collet et al. 2007) – a balance that does not exist in 1D models due to a lack of physical models of overshooting.

The two other semi-empirical atmosphere models presented in Fig. 4, the component averaged VAL model for the quiet Sun (Vernazza, Avrett & Loeser 1981) and the Harvard–Smithsonian solar reference atmosphere (HSRA; Gingerich et al. 1971), differ significantly and essentially in the same way from the simulation results. We used an average of the VAL model over its six components, with quiet-Sun weights as specified in their table 7. This structure is close to the often used C component, but is warmer by 2 K around the photosphere, rising to 27 K at log τ5000 = −2.25. Most of the differences between VAL-C and the average VAL model stay below the rms fluctuations of our solar simulation.

High in the atmosphere, the situation is a bit less clear. This plot covers up to 0.5 Mm above the photosphere, although the simulation reaches up to 0.8 Mm above. The solar temperature minimum occurs around 0.5 Mm before the sudden rise to chromospheric temperatures at an average height of about 2 Mm. In the VAL C model, the temperature minimum occurs at log τ5000 ≃ −3.5, but there is no sign of temperature minima in any of our simulations. This is not surprising, considering the lack of non-LTE effects or magnetic fields in our simulations, and their implications in chromospheric and coronal heating (e.g. Gudiksen & Nordlund 2005; van Ballegooijen et al. 2011).

The last T(τ) relation presented in Fig. 4 is the one by Krishna Swamy (1966, dotted line, only defined for τ = 0.02–10), which is still used as an upper boundary in some stellar model codes (e.g. Straniero, Chieffi & Limongi 1997; Chaboyer et al. 2001; Pietrinferni et al. 2004; Demarque et al. 2008). It is interesting to note that the behaviour below the photosphere is opposite that of the more modern T(τ) relations.

At intermediate optical depths, from log τ ≃ −1 down to 〈T〉 = Teff, the agreement between the simulation and both theoretical and semi-empirical atmospheres is rather good, as expected. Differences are also smaller than the difference between the 5000 Å and the Rosseland T(τ) relation from the simulation.

The agreement with semi-empirical models in this region is encouraging, as convective fluctuations are smaller here, damped by radiative losses. It is, however, not in itself a validation of the convection simulations. Such a validation has to be performed much closer to the actual observations, in order to avoid all the theoretical biases that go into, e.g., semi-empirical models. Semi-empirical atmospheres have too often been assumed equivalent to observations, and we argue that the considerable differences between the VAL, HSRA and Holweger–Müller models speak against that practice. The actual limb darkening, spectral energy distribution and line profiles are the benchmarks with which all atmosphere models should be compared. Solar and stellar 3D simulations presented here perform very well against observational diagnostics, including detailed line profiles (Asplund et al. 2000b; Prieto et al. 2002), and the solar continuum limb darkening (Pereira, Asplund & Trampedach 2008; Pereira et al. 2013).

As convection becomes the dominant mode of energy transport, the T(τ) relations in Fig. 4 diverge, with the various theoretical 1D models, sharing the MLT formulation of convection, all differing from the simulation in more or less the same manner. The semi-empirical models do not account for convection. Below 〈T〉 = Teff, 3D effects become important and the turbulent pressure contributes up to 14 per cent of the total pressure, rendering the simulation the better choice for an atmosphere model.

6 VARIATION WITH STELLAR ATMOSPHERIC PARAMETERS

Having evaluated T(τ) relations for our grid of simulations, we can now proceed to give an overview of the behaviour with atmospheric parameters, Teff and log g.

The q surfaces as a function of stellar parameters are shown at three optical depths in Fig. 5. The edge towards the reader is populated by main-sequence stars and the far-right corner, by red giants. The offset between the three surfaces is the real difference between the Hopf functions at the three τRoss-levels. The bottom level in the plot (highest point included in the atmosphere) shows fairly little variation. At the mid-level, there is an increase of q towards the cool dwarfs and a slow increase towards the giants. In the optical deep part, qq is dominated by a broad bump at medium-temperature dwarfs that extends towards the cool giants, and an upturn on the main sequence for both hot and cool dwarfs. The location of the solar simulation is indicated with ⊙ and lies near the maximum of the bump in q, which means q changes little in the immediate neighbourhood of the Sun.

The dependence of the radiative Hopf function, q as a function of optical depth and atmospheric parameters, Teff and log g. The locations of the simulations are indicated with red asterisks, and the solar simulation is indicated by a red ⊙.
Figure 5.

The dependence of the radiative Hopf function, q as a function of optical depth and atmospheric parameters, Teff and log g. The locations of the simulations are indicated with red asterisks, and the solar simulation is indicated by a red ⊙.

In Fig. 6, we present the variation of q with stellar mass on the zero-age main sequence (ZAMS). The atmospheric parameters for the ZAMS were derived from the stellar evolution models computed with the mesa code (Paxton et al. 2011), using MLT α and initial helium abundance Y0 calibrated to the present Sun. The radiative Hopf functions were interpolated linearly on the Thiessen triangles of the irregular grid. For comparison, we also plot q derived from 1D marcs atmospheres (grey dashed lines in Fig. 6), through equations (10) and (18). The simulations have a smooth transition to the asymptotic value in the diffusion approximation, q, contrary to the behaviour of the M > 0.8 M 1D marcs models, which exhibit a deeper and rather abrupt transition to q and the medium-mass models also display a marked plateau around the photosphere. We suspected second-order effects from the onset of MLT convection, but this feature in qrad(τ) does not seem to be correlated with the Fconv/Ftot-ratio of the models. The optically deep values, q, are lower for the 3D simulations than their 1D counterparts for high and low masses and opposite around 1 M. The 3D T(τ) relations above the photosphere are generally seen to have a larger range of behaviour compared with those of the 1D models. The 3D case is shallower in the high atmosphere and steeper at intermediate τ. The low-mass simulations converge to q strikingly high in the atmosphere. This is not caused by interpolation between the simulations, as the parameters of the zero-age, 0.6 M star are very close to simulation no. 36 of Table 1, which displays a similar behaviour.

The change of the radiative Hopf function q with stellar mass, on the zero-age main sequence. The mass is indicated to the right, and each set of curves is offset by 0.2 with respect to the next mass, with the M = 1.40 M⊙ curve having no offset. The solid lines show the simulations interpolated to the parameters of the zero-age main sequence, and the dashed grey curves show the corresponding 1D marcs models (Gustafsson et al. 2008). The dotted curves indicate the grey atmosphere, crossing their corresponding line-blanketed atmospheres between log τRoss = −2 and −1.5. The long-dashed curve shows the often applied Krishna Swamy (1966) relation, offset by the same amount as the 1.00 M⊙ curves. The vertical dotted line indicates optical depth unity.
Figure 6.

The change of the radiative Hopf function q with stellar mass, on the zero-age main sequence. The mass is indicated to the right, and each set of curves is offset by 0.2 with respect to the next mass, with the M = 1.40 M curve having no offset. The solid lines show the simulations interpolated to the parameters of the zero-age main sequence, and the dashed grey curves show the corresponding 1D marcs models (Gustafsson et al. 2008). The dotted curves indicate the grey atmosphere, crossing their corresponding line-blanketed atmospheres between log τRoss = −2 and −1.5. The long-dashed curve shows the often applied Krishna Swamy (1966) relation, offset by the same amount as the 1.00 M curves. The vertical dotted line indicates optical depth unity.

Fig. 7 illustrates the gravity dependence of the T(τ) relations. Going to lower gravity, the T(τ) relation gets steeper in the photosphere and shallower just above, developing a kink right in the photosphere of the lowest gravity case. This feature is also not a result of the interpolation between the simulations, since simulation no. 2 is very close to the log g = 2.25 case plotted, and exhibits the same kink. The qs from the 1D models are generally steeper in the high atmosphere, and show very little overall variation with gravity, compared with the 3D simulations.

As Fig. 6, but showing the change of q with gravity, for a fixed Teff = 5000 K. This Teff is chosen for the grid of simulations having the largest extent in gravity here. The offset between each set of curves is 0.2, and the log g = 4.5 curves have no offset. The Krishna Swamy (1966) atmosphere has no offset either.
Figure 7.

As Fig. 6, but showing the change of q with gravity, for a fixed Teff = 5000 K. This Teff is chosen for the grid of simulations having the largest extent in gravity here. The offset between each set of curves is 0.2, and the log g = 4.5 curves have no offset. The Krishna Swamy (1966) atmosphere has no offset either.

The opacities in the atlas9 models and the 3D simulations are nearly identical, and Gustafsson et al. (2008) found that the differences between marcs and atlas9 models in this region amount to less than 20 K throughout the atmospheres, −5 ≤ log τ ≤ 2. This means that the differences we see here, between 1D atmospheres and 3D convection simulations, must be mainly due to the more realistic treatment of convection in our simulations.

One of the major differences between hydrodynamic simulations and the MLT formulation is the presence of overshooting from the top of the convection zone and into the stably stratified part of the atmosphere. As a result, we see significant velocity fields throughout the atmospheres of our simulations. As pointed out by Asplund et al. (1999), the radiative heating and cooling therefore have competition from the expansion cooling of rising plasma, expanding due to the large density gradient in the atmosphere. The adiabatic stratification is typically more than 1000 K cooler than the radiative equilibrium solution. A stratification in between these two extremes will therefore experience radiative heating and expansion cooling, and obtain equilibrium at a lower temperature than the purely radiative atmosphere. This convective cooling from overshooting is one of the higher order convective effects visible in Figs 6 and 7. And the process occurs outside the convection zone, in a region where convection carries no flux – or rather, the convective flux is less than a per cent of the total and it is negative. This effect is rather small for solar-metallicity stars, as the large opacity will establish an equilibrium close to the radiative one. For metal-poor stars, the effect can be of the order of 103 K (Asplund et al. 1999; Collet et al. 2007).

In Figs 6 and 7, we also show the grey atmosphere (King 1956; Mihalas 1978) with dotted lines. It is obvious that the grey approximation is insufficient in all cases.

7 CONCLUSION

We have confirmed that the use of T(τ) relations is indeed a good and consistent method for incorporating the effects of full radiative transfer in stellar structure computations – even in the non-grey case, as shown in Section 2. It is often remarked that T(τ) relations imply grey radiative transfer since they are used with the grey Rosseland opacity. That is only the case, however, when the grey Hopf function is used. When a generalized Hopf function is used, any physical effects can be included in the atmosphere, and with the T(τ) relation and a Rosseland opacity the stratification can be reconstituted without the need for detailed radiative transfer. With our formulation, the T(τ) relations can be based on any realistic atmosphere calculation, be it 1D, 3D or non-LTE, without the stellar structure code implementing them needing any information about such complications. We also developed a more general formulation to deal with T(τ) relations in 3D, which reduces properly to the simpler 1D case.

Based on that we proceeded to compute T(τ) relations for a number of 3D simulations of radiation-coupled convective stellar atmospheres, the results of which are displayed in Sections 4 and 5. Comparisons with 1D models reveal differences of the order of 100 K in the shape of the T(τ) relations (see Fig. 3). In Figs 6 and 7, the differences are put in the context of stellar evolution, by displaying cuts in the Hertzsprung-Russell (HR) diagram. These differences are again significant and smooth but not monotonic in atmospheric parameters, with the 3D simulations displaying a larger range of behaviours – especially with varying gravity and fixed Teff. The warmer 1D marcs atmospheres show a curiously sharp transition to the constant Hopf function of the diffusion approximation.

The simulations populate the Teff/g plane densely enough for interpolation between the simulations to be safe. Routines for interpolating irregularly gridded data are publicly available (Renka 1984) and make for straightforward implementation in stellar structure and evolution codes.

To separate, in stellar structure models, the effects of convection from those of the radiative transition in the photosphere, and to avoid unnecessary systematic effects, we recommend that the T(τ) relations be reduced to radiative equilibrium, as defined in Section 2, and that convection is reintroduced into the interior structure model, as described in Section 2.5 .

As the precision and scope of modern observations of stars steadily improve, and as we find ourselves in the age of detailed asteroseismic inferences, higher demands are placed on the modelling of stars. With improved understanding and treatment of the interplay between radiation and convection, it will be possible to isolate other effects that so far have been shrouded in the uncertainty of the atmospheric part of stellar models. With improved outer boundary conditions, combined with the mixing-length calibration in Paper II, we can have more confidence in predictions about the depth of convective envelopes. This, in turn, will allow the study of other mixing processes, such as convective overshoot at the base of the convection zone, rotational and gravity-wave mixing, etc., and comparisons with observations of chemical enrichment from dredge-ups and the destruction of volatile elements such as Li and B.

Data Retrieval: A file with the q(τ) data and Fortran 77 routines for reading and interpolating the data can be downloaded from http://cdsweb.u-strasbg.fr/cgi-bin/qcat?J/MNRAS/. A few entries from the online file are shown in Table 2. The data file contains both the radiative Hopf functions, qRoss), and the calibrated mixing-length parameter, α, as found in Paper II, as functions of atmospheric parameters, Teff and log g. The URL also contains the routines necessary for setting up and interpolating in the triangulation of the irregular grid of simulations (Renka 1984). Finally, we also supply a simple user-level function to include in stellar structure codes, which does not require any knowledge of the data or the details of the triangulation.

The opint opacity interpolation package can be downloaded from http://phys.au.dk/∼hg62/OPINT, together with the atmospheric opacities from our calculation, merged with interior OP opacities (cf. Section 3.1).

The helpful comments and suggestions by the anonymous referee have improved the paper and are much appreciated. We are grateful to R. L. Kurucz for providing access to his data base of opacity distribution functions, and we are also grateful to W. Däppen for access to the code and data tables for the MHD equation of state. RT acknowledges funding from the Australian Research Council (grants DP 0342613 and DP 0558836) and NASA grants NNX08AI57G and NNX11AJ36G. RFS acknowledges NSF grant AGS-1141921 and NASA grant and NNX12AH49G. Funding for the Stellar Astrophysics Centre is provided by the Danish National Research Foundation (Grant DNRF106). The research is supported by the ASTERISK project (ASTERoseismic Investigations with SONG and Kepler) funded by the European Research Council (grant agreement no.: 267864). The work of MA has been supported through a Laureate Fellowship from the Australian Research Council (FL110100012). The simulations were run at the Australian Partnership for Advanced Computations (APAC). This research has made extensive use of NASA's Astrophysics Data System.

REFERENCES

Anders
E.
Grevesse
N.
Geochim. Cosmochim. Acta
,
1989
, vol.
53
pg.
197
Antia
H. M.
Basu
S.
ApJ
,
2005
, vol.
620
pg.
L129
Asplund
M.
Gustafsson
B.
Kiselman
D.
Eriksson
K.
A&A
,
1997
, vol.
318
pg.
521
Asplund
M.
Nordlund
Å.
Trampedach
R.
Stein
R. F.
A&A
,
1999
, vol.
346
pg.
L17
Asplund
M.
Ludwig
H.-G.
Nordlund
Å.
Stein
R. F.
A&A
,
2000a
, vol.
359
pg.
669
Asplund
M.
Nordlund
Å.
Trampedach
R.
Allende Prieto
C.
Stein
R. F.
A&A
,
2000b
, vol.
359
pg.
729
Asplund
M.
Grevesse
N.
Sauval
J.
Barnes
T. G.
III
Bash
F. N.
ASP Conf. Ser. Vol. 336, Cosmic Abundances as Records of Stellar Evolution and Nucleosynthesis
,
2005
San Francisco
Astron. Soc. Pac.
pg.
25
Asplund
M.
Grevesse
N.
Sauval
A. J.
Scott
P.
ARA&A
,
2009
, vol.
47
pg.
481
Auer
L. H.
Mihalas
D.
MNRAS
,
1970
, vol.
149
pg.
65
Badnell
N. R.
Bautista
M. A.
Butler
K.
Delahaye
F.
Mendoza
C.
Palmeri
P.
Zeippen
C. J.
Seaton
M. J.
MNRAS
,
2005
, vol.
360
pg.
458
Bahcall
J. N.
Basu
S.
Pinsonneault
M.
Serenelli
A. M.
ApJ
,
2005
, vol.
618
pg.
1049
Basu
S.
Antia
H. M.
MNRAS
,
1995
, vol.
276
pg.
1402
Bell
K. L.
J. Phys. B
,
1980
, vol.
13
pg.
1859
Bell
K. L.
Berrington
K. A.
J. Phys. B
,
1987
, vol.
20
pg.
801
Böhm-Vitense
E.
Z. Astrophys.
,
1958
, vol.
46
pg.
108
Broad
J. T.
Reinhardt
W. P.
Phys. Rev. A
,
1976
, vol.
14
pg.
2159
Castelli
F.
Kurucz
R. L.
Piskunov
N.
Weiss
W. W.
Gray
D. F.
Proc. IAU Symp. 210, Modelling of Stellar Atmospheres
,
2003
San Francisco
Astron. Soc. Pac.
pg.
A20
Castelli
F.
Gratton
R. G.
Kurucz
R. L.
A&A
,
1997
, vol.
318
pg.
841
Chaboyer
B.
Fenton
W. H.
Nelan
J. E.
Patnaude
D. J.
Simon
F. E.
ApJ
,
2001
, vol.
562
pg.
521
Chabrier
G.
Baraffe
I.
A&A
,
1997
, vol.
327
pg.
1039
Chandrasekhar
S.
MNRAS
,
1935
, vol.
96
pg.
21
Christensen-Dalsgaard
J.
Thompson
M. J.
MNRAS
,
1997
, vol.
284
pg.
527
Collet
R.
Asplund
M.
Trampedach
R.
A&A
,
2007
, vol.
469
pg.
687
Collet
R.
Magic
Z.
Asplund
M.
J. Phys.: Conf. Ser.
,
2011
, vol.
328
pg.
012003
Däppen
W.
A&A
,
1980
, vol.
91
pg.
212
Däppen
W.
Mihalas
D.
Hummer
D. G.
Mihalas
B. W.
ApJ
,
1988
, vol.
332
pg.
261
Demarque
P.
Guenther
D. B.
Li
L. H.
Mazumdar
A.
Straka
C. W.
Ap&SS
,
2008
, vol.
316
pg.
31
Ferguson
J. W.
Alexander
D. R.
Allard
F.
Barman
T.
Bodnarik
J. G.
Hauschildt
P. H.
Heffner-Wong
A.
Tamanai
A.
ApJ
,
2005
, vol.
623
pg.
585
Freytag
B.
Steffen
M.
Ludwig
H.-G.
Wedemeyer-Böhm
S.
Schaffenberger
W.
Steiner
O.
J. Comput. Phys.
,
2012
, vol.
231
pg.
919
Gavrila
M.
Phys. Rev.
,
1967
, vol.
163
pg.
147
Gingerich
O.
Noyes
R. W.
Kalkofen
W.
Sol. Phys.
,
1971
, vol.
18
pg.
347
Gough
D. O.
Weiss
N. O.
MNRAS
,
1976
, vol.
176
pg.
589
Grevesse
N.
Noels
A.
Prantzos
N.
Vangioni-Flam
E.
Cassé
M.
Origin and Evolution of the Elements
,
1993
Cambridge
Cambridge Univ. Press
pg.
15
Grupp
F.
A&A
,
2004
, vol.
420
pg.
289
Grupp
F.
Kurucz
R. L.
Tan
K.
A&A
,
2009
, vol.
503
pg.
177
Gudiksen
B. V.
Nordlund
Å.
ApJ
,
2005
, vol.
618
pg.
1020
Gustafsson
B.
in Upps. Astr. Obs. Ann., Vol. 5, A Fortran Program for Calculating ‘Continuous’ Absorption Coefficients of Stellar Atmospheres
,
1973
Uppsala
Landstingets Verkstäder
pg.
1
Gustafsson
B.
Bell
R. A.
Eriksson
K.
Nordlund
Å.
A&A
,
1975
, vol.
42
pg.
407
Gustafsson
B.
Edvardsson
B.
Eriksson
K.
Jørgensen
U. G.
Nordlund
Å.
Plez
B.
A&A
,
2008
, vol.
486
pg.
951
Hauschildt
P. H.
Allard
F.
Baron
E.
ApJ
,
1999a
, vol.
512
pg.
377
Hauschildt
P. H.
Allard
F.
Ferguson
J.
Baron
E.
Alexander
D. R.
ApJ
,
1999b
, vol.
525
pg.
871
Hayek
W.
Asplund
M.
Carlsson
M.
Trampedach
R.
Collet
R.
Gudiksen
B. V.
Hansteen
V. H.
Leenaarts
J.
A&A
,
2010
, vol.
517
pg.
A49
Henyey
L.
Vardya
M. S.
Bodenheimer
P.
ApJ
,
1965
, vol.
142
pg.
841
Holweger
H.
Müller
E. A.
Sol. Phys.
,
1974
, vol.
19
pg.
19
Hopf
E.
MNRAS
,
1930
, vol.
90
pg.
287
Houdek
G.
Rogl
J.
Bull. Astron. Soc. India
,
1996
, vol.
24
pg.
317
Hummer
D. G.
Mihalas
D.
ApJ
,
1988
, vol.
331
pg.
794
King
J. I. F.
ApJ
,
1956
, vol.
124
pg.
406
Kippenhahn
K.
Weigert
A.
Astronomy and Astrophysics Library, Stellar Structure and Evolution
,
1990
1 edn
Berlin
Springer
Krishna Swamy
K. S.
ApJ
,
1966
, vol.
145
pg.
174
Kurucz
R. L.
Rev. Mex. Astron. Astrofis.
,
1992a
, vol.
23
pg.
45
Kurucz
R. L.
Rev. Mex. Astron. Astrofis.
,
1992b
, vol.
23
pg.
181
Kurucz
R. L.
Barbuy
B.
Renzini
A.
Proc. IAU Symp. 149, The Stellar Population of Galaxies
,
1992c
Dordrecht
Kluwer
pg.
225
Kurucz
R. L.
ATLAS9
,
1993
 
CD-ROM No. 13
Kurucz
R. L.
Strassmeier
K. G.
Linsky
J. L.
Proc. IAU Symp. 176, Stellar Surface Structure
,
1996
Dordrecht
Kluwer
pg.
523
Kurucz
R. L.
Hubeny
I.
Stone
J. M.
MacGregor
K.
Werner
K.
AIP Conf. Proc. Vol. 1171, Recent Directions in Astrophysical Quantitative Spectroscopy and Radiation Hydrodynamics
,
2009
New York
Am. Inst. Phys.
pg.
43
Kurucz
R. L.
van Dishoeck
E. F.
Tarafdar
S. P.
ApJ
,
1987
, vol.
322
pg.
992
Langhoff
P.
Sims
J.
Corcoran
C. T.
Phys. Rev. A
,
1974
, vol.
10
pg.
829
Ludwig
H.-G.
Freytag
B.
Steffen
M.
A&A
,
1999
, vol.
346
pg.
111
Ludwig
H.-G.
Caffau
E.
Steffen
M.
Freytag
B.
Bonifacio
P.
Kučinskas
A.
Mem. Soc. Astron. Ital.
,
2009
, vol.
80
pg.
711
Magic
Z.
Collet
R.
Asplund
M.
Trampedach
R.
Hayek
W.
Chiavassa
A.
Nordlund
Å.
A&A
,
2013
, vol.
557
pg.
A26
Magic
Z.
Weiss
A.
Asplund
M.
A&A
,
2014
 
preprint (arXiv:1403.1062)
Mathisen
R.
in Inst. Theor. Astroph. Publ. Ser., Vol. 1, Photo Cross-Sections for Stellar Atmosphere Calculations – Compilation of References and Data. University of Oslo
,
1984
pg.
1
Mihalas
D.
Stellar Atmospheres
,
1978
2nd edn
San Francisco
Freeman & Co.
Mitchell
W. E.
Jr
ApJ
,
1959
, vol.
129
pg.
93
Morel
P.
van't Veer
C.
Provost
J.
Berthomieu
G.
Castelli
F.
Cayrel
R.
Goupil
M. J.
Lebreton
Y.
A&A
,
1994
, vol.
286
pg.
91
Nordlund
Å.
A&A
,
1982
, vol.
107
pg.
1
Nordlund
Å.
Galsgaard
K.
Technical report, A 3D MHD Code for Parallel Computers
,
1995
Astron. Obs., Copenhagen University
Nordlund
Å.
Stein
R. F.
Crivellari
L.
et al.
Stellar Atmospheres: Beyond Classical Models Dynamics of and radiative transfer in inhomogeneous media
,
1991
Dordrecht
Kluwer
pg.
263
Nordlund
Å.
Stein
R. F.
Asplund
M.
Living Rev. Sol. Phys.
,
2009
, vol.
6
pg.
2
Paxton
B.
Bildsten
L.
Dotter
A.
Herwig
F.
Lesaffre
P.
Timmes
F.
ApJS
,
2011
, vol.
192
pg.
3
Pereira
T. M. D.
Asplund
M.
Trampedach
R.
Santos
N.
Pasquini
L.
Correia
A.
Romanielleo
M.
Proc. ESO/Lisbon/Aveiro Conf., Precision Spectroscopy in Astrophysics
,
2008
Berlin
Springer
pg.
313
Pereira
T. M. D.
Asplund
M.
Collet
R.
Thaler
I.
Trampedach
R.
Leenaarts
J.
A&A
,
2013
, vol.
554
pg.
A118
Pietrinferni
A.
Cassisi
S.
Salaris
M.
Castelli
F.
ApJ
,
2004
, vol.
612
pg.
168
Plez
B.
J. Phys.: Conf. Ser.
,
2011
, vol.
328
pg.
012005
Plez
B.
Brett
J. M.
Nordlund
Å.
A&A
,
1992
, vol.
256
pg.
551
Prieto
C. A.
Asplund
M.
López
R. J. G.
Lambert
D. L.
ApJ
,
2002
, vol.
567
pg.
544
Renka
R. J.
ACM Trans. Math. Softw.
,
1984
, vol.
10
pg.
440
Rogers
F. J.
Iglesias
C. A.
Science
,
1994
, vol.
263
pg.
50
Rogers
F. J.
Nayfonov
A.
ApJ
,
2002
, vol.
576
pg.
1064
Rutten
R. J.
Radiative Transfer in Stellar Atmospheres
,
2003
7 edn
Lecture Notes, Utrecht University
Serenelli
A. M.
Basu
S.
Ferguson
J. W.
Asplund
M.
ApJ
,
2009
, vol.
705
pg.
L123
Short
C. I.
Campbell
E. A.
Pickup
H.
Hauschildt
P. H.
ApJ
,
2012
, vol.
747
pg.
143
Stancil
P. C.
ApJ
,
1994
, vol.
430
pg.
360
Stein
R. F.
Nordlund
Å.
ApJ
,
1998
, vol.
499
pg.
914
Stein
R. F.
Georgobiani
D.
Schafenberger
W.
Nordlund
Å.
Benson
D.
Stempels
E.
AIP Conf. Proc. Vol. 1094, Cool Stars, Stellar Systems and the Sun
,
2009
New York
Am. Inst. Phys.
pg.
764
Straniero
O.
Chieffi
A.
Limongi
M.
ApJ
,
1997
, vol.
490
pg.
425
Tanner
J. D.
Basu
S.
Demarque
P.
ApJ
,
2014
, vol.
785
pg.
L13
Trampedach
R.
Master's thesis
,
1997
Århus, Denmark
Aarhus University
Trampedach
R.
Sawaya-Lacoste
H.
The Present and Future SOHO 12/Gong 2002 Workshop, Local and Global Helioseismology
,
2003
Noordwijk
ESA
pg.
195
Trampedach
R.
Asplund
M.
Collet
R.
Nordlund
Å.
Stein
R. F.
ApJ
,
2013
, vol.
769
pg.
18
Trampedach
R.
Christensen-Dalsgaard
J.
Nordlund
Å.
Asplund
M.
Stein
R. F.
MNRAS
,
2014
 
submitted
van Ballegooijen
A. A.
Asgari-Targhi
M.
Cranmer
S. R.
DeLuca
E. E.
ApJ
,
2011
, vol.
736
pg.
3
VandenBerg
D. A.
Edvardsson
B.
Eriksson
K.
Gustafsson
B.
ApJ
,
2008
, vol.
675
pg.
746
Vernazza
J. E.
Avrett
E. H.
Loeser
R.
ApJS
,
1981
, vol.
45
pg.
635
Victor
G. A.
Dalgarno
A.
J. Chem. Phys.
,
1969
, vol.
50
pg.
2535
Wedemeyer
S.
Freytag
B.
Steffen
M.
Ludwig
H.-G.
Holweger
H.
A&A
,
2004
, vol.
414
pg.
1121
Wishart
A. W.
MNRAS
,
1979
, vol.
187
pg.
59

SUPPORTING INFORMATION

Additional Supporting Information may be found in the online version of this article:

Table 2. Sample of the online table of Hopf functions as functions of log τ (rows) and atmospheric parameters, Teff and log g (columns) (Supplementary Data).

Please note: Oxford University Press is not responsible for the content or functionality of any supporting materials supplied by the authors. Any queries (other than missing material) should be directed to the corresponding author for the paper.

Supplementary data