Magnetic field diffusion in 2D and 3D. More...
Sets the initial conditions for a magnetic field diffusion problem in 2 or 3 dimensions. This is a useful test to check the ability of the code to solve standard diffusion problems. The magnetic field has initially a Gaussian profile, and an anisotropic resistivity is possible. This problem has an analytical solution given, in 2D, by
and in 3D by
The initial condition is simply set using the previous profiles with t=1
. In order to solve only the parabolic term in the induction equation ( ) we give to the fluid a very large intertia using a high density value. Moreover, to avoid any fluid motion, the velocity is reset to zero at each time step by using the INTERNAL_BOUNDARY
.
The runtime parameters that are read from pluto.ini
are
g_inputParam[ETAX]
: sets the resistivity along the direction;g_inputParam[ETAY]
: sets the resistivity along the direction;g_inputParam[ETAZ]
: sets the resistivity along the direction; The configurations use both EXPLICIT
and STS
time integrators and different geometries are explored:
Conf. | GEOMETRY | DIM | T.STEPPING | divB | RESISTIVITY |
---|---|---|---|---|---|
#01 | CARTESIAN | 3 | RK2 | 8W | EXPLICIT |
#02 | CARTESIAN | 3 | HANCOCK | GLM | STS |
#03 | CARTESIAN | 3 | RK3 | CT | EXPLICIT |
#04 | CARTESIAN | 3 | HANCOCK | GLM | EXPLICIT |
#05 | POLAR | 3 | RK2 | 8W | EXPLICIT |
#06 | POLAR | 3 | RK2 | 8W | STS |
#07 | SPHERICAL | 3 | RK2 | 8W | EXPLICIT |
#08 | SPHERICAL | 3 | RK2 | 8W | STS |
#09 | SPHERICAL | 3 | RK3 | CT | EXPLICIT |
#10 | CARTESIAN | 2 | HANCOCK | CT | EXPLICIT |
#11 | CARTESIAN | 3 | HANCOCK | CT | EXPLICIT |
#12 | CARTESIAN | 2 | HANCOCK | CT | STS |
#13 | SPHERICAL | 3 | RK2 | CT | STS |