-
Notifications
You must be signed in to change notification settings - Fork 9
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 lengthscale functions to mesh and spaces #739
Conversation
d51858e
to
49e5e26
Compare
bors try |
tryBuild failed: |
eef5789
to
068a522
Compare
bors try |
068a522
to
8978a54
Compare
bors try |
tryAlready running a review |
bors try |
c = sqrt(parameters.g * parameters.ρ₀) | ||
D₄ = 0.0015 * c * Spaces.lengthscale(space)^3 # hyperdiffusion coefficient |
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.
@paullric Is this an appropriate way to choose the hyperdiffusion coefficient for the shallow water equations?
Yes that should work for most scales.
… On May 29, 2022, at 10:38 PM, Simon Byrne ***@***.***> wrote:
@simonbyrne commented on this pull request.
In examples/bickleyjet/bickleyjet_cg_invariant_hypervisc.jl <#739 (comment)>:
> + c = sqrt(parameters.g * parameters.ρ₀)
+ D₄ = 0.0015 * c * Spaces.lengthscale(space)^3 # hyperdiffusion coefficient
@paullric <https://github.com/paullric> Is this an appropriate way to choose the hyperdiffusion coefficient for the shallow water equations?
—
Reply to this email directly, view it on GitHub <#739 (review)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABIVPZCYVK6P47HPUYP7B53VMRH6PANCNFSM5XIUEJXA>.
You are receiving this because you were mentioned.
|
bors try |
If using the cubed sphere it depends as well where you measure the min node distance. Shortest distances occur along cubed-sphere edges in the middle, where grid points are roughly sqrt(3)/2 closer together than nodes in the panel center. But if using regional refinement then you need to assess node distance everywhere.
~ Paul
… On May 31, 2022, at 1:27 PM, Valeria Barra ***@***.***> wrote:
@valeriabarra commented on this pull request.
In src/Meshes/Meshes.jl <#739 (comment)>:
>
+The approximate lengthscale of the elements of the mesh.
+"""
+function lengthscale end
In addition to this, I think it will also be important to add the min node distance to facilitate the CFL condition / Courant number calculation
—
Reply to this email directly, view it on GitHub <#739 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABIVPZBYUO6ZYKIQ3LOALHTVMZY4XANCNFSM5XIUEJXA>.
You are receiving this because you were mentioned.
|
8d3b303
to
c2c73f4
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.
LGTM, we may just want to get #1581 in first and rebase this.
I'll go ahead and rebase this cc @simonbyrne |
95438f3
to
1ddb424
Compare
3c8c2a0
to
1c8dae7
Compare
4086441
to
29b3f6b
Compare
@@ -5,7 +5,7 @@ agents: | |||
|
|||
env: | |||
JULIA_LOAD_PATH: "${JULIA_LOAD_PATH}:${BUILDKITE_BUILD_CHECKOUT_PATH}/.buildkite" | |||
JULIA_DEPOT_PATH: "${BUILDKITE_BUILD_PATH}/${BUILDKITE_PIPELINE_SLUG}/depot/default" | |||
# JULIA_DEPOT_PATH: "${BUILDKITE_BUILD_PATH}/${BUILDKITE_PIPELINE_SLUG}/depot/default" |
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.
Just noticed this. Is this intentional?
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.
Sort of..
This will make CliMA/ClimaAtmos.jl#491 easier