How can i create efficiency isolines in a compressor map?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
chapuisat
am 12 Sep. 2018
Kommentiert: KOMAL MADAN
am 19 Okt. 2020
I have mass flow, pressure ratio and efficiency values of about 30 points for 3 different rotation speed. I need to plot a compressor map as in the link by using these datas: https://www.uniplot.de/_images/metafiles-compressormap-80.png
I used interp1 with spline as method to create constant rotation speed lines (black lines in link above). And now i need to create efficiency isolines. I tried with different commands(for example; contour, griddata) but it did not work so far.
How can i create efficiency isolines?
3 Kommentare
Akzeptierte Antwort
jonas
am 12 Sep. 2018
This is what I'm getting from the data you uploaded.
%%Load data
rpm{1}=xlsread('data_compressor_map.xlsx','A3:D10');
rpm{2}=xlsread('data_compressor_map.xlsx','A14:D25');
rpm{3}=xlsread('data_compressor_map.xlsx','A29:D33');
data=vertcat(rpm{:});
x=data(:,2)
y=data(:,4)
z=data(:,3)
%%Interpolate on grid
[X,Y]=meshgrid(min(x):.01:max(x),min(y):.01:max(y))
Z=griddata(x,y,z,X,Y)
%%Plot contour
contourf(X,Y,Z);hold on
%%Plot lines
plot([x(1:8);NaN;x(9:20);NaN;x(21:end)],[y(1:8);NaN;y(9:20);NaN;y(21:end)],'-k','linewidth',2)
cb=colorbar

0 Kommentare
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
