Dear Dedalus community,
I am interested in using Dedalus v3 to a research problem in which accuracy plays an important role. So I have been trying to understand how accurate the tau method is.
By applying the tau method, one solves approximate equations. Interpreting the tau terms as residuals of those equations, I understand that a necessary condition for an accurate solution is the output of small magnitude taus. However, taking the Rayleigh Benard script as an example, with the given resolution Nx,Nz = 256,64, the tau terms are far from small. In the graph below, I plot the L^\infty norm along time for all the tau terms, and also the same norm for the divergence of the velocity field, which is supposed to be incompressible. As the results show, the only tau term which remains within machine error is the tau_p for the pressure gauge, while the others display high magnitude. As a consequence, the equations present large residuals. We can see that the divergence of the velocity field reaches a maximum of approximately 0,23, which is quite unacceptable for my purposes.
By playing with the resolution, I found that the tau terms have lower magnitude if I increase the ratio between Nz to Nx. In the case Nx,Nz = 64,256, the tau terms present better results, even though the initialization of the flow is still bad.
Surprisingly, the previous situation does not get better if I increase the x resolution, say to Nx,Nz = 256,256.
So I would like to ask: how to control the errors when applying the tau method? Is there a way to guarantee that they are indeed small and the equations are well satisfied? Is there a systematic study about accuracy or convergence of this method with respect to resolution?
I am attaching below the graphs I mentioned above and the script as well.
Thank you very much for any help or shared experience!
Best regards,
Ciro Campolina