Dear Dedalus group,
Thank you for the suggestion. Setting the boundary conditions for Bz to be the derivative of Bz=0 does allow the code to run at least for a couple of hours. I haven't run it longer yet.
Here are a couple more questions.
Is it possible to use the ideal induction equation for Bz on the boundary? How would this be written?
This code runs at the moment using a maximum timestep of 1e-4. Increasing this to 1e-3 results in infinite kinetic energy before long.
Any suggestions and advice to improve the stability of this code and in general would be appreciated. In theory I plan to run these simulations for around a simulation time of 400. So a timestep of 1e-4 is going to take a while.
Thank you again,
Erin Goldstraw