Davide-sd / pygasflow

Python functions for Quasi-1D Gasdynamics
https://pygasflow.readthedocs.io
GNU General Public License v3.0
22 stars 8 forks source link

Example of Pressure-Deflection Diagram #4

Open Royppp opened 10 months ago

Royppp commented 10 months ago

The example of Pressure-Deflection Diagram in the official website(https://pygasflow.readthedocs.io/en/latest/examples/tut-6.html) maybe wrong about dealing with the relation between pressure ratio 1 and pressure ratio 2: To get the pressure ratio of Mach 2 curve, in aerodynamics,pr_1[idx] and pr_2 maybe should be multiplied together instead of add them together and minus 1?

Davide-sd commented 2 weeks ago

Hello @Royppp ,

sorry for this very late reply. You raise a very good question, which can be rephrased as: what is shown on a pressure-deflection diagram? The obvious answer would be pressure and deflection. However...

...This example was built by following the procedure written in section "4.8 Pressure-Deflection Diagrams" of "Modern Compressible Flow, J.D. Anderson". In particular, I tried to come up with what was shown in Figure 4.22, which on the vertical axis shows the static pressure. But I think that's a typing error: if it really was the static pressure, then the maximum pressure for Mach 2 curve would be higher than the maximum pressure for Mach 1 curve. This situation, however, is not depicted on the plot.

So, I built the plot using the pressure ratio on the vertical axis. Each curve uses the pressure ratio associated to a particular shock wave, without considering previous (upstream) shockwaves. This leads to one interesting aspect of the pressure-deflection diagrams: the biggest curve (in the vertical direction) is the one associate to the first shockwave, with the other one being smaller. Hence, the overall plot is more compact and easier to read. On the other hand, if we were to consider the pressure ratios of upstream shockwaves, each new curve would be bigger (in the vertical axis) than the previous one, which would make the plot more difficult to read.

This, I believe, is a feature of the pressure-deflection diagram which was not stated in the aforementioned section of that book. Note that I self-studied this particular argument, without having the privilege of interacting with any professor. If you are a student at some university, you might want to ask this question to your professor...