Closed yohad closed 2 years ago
The way you’ve entered your equations, with all terms on the RHS, means that all terms will be integrated explicitly. When this is done with stiff terms like the Laplacian terms in your equations, the timestepping will be very unstable. Please take a look at the tutorial notebooks and the formulations of the example problems for more info, and ask on the mailing list in the future for help with problem formulations.
I'm running the following code
The axis are
RealFourier
so I would have periodic BC on all sides. When running I get the following error:The equations are taken from a paper and I'm very sure they are correct.
I watched the values getting fed into the above line and I could see that average value of
arg0
andarg1
grew very fast. Also, after the error, the data is NaN.The problem disappears when I set the initial state of the variables to be constant.
I would like some help understanding what's going wrong here