Prandtl-Meyer Function Iteration

  • Thread starter Thread starter nanvinnie
  • Start date Start date
  • Tags Tags
    Function
AI Thread Summary
To write a MATLAB code that iterates the Mach value (M) to extract the Prandtl-Meyer function value (nu), the equation provided can be implemented using numerical methods. The equation for nu is defined as nu = sqrt((gamma +1)/(gamma -1))*atan(sqrt((gamma - 1)/(gamma +1)*(M^2-1)))-atan(sqrt(M^2-1)). Since there is no built-in MATLAB function for this specific task without additional toolboxes, using numerical methods like the Newton-Raphson method is recommended. This method allows for finding roots of equations and can be adapted to solve for M given a specific nu value. Resources such as the Wikipedia article on Newton's Method can provide further guidance on implementing this algorithm in MATLAB.
nanvinnie
Messages
2
Reaction score
0
hi.. I'm trying to write a MATLAB code that will iterate the mach value given a certain value for nu.

nu = sqrt((gamma +1)/(gamma -1))*atan(sqrt((gamma - 1)/(gamma +1)*(M^2-1)))-atan(sqrt(M^2-1))

this is the equation for the prandtl-meyer function, but how do i write it in MATLAB so that i can extract the value of nu for a given M value? sort of like the goal seak function in excel...

i would appreciate anyone's help!
 
Physics news on Phys.org
I don't know of any built-in MATLAB function that does this for you (without any additional toolboxes, that is), but that doesn't mean there isn't one...

I would look into something like the Newton-Raphson's method (but there are many others). The wikipedia article on Newton's Method is pretty good, and at the bottom is a list of similar algorithms. It's not difficult to write some algorithm like this for MATLAB.

-Kerry
 

Similar threads

Back
Top