Online Material
Appendix A: Benchmarks for the code used
Here we present some benchmark tests for the computer code that we used and show how the crititical dynamo numbers and dynamo periods for the models of Sects. 3.1 and 3.2 converge for an increasing number of modes taken into account.
A.1 Free decay modes
First we test the accuracy of the implementation of the exterior boundary conditions
and the speed of convergence. If we neglect
all the dynamo effects in Eqs. (2) and (3), only simple isotropic
diffusion remains and the equations take the form
where for simplicity the magnetic diffusivity has been assumed to be homogeneous and has been set equal to unity. The equations for the poloidal and toroidal parts of the field are decoupled here. The eigenmodes to Eqs. (A.1) and (A.2) are the free decay modes, exponentially decaying , where the are the eigenvalues of the Laplacian operator for the considered domain under the imposed boundary conditions; these eigenvalues are all real and negative. For the test, we consider the case of a full sphere (rather than a spherical shell) surrounded by vacuum, for which the free decay modes can be determined analytically and are well documented in the literature (see, e.g., Moffatt 1978; Backus et al. 1996). For that purpose, the potential functions A and Bare written as
with
where the radial variable, x, varies in the interval ; the transformation to the variable (cf. Eqs. (21) and (22) in Sect. 2) is not used here. By the choice of the basis functions given by Eqs. (A.5) and (A.6) the exterior vacuum conditions are satisfied and the regularity of the fields at the origin is ensured. This set of basis functions differs from that used in our calculations for the spherical shell, but the general structure of the code and the solution algorithms are not changed.
The dependence of the solutions to Eqs. (A.1) and (A.2) on radius is given analytically in terms of the spherical Bessel functions (where J_{n+1/2} is the ordinary Bessel function of halfinteger order n+1/2), and the decay rates, , are given by the squares of the zeros of the functions j_{n1} for the poloidal and j_{n} for the toroidal modes. The slowest decaying (largest scale) poloidal mode decays with the rate , the slowest decaying toroidal mode with the rate ; the corresponding eigenfunctions are and . These two decay modes are used for the test. The dependences of their potential functions are given by the first terms (with m=1) in the latitudinal expansions on the righthand sides of Eqs. (A.3) and (A.4). (The potential functions A and B differ from the potentials S and T in the poloidaltoroidal decomposition as normally used in nonaxisymmetric cases, see, e.g., Moffatt (1978) and Backus et al. (1996). For our axisymmetric case, one has and . The angular dependence of both S for the slowest decaying poloidal mode and T for the slowest deacaying toroidal mode is given by the spherical surface harmonic , in agreement with the dependences of A and B as given above.)
Table A.1 shows the convergence of the eigenvalues and of the corresponding eigenvectors for our numerical scheme. Similar to Livermore & Jackson (2005), the eigenvectors are scaled so that and , and the errors are measured as and . The number of modes in the radial basis, N, is varied, while in the latitudinal basis just the first mode is taken into account. The convergence is seen to be exponential in both the poloidal and toroidal cases.
Table A.1: Convergence of the eigenvalues and eigenvectors of the slowest decaying poloidal and toroidal modes.
A.2 Test case B of Jouve et al. (2008)
The next test case is taken from Jouve et al. (2008), who presented a comparitative benchmark study of different numerical codes for axisymmetric meanfield solar dynamo models in spherical geometry. Here we consider their test case B, which is a pure dynamo in a spherical shell with sharp gradients of the turbulent magnetic diffusivity and the strength of the effect at the bottom of the convection zone; for details we refer to Jouve et al. (2008). The potential functions A and B are expanded according to Eqs. (21)(26) in Sect. 2, and the integration domain is now radially bounded by at the bottom and at the top.
In Jouve et al. (2008), the strength of the effect is regulated by a dynamo number, . The different codes are compared by indicating in tables the critical effect dynamo number, , at which exponentially growing solutions appear, and the corresponding oscillation frequency, . In addition, butterfly diagrams and the evolution of the fields in the meridional plane are shown. Our values of and for different spectral resolutions are given in Table A.2, and Fig. A.1 shows the temporal evolution of the toroidal and poloidal parts of the field (i.e., of the unstable eigenmode) at the critical dynamo number. The values in Table A.2 are in best agreement with those given in the corresponding table, Table 3, of Jouve et al. (2008). Similarly, the evolution shown in Fig. A.1 is apparently identical to that shown in the corresponding figure, Fig. 7, of Jouve et al. (2008); the same applies to the simulated butterfly diagrams (not shown here).
Figure A.1: As Fig. 6 ( top and middle), but for test case B of Jouve et al. (2008) at the critical effect dynamo number with a spectral resolution of modes. 

Open with DEXTER 
Figure A.2: Convergence of the critical dynamo numbers (left) and associated dynamo periods (right) for the models of Sects. 3.1 and 3.2. N is the total number of modes taken into account. Calculations were done for resolutions of , , , , , , and modes in the radial and latitudinal bases, respectively (in addition, the dipolar symmetry was taken into account, so that the highest latitudinal resolution is actually 50). Solid lines refer to the dynamo model and dashed lines to the dynamo model, and blue color (i.e., the lower/upper curve pair in the left/right panel) corresponds to and red color to . 

Open with DEXTER 
Table A.2: Test case B of Jouve et al. (2008).
A.3 Convergence of crititical dynamo numbers and dynamo periods for the models of Sects. 3.1 and 3.2
Figure A.2 shows the convergence of the critical dynamo numbers (where the first dipolar mode becomes unstable) and associated dynamo periods for the dynamo model considered in Sect. 3.1 and for the dynamo model considered in Sect. 3.2. The amplitude of the meridional flow is and ; is the value we used most, and is the highest meridionalflow amplitude that we considered, corresponding to the largest magnetic Reynolds number in the study. High Reynolds numbers are known to cause numerical problems.
Appendix B: Definitions of the functions f and f
Here we give the definitions of the functions f_{i}^{(a)} and f_{i}^{(d)} that are used in the representation of the turbulent electromotive force
.
For details of the calculations we refer to Pipin (2008).