Skip to content

Conversation

@jmcvey3
Copy link
Contributor

@jmcvey3 jmcvey3 commented May 8, 2024

Editing language based on more insight I've gained from reading literature on ADCP Reynolds stress and TKE measurements. The main edits here are to the adcp_example notebook and the removal of the "total_tke" function. I also updated the ADV notebook to cover all the functions

The data you get from ADCPs requires two critical assumptions. 1. There is next to no vertical motion from the time a parcel of water passes through one beam before it passes through another ("assumption of homogeneity" in the lit). 2. One can't make inferences of turbulent scales smaller than the distance between each of the beams.

ADCPs seem to struggle to measure the u'u' and v'v' TKE components because assumption 1 isn't always true. The second assumption renders the total TKE less useful because the information contained in smaller turbulent scales, which might be critical, is lost.

I wrote the function maybe 8 months ago because TKE is one of the parameters our modeling team uses for validating tidal models. I ultimately want to remove it because my experiences with it so far have been quite off from ADV measurements and model output. The debate is still ongoing on how good ADCP estimations are for TKE/Reynolds stresses, but it likely depends on the measurement site.

ADVs don't have either of these problems because they're making a point measurement, and are still considered the de facto "ground truth" when analyzing turbulence data. (Shear probes also fall under this category.) The calc_tke function under the ADVBinner outputs each of the TKE components; it's trivial to add the components together to get total TKE.

@jmcvey3 jmcvey3 requested a review from ssolson May 8, 2024 18:48
Copy link
Contributor

@ssolson ssolson left a comment

Choose a reason for hiding this comment

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

This PR replaces #316

@jmcvey3
Copy link
Contributor Author

jmcvey3 commented May 15, 2024

Some bugfixes for the dudz, dvdz, dwdz functions incoming...

@jmcvey3
Copy link
Contributor Author

jmcvey3 commented Jun 20, 2024

Waiting for the test fixes in the develop branch get completed before merging

@ssolson
Copy link
Contributor

ssolson commented Jun 27, 2024

@jmcvey3 with your last push you are fixing numpy 2.0 issues.

Could you help me out by addressing the remaining failing tests in PR #333?

The Dolfyn tests seem to be hit the hardest by this upgrade. Once we get #333 settled we can move the rest of these PRs forward.

@ssolson ssolson merged commit da22c8e into MHKiT-Software:develop Jul 3, 2024
@jmcvey3 jmcvey3 deleted the tke_update branch July 25, 2024 22:51
@ssolson ssolson mentioned this pull request Aug 12, 2024
ssolson pushed a commit that referenced this pull request Aug 13, 2024
* tke updates

* Fix shear velocity functions

* More detail for tke shear production

* Don't rotate heading beyond 360 degrees

* Fix some typos in notebook

* Rename deprecated function
@ssolson ssolson mentioned this pull request Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants