Help with shallow water initial height conditions and NaN error. #1788
-
Hi, Here is the animation : Simple.Gaussian.Height3.mp4and the code:
Thanks in advance for any help understanding this! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
If you don't have a Coriolis force initially, then you will always get that an initial bump in height will fall. If you use a coriolis force and choose the velocity in geostrophic balance, then you can get a vortex, that will be a steady solution to the nonlinear steady equations. As for the |
Beta Was this translation helpful? Give feedback.
If you don't have a Coriolis force initially, then you will always get that an initial bump in height will fall. If you use a coriolis force and choose the velocity in geostrophic balance, then you can get a vortex, that will be a steady solution to the nonlinear steady equations.
As for the
NaN
, have you tried to reduce the time step to see if the problem is with the CFL condition, i.e. time step is too big?