I am trying to code up a model of magnetostatic turbulence and am having issues with the build. The paper that I am referring to is titled Anomalous diffusion and Lvy random walk of magnetic field lines in three dimensional turbulence by G. Zimbardo, P. Veltri, G. Basile, and S. Principato. I am following section 3 eqs 16-18. My concern is that having summed over the polarization vectors and a bunch of wavemodes, eq. 16 should be a vector with three components in x,y,z. Mine is not a vector but just a scalar. Am I missing a trick or two?Thanks.
Generating magnetic turbulence spectrum
simulation