OpenMDAO / pyCycle

Thermodynamic cycle modeling library, built on top of OpenMDAO
Other
75 stars 51 forks source link

How to visualize a map #65

Open NJC1012 opened 3 weeks ago

NJC1012 commented 3 weeks ago

In the MAP file provided by PYCYCLE, there are five dimensional variables. How can we draw the image like this? If possible, it is best to provide a specific example. Looking forward to your help. thanks!

map
arushkumarsingh commented 3 weeks ago

The input of compressor map is Wc(mass flow corrected), PR(pressure ratio) and efficiency. We need two points to get any point on the map and they could be PR and Wc, but you will get two Wc at one PR. So the concept of Rline was introduced. So we can get any point on map using Rline and Ncline. The third variable is for inlet guide vane angle, so you can input multiple maps for multiple inlet angles.

So three training parametre are Rline, Ncline, alphaline and the trained data are Wc,PR,eff.

You can read the NPSS pdf: https://ntrs.nasa.gov/api/citations/20070018165/downloads/20070018165.pdf to get more info about input format.

arushkumarsingh commented 3 weeks ago

You can input any another map from your side, u can call the functions plot_compressor_maps, plot_turbine_maps from viewer.py to plot your maps.

NJC1012 commented 3 weeks ago

Thank you for your reminder. I already knew the corresponding relationships between the parameters in MAP before, but I didn't see any relevant examples in the viewer.py file, so I don't know how to implement them. If possible, could you provide a specific example of calculating MAP correction for off-design points. I already know the principles and basic concepts, but it is still quite difficult to implement. How can I get in touch with you? Communication is inconvenient here. Thank you!

NJC1012 commented 3 weeks ago

You can input any another map from your side, u can call the functions plot_compressor_maps, plot_turbine_maps from viewer.py to plot your maps.

Thank you for your reminder. I already knew the corresponding relationships between the parameters in MAP before, but I didn't see any relevant examples in the viewer.py file, so I don't know how to implement them. If possible, could you provide a specific example of calculating MAP correction for off-design points. I already know the principles and basic concepts, but it is still quite difficult to implement. How can I get in touch with you? Communication is inconvenient here. Thanks!