A&A 428, 993-1000 (2004)
DOI: 10.1051/0004-6361:20034169
D. Shulyak1,2 - V. Tsymbal1,2 - T. Ryabchikova2,3 - Ch. Stütz2 - W. W. Weiss2
1 - Tavrian National University, Yaltinskaya 4,
330000 Simferopol, Crimea, Ukraine
2 -
Institute for Astronomy, University of Vienna, Türkenschanzstraße 17,
1180 Vienna, Austria
3 -
Institute of Astronomy, Russian Academy of Science, Pyatnitskaya 48,
119017 Moscow, Russia
Received 7 August 2003 / Accepted 8 September 2004
Abstract
Modelling stellar atmospheres becomes increasingly
demanding as more accurate observations draw a more complex
picture of how real stars look like. What could be called a normal
star becomes increasingly rare because of, e.g., significant
deviations from the classical solar abundance pattern and clear
evidence for stratification of elements in the atmospheres as well
as surface inhomogeneities (spots) causing further severe
deviations from "standard'' atmospheres. We describe here a new
code for calculating LTE plane-parallel stellar model atmospheres
for early and intermediate type of stars which has been written in
Compaq Fortran 95 and can be compiled for Windows and Linux/UNIX
computer platforms. The code is based on modified ATLAS9 subroutines (Kurucz) and on spectrum synthesis codes written
by V. Tsymbal with the main modifications of input physics
concerning the block for opacity calculation. Each line
contributing to opacity is taken into account for modelling the
atmosphere, similar to synthetic spectrum calculations. This
approach, which we call the line-by-line (LL) technique, avoids
problems resulting from statistical methods (ODF, OS) and allows
to calculate complex models with abundances which are not simply
scaled from a standard pattern (usually the solar abundances) and which
can be even depth dependent. Stratification is considered in this
context as an empirical input parameter which has to be derived
from observations. Due to the implemented numerical methods,
mainly in the opacity calculation module, our code produces model
atmospheres with modern PCs in a time comparable to that required by classical
routines.
Key words: stars: atmospheres - stars: abundances - stars: chemically peculiar - stars: fundamental parameters - stars: individual: CU Vir - stars: individual: HD 124224
Modelling of stellar atmospheres (together with synthetic spectrum calculations) is one of the most important tools for investigating stellar structure and evolution and for determining their main parameters. Starting with the first simple and analytical models (Eddington 1929) the growing knowledge about physical processes in a plasma allowed to calculate more realistic models, taking into account such effects as line blanketing (Strom & Kurucz 1966) and deviations from the local thermodynamic equilibrium (Mihalas & Auer 1970).
One of the main problems for stellar atmosphere modelling was the huge amount of spectral lines which have to be taken into account; up to tens of millions. To save computing time, several statistical methods for the representation of line absorption have been developed. Best known are the Opacity Distribution Function method (ODF) (see Strom & Kurucz 1966; Querci et al. 1974; Gustafsson et al. 1975; Kurucz 1979), first implemented by Labs (1951), and the Opacity Sampling (OS) method (Peytremann 1974; Sneden et al. 1976; Johnson & Krupp 1976, Carbon 1984, Ekberg et al. 1986; Alexsander et al. 1989; etc.). Due to their statistical nature, these methods have various shortcomings discussed in, e.g., Carbon (1974), Castelli & Kurucz (1994) and references therein.
Approximations have to be used to facilitate model atmosphere calculations. In general, the atmosphere is sliced into layers which are considered to be plan-parallel, level populations are assumed to be in local thermal equilibrium (LTE) and the chemical composition is considered to be constant throughout the entire atmosphere. For a long time the latter assumption was not disputed and the ODF method was very popular because of its modest demand for computer power. It was sufficient to calculate ODF tables for a limited number of chemical compositions (usually scaled to the solar case), temperatures, pressures, microturbulent velocities, and to use these tables when calculating model atmospheres of normal stars.
Recently more and more attention is being paid to the problem of model atmospheres with individual abundances. Moreover, in particular in the case of chemically peculiar (Ap) stars, it is necessary to take stratification of elements into account, because spectra of these stars indicate a vertical abundance distribution with sometimes steep gradients (Wade et al. 2001; Ryabchikova et al. 2002). In such a case line opacity calculations pose a serious problem which, for the ODF method, would require to calculate ODF tables for each layer. Already a full calculation of model atmospheres with constant, but individual abundances (including line preselection procedures and calculation of ODF tables) is very time consuming. Such an approach has been chosen by Piskunov & Kupka (2001) for modelling CP stars with individual abundances.
The accuracy of the opacity sampling (OS) method depends directly on the number of frequency points used. Increasing this number one can expect a more accurate representation of line absorption effects and thus of the model structure. This method was chosen for ATLAS12 (Kurucz 1993) and PHOENIX (Hauschildt et al. 1997; Baron & Hauschildt 1998, and references therein).
In this paper we present a new software package which allows to calculate plane-parallel, LTE models for early and intermediate types of stars using, what we call, the line-by-line method for computing line opacity effects. The package is based on the main program blocks of ATLAS9 (continuum opacity, temperature correction, evaluation of the Saha equation) and on STARSP (Tsymbal 1996) for calculating the line absorption.
In the next Section we briefly describe the main features of the
new code and the strategy for the calculations, followed by a
comparison with other codes, such as ATLAS9, ATLAS12 and PHOENIX, for a
standard model with
= 10 000 K,
= 4.0, and
[A/H] = 0. We also tested our code on the Si star CU Vir
(HD 124224) and compared our results to those obtained by the
advanced ATLAS9 code developed by Piskunov & Kupka
(2001).
We show that the stratification of iron
plays a major role for the famous
5200 Å depression
which is enhanced in the spectrum of CU Vir at the phase of light
maximum.
What we call in this paper the "line-by-line'' (LL) technique is used to compute the line absorption coefficient on a very fine wavelength grid including also opacities caused by other lines at both sides from the given grid point. The step size for flux integration has to be chosen small enough to provide a sufficiently accurate description of all line profiles contributing to the opacity. In other words, line-by-line is the direct method for line absorption calculation which was not yet used regularly, because of the limitations in computing resources. Obviously, there is no difference between LL and OS methods, provided the latter is based on a grid of 300 000-500 000 points in the spectral range of the maximum stellar radiation. In such a case, the frequency and depth dependence of the line absorption coefficient is completely covered. Hence, when calculating LL model atmospheres we reproduce the spectrum in detail, almost in the same manner as for spectrum synthesis.
Figure 1 shows the flux calculated with ATLAS12 (top) and with the LL code (bottom) for an arbitrarily chosen wavelength region. ATLAS12 employs an approximately 1 Å step size while we use 0.1 Å. Obviously quite some lines are missed with the OS method. However, this deficit is not as critical as it might appear to be, because of the statistical nature of the OS method. Nevertheless, the temperature structure of a given model depends on the total flux which calls for a most realistic flux integration as is provided with the LL technique. For chemically stratified atmospheres, as is the case, e.g., for Ap stars, the contribution of the same spectral intervals to the total opacity differs in general from a uniform not-stratified atmosphere. Finally, using too large steps for the flux integration causes incorrect estimates of the total opacity in these regions. The LL method avoids completely such uncertainties.
![]() |
Figure 1: Comparison between the ATLAS12 (top curve) and the line-by-line (bottom curve) flux calculation. The same line list was used for both calculations. Diamonds and crosses show the wavelength points used by the two codes, respectively. Fluxes obtained by the LL calculation have been off-set by -0.5 in the logarithmic scale. Note, that OS and LL are not intended to compute a spectrum. The data points are here connected by a line only to guide the eye. |
| Open with DEXTER | |
Computing speed obviously is a crucial issue for the acceptance of our LL technique. Previous attempts to introduce the basic LL concept in routine work were realized, for example, by Morton (1965), Mihalas & Morton (1965), Adams & Morton (1968) who used only ninety-eight ultraviolet spectral lines and only in the region covered by Lyman series. Gustafsson et al. (1975) used this method for constructing late-type giant model atmospheres. Computing time is driven by the small wavelength steps in the spectral region which is to be integrated and by the large number of lines which have to be considered. The line absorption at a given wavelength is determined also by neighbouring lines and the number of these lines can be very large, in particular in the UV region. Thus, for each wavelength grid point also all nearby lines have to be considered when calculating the total absorption. In ATLAS12 e.g., R. Kurucz uses 200 grid points to take absorption by a single line into account. With a step size for ATLAS12 of about 1 Å this implies a spectral range comparable to a complete A-type star Balmer line!
As the wings of most atomic lines cover at most a few Å, there
is no need to calculate their profiles far beyond a reasonably
chosen limit
,
for which the opacity contribution
for a given line becomes negligible.
It was found experimentally that
Å is
accurate enough for the most extended sets of spectral lines.
Thus, in our calculations we summarize opacities from all lines within
a
2.5 Å window centered on a given wavelength grid point.
The same approach had been implemented in the STARSP code
(Tsymbal 1996). Wide lines
(we call "wide'' those lines which still contribute to the opacity
outside the 2.5 Å interval),
as hydrogen lines, Ca II H and K lines, etc. are treated differently.
An optimized line sorting algorithm contributes to the performance of the code. 20 000 lines are extracted at once from a master list what is more than enough to compute the line opacity in 5 Å intervals at any spectral region. The master list is provided from a data base, such as LOWLINES.DAT (Kurucz 1994) or VALD (Piskunov et al. 1995; Kupka et al. 1999; Ryabchikova et al. 1999) where the line density of the data base in the UV region is about 10 000 lines per Å. The extracted preselected lines are kept in the computer memory until new lines have to be downloaded with a fast sorting routine which replaces lines not contributing any more to the opacity in the new spectral interval.
To calculate a model with 400 000 frequency points based on almost 440 000 lines requires about 3-5 min per iteration and the total computing time on an Athlon XP+ (2.2 GHz, 512 RAM) for a completely converged model is about 2 h, depending on the quality of the input model parameters. For comparison, ATLAS12 which basically uses 30 000 frequency points requires approximately 1 minute per iteration (500 000 lines, Intel Celeron with 1.1 GHz and 128 RAM) and LL calculation takes 8 min with 0.1 Å and 4 min with 0.2 Å wavelength steps on the same computer and with the same line list.
Variable wavelength steps (for example, small in the UV region and larger in the IR) are also a user option in our code, but in practice a constant wavelength step of 0.1 Å is chosen, appropriate for the UV region. A further reduction of this step size does not change significantly the model structure. Increasing the wavelength steps towards the IR does not significantly reduce the total computing time because the atomic line density is decreasing in this region. Obviously, cool star model atmospheres with many molecular lines to be considered will be more time consuming, but such stars are not a target for our code.
One important goal of the LL method is to avoid any statistical techniques
when calculating line opacities. LL and OS methods produce different results
only for optically thin layers, as is illustrated in Fig. 2.
We have calculated six model atmospheres with the same
= 12 700 and
= 4.0,
but different numbers of frequency points. Abundances and atomic line data
were the same and the integration of the radiation field parameters was
always carried out between 100 and 40 000 Å. The wavelength step was
chosen to be 0.01 Å, 0.05 Å, 0.1 Å, 0.5 Å and 1 Å. Finally, a model
was calculated with wavelength
steps similar to ATLAS12 (30 000 points between 500 and 500 000 Å). Models
with stepsizes of up to 0.1 Å have almost the same temperature distribution
and the maximum deviation does not exceed 20 K (Fig. 2).
These differences rapidly increase for more coarse grids and in particular
in the uppermost layers.
![]() |
Figure 2: Temperature differences between models calculated with different wavelength steps relative to a model computed with 0.01 Å steps. The values in brackets give the wavelength steps used in Ångstrom. The last model (vws) was calculated with a variable wavelength grid close to that of ATLAS12. |
| Open with DEXTER | |
The differences between LL- and OS-based model atmospheres are not that
important in the chemically homogeneous case, but they are critical for
layers near the surface of inhomogeneous atmospheres. For example, some
of the rare-earth elements
in the Ap star atmosphere of
Equ show strong overabundance above
(see Ryabchikova et al. 2002). In this case it is
indeed important to have accurate models for these layers to assure a correct
determination of the abundance stratification.
We therefore see the following arguments in favour of the LL models:
The continuum absorption coefficient calculated with a 1 Å wavelength step
does not change the model structure in comparison to an "exact'' calculation.
We therefor use the the same step size of 1 Å for continuum and hydrogen
line profiles except for a
50 Å interval centered on the line core where
the line absorption is calculated with the same small wavelength step used for
the other lines. For hydrogen line profiles we are using Stark broadening
tables from Lemke (1997) based on the VCS broadening theory
(Vidal et al. 1973). The wide line opacities, such as for
Ca II H and K, are also calculated
with the fine wavelength grid as is used for all other lines, but for an
increased wavelength interval of
30 Å.
The hydrostatic equation is solved similar to ATLAS9 with
Hamming's predictor-corrector method (for details see Kurucz
1970; or Heiter et al. 2002). The relevant
equation is
![]() |
(1) |
![]() |
(2) |
![]() |
(3) |
![]() |
(4) |
Instead of
we use the monochromatic optical depth
and determine the absorption coefficient at 5000 Å.
After
and
were calculated they are back interpolated
on the standard
grid to prevent models from fluctuating
along atmospheric depths. We continue working in terms of
.
Convective transport of energy in stellar atmospheres influences the
![]() |
(5) |
An alternative to MLT was introduced by Canuto & Mazzitelli (1991, 1991) who tried to improve the physical description of convection while keeping computational expenses as low as for MLT. The CM convection model has been implemented in our code in the same manner as it was done for ATLAS9 by Heiter et al. (2002).
Constancy of the total flux and conservation of radiative equilibrium are the two convergence criteria used for our models. Both criteria are checked after each iteration and for each atmospheric depth. If the condition
![]() |
(6) |
![]() |
(7) |
![]() |
Figure 3: Temperature distribution calculated with four codes: ATLAS9 (dotted line), ATLAS12 (dashed line), PHOENIX (dashed-dotted line) and LL (full line) |
| Open with DEXTER | |
![]() |
Figure 4: Flux comparison. The symbols are the same as for Fig. 3. |
| Open with DEXTER | |
To test our code and to check for possible errors we
compared models (
= 10 000 K,
= 4.0,
[A/H] = 0.0) produced by three different codes: ATLAS9,
ATLAS12 and PHOENIX.
First, we used LOWLINES.DAT, a line list produced by Kurucz
(1994) for selecting all the lines for which
,
with
and
being the
line and continuum absorption coefficients, respectively. This criterion is
sufficient for the chosen model and indeed, we calculated models with
,
and
as a preselection criterium and found
temperature differences not exceeding 20-30 K for the surface layers. The
total list of relevant lines contains after this preselection about 200 000
entries. The spectral region was chosen from 500 to 30 000 Å, that is where the star radiates most of its flux, and wavelength
steps of 0.1 Å.
Figure 3 illustrates the temperature distribution obtained by the four codes in the line forming region. Obviously, all codes provide almost the same results. ATLAS9 produces higher temperatures in the outermost surface layers, but these differences are not severe and are caused by shortcomings of the ODF method (see Castelli & Kurucz 1994).
The energy distributions are shown in Fig. 4. Fluxes obtained by ATLAS12, PHOENIX and by LL (our code) were convolved with a Gaussian of 20 Å FWHM. Evidently, differences exist only near the limits of the hydrogen series where ATLAS9, ATLAS12 and PHOENIX produce flux deficits relative to LL. Most probably, this is due to the different theories used to calculate hydrogen line cross sections. As already mentioned, we implemented the VCS theory (Lemke 1997), while the other codes use the broadening theory of Griem (1960) which is not valid for the line cores. They are systematically deeper and thus cause a flux deficit. In conclusion, our LL code is in very good agreement with the other codes.
![]() |
Figure 5:
CM convection treatment for LL and ODF standard models
(
|
| Open with DEXTER | |
The implementation of the CM convection model was tested with ATLAS9 models of
effective temperatures between 6000 K and 9000 K, surface gravities
ranging from 2.0 to 4.0, and using solar abundances. In Fig. 5
we show a model with solar abundances,
= 8000 K and
= 4.0.
Model atmospheres are most sensitive to convection treatment for such parameters.
The maximum deviation at log
between LL and ATLAS9 models - using the same description of convection (CM)
- is less than 60 K. In addition, we checked the models for the peculiar star
CrB and for the
Scuti variable FG Vir and obtained similar
results.
Next we checked our code for stars with abundances very different from the solar case. For this purpose we chose the well studied magnetic B9p Si star CU Virginis (HD 124224) which shows strong surface abundance inhomogeneities. Variability of the Balmer line profiles was found by Ryabchikova (1972) and Weiss et al. (1976). Doppler Images show surface abundance variations of He (Hiesberger et al. 1995), Si (Goncharski et al. 1983; Hatzes 1997) and some others elements (Kuschnig et al. 1999). Temperature and gravity variations at the surface of this very rapidly rotating star are probably responsible for the observed Balmer line profile variations (Kuschnig et al. 1999).
The starting model parameters and abundances for He, Mg, Si, Cr and Fe were taken from Kuschnig et al. (1999). The authors
noted that the best fit for the H
line can be obtained with
ATLAS9 model atmospheres of same
,
but different gravities for
different rotation phases:
| Phase |
|
|
| 0.0 |
|
|
| 0.5 |
|
|
Table 1:
Abundances which were taken differently to the solar values when
modelling CU Vir. Units of the abundances are
.
First, we selected all lines from the Vienna Atomic Line Database (VALD)
which contribute to the opacity between 500 and 40 000 Å. This same
sample was used for the ODF and LL calculations and amounted to 445 000 and 333 000 lines for phase 0.0 and 0.5, respectively. For the
LL calculations we used the default wavelength step of 0.1 Å and
achieved the best fit to the observations with the following model parameters:
| Phase |
|
|
|
| 0.0 |
|
|
160 km s-1 |
| 0.5 |
|
|
160 km s-1 |
![]() |
Figure 6: Temperature distribution for CU Vir and for rotation phase 0.0 ( left) and 0.5 ( right). Full line - LL calculation, dashed line - ODF method. |
| Open with DEXTER | |
![]() |
Figure 7:
Comparison between the calculated and the observed H |
| Open with DEXTER | |
![]() |
Figure 8: The upper figure shows the energy distribution of CU Vir for phase 0.5. Full line - LL calculations, dotted line - ODF method, diamonds - observations. The energy distribution at phase 0.0 is displayed at the bottom for the case of stratified (full line) and non-stratified (dashed line) Fe abundance. Dotted line - ODF method, diamonds - observations. |
| Open with DEXTER | |
![]() |
Figure 9: The proposed stratification profile for Fe (dotted line) in the atmosphere of CU Vir at phase 0.0. |
| Open with DEXTER | |
![]() |
Figure 10:
Energy distributions of CU Vir for phase 0.0 (LL calculation).
Full line - homogenous
|
| Open with DEXTER | |
CU Vir is known to have a variable
5200 Å flux
depression which is clearly stronger at phase 0.0
(Fig. 8, bottom panel, around
). Neither LL calculation nor the ODF approach
with chemically homogeneous atmospheres are able to fit this
region well. We investigated stratification of those elements
which significantly contribute to line opacities and deviate from
solar abundance values, like Si and Fe. Neither the H
and
Si II line profiles nor the
5200 Å depression
change noticeably even if the stratification of Si is severe. But
using the Fe stratification as is illustrated in
Fig. 9 we
were able to fit simultaneously the
5200 Å depression, the total observed flux distribution
(Fig. 8, full line) and the H
profile.
To investigate particularly the effects of iron on fluxes and line profiles
observed at the two extreme rotation phases we computed models with
homogeneous iron abundances ranging from
to -3.0,
characterizing the situation deeper in the atmosphere of CU Vir
(Fig. 9). An increase of Fe abundance provides a better
fit to the
5200 Å depression, while the overall fit to the
flux becomes worse (see Fig. 10. The model with
= 4.5 and
fits both, the 5200 Å depression and reasonably well the UV region. However,
with the latter parameters the H
line profile cannot be
fit satisfactorily.
The obvious solution of the problem seems to be stratification of iron,
which to handle requires a technique similar to LL.
With modern PCs it is possible to compute sufficiently fast stellar
model atmospheres with individual and stratified abundances, using for
the line absorption effects what we call the line-by-line technique.
Optimized numerical techniques allow to achieve this goal without
pre-computed tables and even for a dense wavelength grid (typical
wavelength steps of 0.1 Å) and using several hundred thousands of
atomic lines. The results for comparable models are in good agreement
with those computed with ATLAS9, ATLAS12 and PHOENIX, thus providing an
important test for our code. We also tested our code with stars
departing significantly from solar scaled abundances, in particular
with the B9p Si star CU Vir which shows strong surface abundance
inhomogeneities. Overabundance and vertical stratification of iron
in the atmosphere of CU Vir can explain the observed
5200 Å - depression at rotational phase 0.0, and at
the same time the observed flux and the H
line profile.
In conclusion, we have shown that our code allows to compute on a routinely basis model atmospheres with complex properties, like any reasonable abundance pattern deviating from the solar case and which can be even changing with depth. This development provides a further step towards a consistent treatment of atmospheres of "abnormal'' stars.
Acknowledgements
We are very much indepted to Fiorella Castelli and Francis LeBlanc for providing us with the ATLAS12 and PHOENIX models. This research was funded by the Austrian Fonds zur Förderung der wissenschaftlichen Forschung (P-14984), the BM:BWK and ASA (project COROT). Financial support came from the RFBR (grant 03-02-16342) and from a Leading Scientific School, grant 162.2003.02. We are also grateful to Nicolaj Piskunov, Uppsala, for his numerous useful comments and discussions.