Dear Dedalus developers,
I have encountered a weird problem while trying to calculate three consecutive curls in a ball.
If I define:
A = dist.VectorField (coords, name='A', bases=ball)
A['g'][0] = r**5*np.sin(theta)
and calculate three consecutive curls numerically, I get a weird jump at r = 1.
J2_old = (d3.curl(d3.curl(d3.curl(A)))).evaluate()
Please find a figure attached. The jump gets much worse when I increase the resolution.
It seems that this problem becomes noticeable when I compute the first curl already.
In this case Br and Btheta seems to coincide with their analytical expressions, but the spectral coefficients describing their decomposition into radial basis diverge following ~N.
Please find the script attached.