Find delta 99 of the boundary layer

조회 수: 5 (최근 30일)
Alexandra McClernon Ownbey
Alexandra McClernon Ownbey 2019년 10월 12일
답변: Star Strider 2019년 10월 12일
I am trying to find the location of delta 99 (99 percent of the max velocity) in my velocity profile in a nozzle. I have the correct delta 99 value for the majority of my nozzle, but am having difficulty finding it near shocks (I understand that equations for boundary layers do not hold at shock/expansion fans).
Below is a snip of a velocity profile (Ux vs. y) near the shock. My current script searches for the first instance from the bottom by searching for when the derivative of Ux is negative and cutting off all points after. The current script finds delta 99 using a max velocity in the red circle. I would like to change the max velocity location to the green circle.
vel.png
There isn't really a max velocity in the green circle, since the derivative is never negative, but ideally, I would like an artificial max velocity at the location show by the arrow below:
tempsnip.png
I would like to do it without knowing any of the values of velocity or height (completely soft coded). I already tried looking at the second derivative in Ux and y, but the grid spacing is so small, there is no noticable difference.
Any suggestions how I can soft code something for this and other profiles similar to this?

채택된 답변

Star Strider
Star Strider 2019년 10월 12일
See if the findchangepts or ischange functions will do what you want. You may need to invert them (plot y vs Ux) for them to work.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by