next previous
Up: CESAM: A code

5. Estimates of the numerical accuracy

  For results concerning external numerical tests using the simplified physics of the Solar Model Comparison project (SMC) see Christensen-Dalsgaard (1988, 1991).

5.1. Physics used for the numerical tests

  Otherwise stated, the following physics is employed in numerical tests:

  figure1135
Figure 4: Panels a), b), c), e): relative accuracy on the closure for, respectively, the first four differential equations of stellar evolution; panel d): enlargement for outer layers for the pressure gradient; panel f): relative difference on number of baryons. These plots are computed, using the improved solution, for more than 3500 points, randomly distributed in the model; the radius of the innermost point is tex2html_wrap_inline5443. The accuracy of the solution is better than tex2html_wrap_inline5445 except in the neighbourhood of the LMR and in the atmosphere

5.2. Superconvergence

  The expansion of the unknown functions on a basis allows to recover exactly the numerical solution at any location, i.e., not only at the grid points. Moreover with the de Boor's choice of the collocation points (de Boor 1978), the order of the accuracy of the numerical solution, at the grid points, is improvedgif by superconvergence (see Appendix C2). This nice numerical property avoids the Richarson extrapolation (Christensen-Dalsgaard 1982) which is, with stiff problems, sometimes unstable (Hairer & Wanner 1991). That improvement is illustrated Fig. 3 (click here): for a calibrated standard solar model, evolved from the PMS to the present age with "standard accuracy" (sa), but with a constant number of shells fixed to 300, the relative accuracy on the pressure gradient tex2html_wrap_inline5489:
displaymath5487
is plotted for points randomly distributed on the interval tex2html_wrap_inline5491; as seen, the relative precision, taking advantage of the super convergence, is improved by one order of magnitude. Figure 3 (click here) illustrates also the stability of the numerical solution near the center, the possibility of recovering, with full accuracy, the numerical solution everywhere and, the significant improvement of the accuracy in the envelope due to the superconvergence.

5.3. Estimate of the internal accuracy

  For more than 3500 points randomly distributed in a model of 1 tex2html_wrap_inline5493, evolved from ZAMS to 4550My, with "Solar accuracy" (Sa), the relative differences between left and right hand sides of the four first differential equations of Eq. (1 (click here)), namely the derivatives tex2html_wrap_inline5489, tex2html_wrap_inline5497, tex2html_wrap_inline5499 and tex2html_wrap_inline5501, have been computed from the improved solution of fourth order; the results, plotted Fig. 4 (click here), allow an estimate of the internal accuracy achieved. That model includes an atmosphere reconstructed (see Sect. 3.2.4 (click here)) and smooth opacity data have been provided using the bivariate rational spline interpolation scheme of Houdek & Rogl (1996).

As seen, the differential equations are fulfilled within a relative precision better than tex2html_wrap_inline5445 except in the neighbourhood of the LMR at tex2html_wrap_inline5505, and in the atmosphere for tex2html_wrap_inline5507. At LMR the local drop of the precision is a consequence of the small discontinuity of the density, caused by the mixing in the convective zone where the nuclear reactions, though weak, are active; there tex2html_wrap_inline5499 is discontinuous, the solution is only of class tex2html_wrap_inline5511, the fourth order accuracy cannot be reached; the effect is more sensitive for tex2html_wrap_inline5499 than for the other gradients, Fig. 4 (click here) panel (c). The cause of the low accuracy tex2html_wrap_inline5515 in the restored atmosphere, panel (d), is a consequence of the non-linear dependence of the natural variable tex2html_wrap_inline5517, used for the restoration of the atmosphere, with respect to R through the tex2html_wrap_inline4832 law and the opacity.

In the model, the closest grid point from the center is located at tex2html_wrap_inline5523; in the plots, deliberately, the first point was located at tex2html_wrap_inline5443, i.e., quite near to the central singularities; the stability of the numerical solution there is clearly illustrated Fig. 4 (click here), panels (a), (b) (c) and (e).

  figure1199
Figure 5: Plots, with respect to the normalized radius, of discontinuous quantities tex2html_wrap_inline5527 (dots) and tex2html_wrap_inline5529 (full) - tex2html_wrap_inline5095 is the mean molecular weight - in the neighbourhood of the LMR of a solar model with microscopic diffusion; on the tex2html_wrap_inline5527 curve, between two grid points tex2html_wrap_inline5535, each dot corresponds to a calculated and not to an interpolated value of tex2html_wrap_inline5527

As demonstrated Appendix B4 and Appendix C4, the algorithm employed for the calculation of the chemical composition are conservative; that is illustrated Fig. 4 (click here) panel (f), where the local departure from the mean value of the number of baryons, tex2html_wrap_inline5539 is plotted; ni and Ai are, respectively, the baryonic number and the atomic weight of Xi. As seen, the conservation of the number of baryon is ensured within the machine accuracy except at LMR, due to the mixing which is not made with so high numerical accuracy (see Sect. 3.3.2 (click here)) and, also to the displacement of the LMR.

  figure1211
Figure 6: Evolutionary tracks of two tex2html_wrap_inline5547 models computed with low (dotted) and super (full) accuracy from PMS initial conditions to the onset of the tex2html_wrap_inline4670 cycle. Large time steps are responsible of the angular behavior of the solution of low accuracy; the two tracks do not significantly differ, they are superimposed on the main sequence

5.4. Discontinuities

  Figure 5 (click here) illustrates the ability to restore the solution at any location, even with discontinuous functions. Due to the convective mixing, in a stellar model taking diffusion into account the gradient of the mean molecular weight (here noted tex2html_wrap_inline5095) and the quantity:
displaymath5555
are discontinuous at LMR - tex2html_wrap_inline5527, difference between two gradients, is equivalent to a second derivative - tex2html_wrap_inline5561 is the adiabatic exponent. In the neighbourhood of the LMR of a modelgif with microscopic diffusion (Michaud & Proffitt 1993), the above discontinuous functions have been derived from the solution, taking advantage of the superconvergence; in Fig. 5 (click here) more than 20 point are inserted between two adjacent grid points. Emphasize is made on the following facts: i) the discontinuity is well marked, ii) in its vicinity, even with jumps, for the diffusion coefficients, as large as thirteen magnitudes, the solution has no oscillation, iii) tex2html_wrap_inline5527, a second derivative, is smooth, iv) a grid point is placed right on the LMR.

5.5. Comparison of evolutionary tracks

  Two models of tex2html_wrap_inline5547 have been evolved starting from PMS to the onset of the 4He burning phase; these two models differ only by the numerical accuracy achieved. The first one, is computed with low accuracy (la), the second with standard accuracy (sa), see Table 1 (click here); the numbers of, time steps, shells at the onsets of PMS, ZAMS, POST and tex2html_wrap_inline4670 cycle burning phase, are given Table 2 (click here). The evolutionary tracks are notably stable, even for the rugged solution obtained with (la); notice also that, on the main sequence, the two tracks are superimposed.

   

(la) (sa)
tex2html_wrap_inline5573 103 137
tex2html_wrap_inline5371 250 270
tex2html_wrap_inline5373 420 460
tex2html_wrap_inline5579 430 480
tex2html_wrap_inline5581 480 530
Table 2: Typical number of shells used in the calculations of tex2html_wrap_inline5547 models with, respectively, low (la) and standard (sa) accuracy


next previous
Up: CESAM: A code

Copyright by the European Southern Observatory (ESO)
web@ed-phys.fr