Skip to content

Conversation

juliasloan25
Copy link
Member

@juliasloan25 juliasloan25 commented Jun 24, 2025

Purpose

Use a TripolarGrid instead of a capped lat/lon grid when constructing an Oceananigans simulation.

closes #1382

To-do

  • construct TripolarGrid instead of LatitudeLongitudeGrid

Notes

  • TripolarGrid constructs a OrthogonalSphericalShellGrid, which also uses lat/lon, so we can still use the same ClimaCore remapper
  • exchanged fields are T, S, LHF, SHF, u, v - only u and v are vectors, and these are already rotated onto the grid in set_from_extrinsic_vectors!

@juliasloan25 juliasloan25 force-pushed the js/tripolar branch 2 times, most recently from c04aad4 to 9194823 Compare June 25, 2025 17:04
long_cc = OC.λnodes(grid, OC.Center(), OC.Center(), OC.Center())
lat_cc = OC.φnodes(grid, OC.Center(), OC.Center(), OC.Center())


# TODO: Go from 0 to Nx+1, Ny+1 (for halos) (for LatLongGrid)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opened an issue for this, so we can track it there instead of in this TODO

@glwagner
Copy link
Member

@juliasloan25 how do I run the coupled simulation ? Is there a way to run it outside the caltech cluster (eg on a GPU system we have at MIT)?

@juliasloan25 juliasloan25 force-pushed the js/tripolar branch 2 times, most recently from 05c6433 to 845571c Compare July 7, 2025 22:25
@juliasloan25 juliasloan25 changed the title construct TripolarGrid use TripolarGrid for Oceananigans sim Jul 30, 2025
@juliasloan25
Copy link
Member Author

@juliasloan25 how do I run the coupled simulation ? Is there a way to run it outside the caltech cluster (eg on a GPU system we have at MIT)?

Sorry I just saw this - I get a lot of Github notifications so they get missed often. We have a docs page on running the coupled simulation. It shows how to run interactively or from the command line. You should be able to run it locally or on a different cluster, and it'll pick up the device to run on automatically (i.e. if a GPU is available it will run on GPU). Let me know if there are problems.

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.

use TripolarGrid with OceananigansSimulation
2 participants