-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add support for regional simulations #710
Conversation
37b71f3
to
886fd85
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this PR ready for merge, or do want to add some docs first?
This is also relevant enough to add content to the README.md I believe. We should mention that ClimaLand can be run:
- Standalone of integrated
- At single site/pixel or regionally or globally
@@ -1,7 +1,7 @@ | |||
# # Global bucket run using spatial map albedo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make a different file for a regional experiment?
Since this file is called "global_ ..."
(or rename this file)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I renamed this to bucket_era5
because staticmap
was misleading
Note that PR hardcodes the radius of the Earth in same places, which is not ideal. |
@@ -184,7 +184,9 @@ end | |||
A struct holding the necessary information | |||
to construct a domain, a mesh, a 2d spectral | |||
element space, and the resulting coordinate field. | |||
Note that only periodic domains are currently supported. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to keep this - because in principle, if we turned on lateral flow, we would be using periodic BC
Alternatively we can state that only independent columns are supported currently (no need for BC in the horizontal)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(ClimaCore does not support non-periodic BC, I believe, even for boxes)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a note saying that only "no lateral flow is supported"
"Number of elements to discretize interval, (nx, ny)" | ||
nelements::Tuple{Int, Int} | ||
"Flags for periodic boundaries; only true is supported" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
likewise here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a note saying that only "no lateral flow is supported"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid the hardcoding of R_earth, my only thought would be that we could adjust Plane
as you have it, but instead make a RegionalDomain
type (akin to HybridBox
, which we would then leave untouched - except with longlat=nothing
passed to Plane
in the constructor) which takes the same arguments as HybridBox
except additional R_earth and longlat
I made |
dbb3ab2
to
3e5683d
Compare
[skip ci][ci skip] To be written
Using ClimaUtilities 0.1.11 which should be faster
This PR adds support for regional simulations, box simulations centered around a specific long/lat. Regional simulations are useful for all sorts of reasons, including debugging. Here, I use the fact that there is no later information exchange and set up a box domain.
Closes #709