Overflow error

67 views
Skip to first unread message

Muhammed Irshad P

unread,
Aug 6, 2022, 3:33:31 AM8/6/22
to Dedalus Users
RuntimeWarning: invalid value encountered in multiply   temp *= 1 / gdata.shape[axis], What is the cause of this error? PFA the code and screenshot of the error. Here u, v, T, D, and b are variables. If you think of any kind of logical error in this code, please point out that also.


Screenshot from 2022-08-06 13-00-19.png
overflow.py

Keaton Burns

unread,
Aug 6, 2022, 8:15:58 AM8/6/22
to dedalu...@googlegroups.com
Hi Muhammad,

This usually happens because your simulation is underresolved in space or time. In this case, it looks like you have no implicit terms to help regularize your equations. Usually you need some form of viscosity or other dissipation / diffusion on the LHS to maintain stability with a spectral method, since there is no numerical diffusion from the grid.

Best,
-Keaton


On Aug 6, 2022 at 3:33:31 AM, Muhammed Irshad P <irshadp...@gmail.com> wrote:
RuntimeWarning: invalid value encountered in multiply   temp *= 1 / gdata.shape[axis], What is the cause of this error? PFA the code and screenshot of the error. Here u, v, T, D, and b are variables. If you think of any kind of logical error in this code, please point out that also.


--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/660fcdc3-98ff-40c5-802e-a0fa1c056db8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages