Skip to content

Help with shallow water initial height conditions and NaN error. #1788

Discussion options

You must be logged in to vote

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?

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@glwagner
Comment options

@rbenamran
Comment options

@francispoulin
Comment options

@williamtiberio
Comment options

@williamtiberio
Comment options

Answer selected by rbenamran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants