CFL With Terrain - #3824
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR resolves #3656. Additionally, and more importantly, it modifies the CFL constraint to be terrain aware. Consider the map for terrain following coordinates:

And linearize the set of equations

Employing the gradient and divergence relations for terrain, we may evaluate the flux Jacobian matrix and its eigenvalues:

The eigenvalues then yield the CFL constraint of:

NOTE: The tridiagonal solve will remove second order vertical derivatives, see g^{33}, in the metric tensor above. Therefore, the above relation may be further simplified and it will indeed increase the
\delta testimate. That closure has been implemented ONLY for substepping.This write up demonstrates that the contravariant velocity omega must be used for the CFL estimation along with terrain metric terms. Finite
u/vwill dominateomegaand may control the max stable time step. Additionally, steep terrain will also impact the max stable time step and no amount of implicit substepping will completely alleviate that since the implicit tridiagonal solve only alleviates second order vertical derivative terms and cross derivative terms still persist.