How do I create a BSFC contour map?

조회 수: 17 (최근 30일)
Jack
Jack 2015년 3월 30일
편집: Udaya kumar Manogarane 2018년 5월 14일
Hi,
I've managed to create a 3D plot using BSFC, speed and BMEP data:
figure
plot3(speed,BMEP,BSFC)
tri = delaunay(speed,BMEP);
h = trisurf(tri,speed,BMEP,BSFC);
shading interp
colorbar
I would however like to create a simple 2D contour map using the same data and have been unsuccessful. Can any one help?
The data used is:
speed = [1200 2400 2400 2400 3000 1800 1800];
BMEP = [1.70 1.30 2.55 4.22 4.99 4.25 1.71];
BSFC=[ 0.2927 0.3278 0.2530 0.2056 0.1834 0.2171 0.3224]
Any help would be appreciated.
  댓글 수: 2
John D'Errico
John D'Errico 2015년 3월 30일
Please do not do this. it makes this question useless for anyone to learn from.
Rena Berman
Rena Berman 2017년 1월 12일
(Answers Dev) Restored question.

댓글을 달려면 로그인하십시오.

채택된 답변

Chad Greene
Chad Greene 2015년 3월 30일
How's this? It uses John D'Errico's gridfit function.
% Input data:
speed = [1200 2400 2400 2400 3000 1800 1800];
BMEP = [1.70 1.30 2.55 4.22 4.99 4.25 1.71];
BSFC=[ 0.2927 0.3278 0.2530 0.2056 0.1834 0.2171 0.3224];
% Create gridded data:
speedgrid = linspace(min(speed),max(speed),50);
BMEPgrid = linspace(min(BMEP),max(BMEP),50);
BSFCgrid = gridfit(speed,BMEP,BSFC,speedgrid,BMEPgrid);
% Plot:
contour(speedgrid,BMEPgrid,BSFCgrid)
hold on
plot(speed,BMEP,'r*','markersize',12)
legend('contours','data points')
  댓글 수: 3
Chad Greene
Chad Greene 2017년 10월 27일
You must download gridfit from the File Exchange site.
Udaya kumar Manogarane
Udaya kumar Manogarane 2018년 5월 14일
편집: Udaya kumar Manogarane 2018년 5월 14일
I have the same doubt. I have my Rpm, Torque(Nm),BSFC(g/kwh). I used the gridfit code as well, which you attached in the above commment.But at the end, i am not getting my BSFC curve. I have attached my BSFC map. I dont know, why it look like worse or not similar like a normal BSFC map. Can anyone give me a solution for this.Thanks in advance

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by