B grid dynamics#55
Conversation
…aSeaIce.jl into ss/new-thermodynamic-timestep
|
Difference between C-grid and B-grid dynamics in the cyclone case showing the advantage of less interpolation for rheology in the B-grid: C-grid (main) These results are expected and shown in Edit: The resolutions are different! I will produce new plots Down here the videos of the cgrid cyclone case (main) cgrid_anticyclone.mp4and the bgrid case (this PR) bgrid_anticyclone.mp4 |
|
Also, looking at the immersed example https://clima.github.io/ClimaSeaIceDocumentation/previews/PR55/literated/ice_advected_on_coastline/ the behavior is the expected one: given that we have impenetrable conditions on immersed boundaries, there is a small ice block that remains attached downstream the triangular element, in a physical shape. The same is not possible to obtain on c-grid without messing up quite significantly with the rheology and the momentum tendencies |
|
Also noteworthy to mention, on CPUs the b-grid EVP formulation is about twice as fast as the C-grid because it avoids computing the viscosity on both |
|
How do you select B- vs C-grid dynamics? Can you give an example of the user interface + abstractions implemented? |
|
The user interface would not change, only the numerical discretization of the rheology, so the user does not necessarily "see" this change, but has to keep it into account (the u and v are not on edges anymore but on nodes). I think it would be quite messy to allow both B and C grid (it effectively duplicates a lot of the code) so my idea was just stick with one discretization. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #55 +/- ##
==========================================
+ Coverage 70.44% 74.00% +3.55%
==========================================
Files 27 27
Lines 829 777 -52
==========================================
- Hits 584 575 -9
+ Misses 245 202 -43 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This PR will require quite some time because it is experimental and here just for documentation purposes.