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

BUG: Fix turbulence kinetic energy calculation (Fixes #3756) #3757

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

lesserwhirls
Copy link
Contributor

Description Of Changes

As discussed in #3756, the turbulence kinetic energy calculation was incorrectly taking the square root of the squares of the perturbation velocity components. The tests were also updated to use new, non-zero mean velocity components. A new, separate test was added to testing the tke calculation when perturbation velocities were supplied to the function.

Checklist

The turbulence kinetic energy calculation was incorrectly taking the
square root of the squares of the perturbation velocity components.  The
tests were also updated to use new, non-zero mean velocity components. A
new, separate test was added to testing the tke calculation when
perturbation velocities were supplied to the function.
@lesserwhirls lesserwhirls added Type: Bug Something is not working like it should Area: Docs Affects documentation Area: Tests Affects tests Area: Calc Pertains to calculations labels Feb 12, 2025
@lesserwhirls lesserwhirls marked this pull request as ready for review February 12, 2025 21:33
@lesserwhirls lesserwhirls requested a review from a team as a code owner February 12, 2025 21:33
@lesserwhirls lesserwhirls requested review from dcamron and removed request for a team February 12, 2025 21:33
@dopplershift dopplershift added this to the 1.7.0 milestone Feb 12, 2025
@dopplershift dopplershift merged commit ca236e5 into Unidata:main Feb 12, 2025
43 checks passed
@lesserwhirls lesserwhirls deleted the tke branch February 12, 2025 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Calc Pertains to calculations Area: Docs Affects documentation Area: Tests Affects tests Type: Bug Something is not working like it should
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Turbulence kinetic energy calculation
2 participants