Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added MultiLayer QG Model. #26

Merged
merged 5 commits into from
Jul 25, 2023
Merged

Added MultiLayer QG Model. #26

merged 5 commits into from
Jul 25, 2023

Conversation

jejjohnson
Copy link
Owner

Added a 3-Layer QG demo (but it can be used with as many layers as needed).

I also ported a lot of useful functions that are more general within the library, e.g.

  • (determinant) Jacobian for advection
  • arbitrary wind forcing + Curl
  • MultiLayer Domain class to help with initializing the matrices.

Here is a demo. I copied the implementation from Louis Thiry (which borrows a lot of inspiration from Q-GCM)
Some stats:

  • 3 layers
  • 3840.0e3m x 4800.0e3m Square Basin
  • 97x121 resolution
  • 350., 750., 2900 - heights
  • 0.025, 0.0125 - reduced gravities
  • constant wind forcing
  • Heun TimeStepper
  • 2 year simulation
  • 1,200 seconds - timestep
  • saved every ~27 days
  • 3 mins 30 secs runtime on my laptop (CPU)

@jejjohnson jejjohnson self-assigned this Jul 12, 2023
@jejjohnson jejjohnson mentioned this pull request Jul 24, 2023
9 tasks
@jejjohnson jejjohnson merged commit 589e454 into main Jul 25, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant