          Astron. Astrophys. 327, 377-387 (1997)

## 3. Numerical procedure and boundary conditions

We solve Eq. (13) numerically subject to boundary conditions at the centre of the sheet, so that one has control over the parity of the solution (kink or sausage). At we take to be zero; the integration range is therefore . Lengths and speeds are normalised against the half-width a of the sheet and the Alfvén speed in the exterior; frequencies are measured in units of . The second order ordinary differential equation (13) is written in terms of two first order equations in the new functions and : such that The boundary conditions at for the kink mode are given by , ; for the sausage mode, and at . The constant c is arbitrary. We impose that is zero at for both modes.

To obtain a solution of the Eq. (13) we use a fixed value of and integrate the two first order equations (22) using the NAG routine D02BEF. The integration is performed between , where proper initial conditions for and are available, and , where the condition must be satisfied. A Newton iteration, with NAG routine C05AXF, is done by changing and integrating from to until the boundary condition at the second point is satisfied. The value of is chosen to be large, typically , except for short wavelengths where it was found that a smaller (e.g. 10a) worked better. For long (short) wavelengths the integration range is wide (narrow), in such a way that the frequencies and eigenfunctions are not affected by the boundaries. On locating a solution to Eq. (13), the velocity is examined in the exterior of the sheet. We consider only those solutions where the velocity decreases to zero outside the sheet, thus imposing an exponentially decreasing solution. We have made a careful comparison (see Smith 1997) of the results produced by this numerical procedure and those obtained analytically for the simpler problem of a magnetic slab (discussed by Edwin et al. 1986) and found excellent agreement, so we are confident that the procedure correctly determines the evanescent modes of a current sheet.    © European Southern Observatory (ESO) 1997

Online publication: April 8, 1998 