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

Specialized stencil for kinetic energy #1378

Closed
simonbyrne opened this issue Jul 17, 2023 · 0 comments · May be fixed by #1385
Closed

Specialized stencil for kinetic energy #1378

simonbyrne opened this issue Jul 17, 2023 · 0 comments · May be fixed by #1385
Assignees

Comments

@simonbyrne
Copy link
Member

simonbyrne commented Jul 17, 2023

To improve the performance of kinetic energy evaluation, we could define a specialized stencil operator for computing kinetic energy. i.e. it would take a Covariant12Vector-field on cell centers, and a Covariant3Vector-field on cell faces, and compute the kinetic energy reconstruction as per the atmos docs (https://clima.github.io/ClimaAtmos.jl/dev/equations/)

Would need to define stencil_interior method.

Note that no boundary handling should be necessary (as we set the vertical velocity at the boundaries appropriately)

Usage

K = Operators.KineticEnergyReconstruction()
k .= K.(uₕ,uᵥ)
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 a pull request may close this issue.

2 participants