MATLAB Filter command for BSFC map

  • Context: MATLAB 
  • Thread starter Thread starter Alex91
  • Start date Start date
  • Tags Tags
    Filter Map Matlab
Click For Summary
SUMMARY

The discussion focuses on creating a Brake-Specific Fuel Consumption (BSFC) map using MATLAB, specifically utilizing the griddata function for interpolation. User Alex successfully generated a contour plot from engine data tested on an eddy current dynamometer. Another user recommends using MATLAB's built-in Curve Fitting Tool for smoother results, highlighting its ease of use with a visual interface for interpolation. This tool is particularly effective for users with modern versions of MATLAB.

PREREQUISITES
  • Familiarity with MATLAB programming and syntax
  • Understanding of BSFC and its significance in engine performance analysis
  • Knowledge of contour plotting techniques in MATLAB
  • Experience with data interpolation methods such as griddata
NEXT STEPS
  • Explore MATLAB's Curve Fitting Tool for data interpolation
  • Learn about MATLAB's filter function for smoothing data plots
  • Investigate advanced contour plotting techniques in MATLAB
  • Study the impact of data density on interpolation accuracy in BSFC maps
USEFUL FOR

This discussion is beneficial for engineers, data analysts, and MATLAB users involved in automotive performance analysis, particularly those working with fuel consumption metrics and data visualization techniques.

Alex91
Messages
6
Reaction score
0
Hi all,

I have made a BSFC plot in MATLAB with engine data tested on an eddie current dyno, The code I used for it is:

>> NP=40;
>> [RP TP]=meshgrid(linspace(min(RPM),max(RPM),NP),linspace(min(Torque),max(Torque),NP));
>> BSFC_IT=griddata(RPM,Torque,BSFC,RP,TP);
>> NC=12;
>> Fig1=figure;
>> [CT HT]=contourf(RP,TP,BSFC_IT,round(logspace(log10(210),log10(400),NC)));
>> colorbar;
>> %clabel(CT,HT);
>> xlabel('Engine Speed (rpm)')
>> ylabel('Torque (Nm)')
>> title('Contours of BSFC (g/kWh)')

With all my data this gave me a contour plot that looks like the image I have attached and this is after fiddling with all of the data to make it look 'pretty'.

I know you can use the filter function to smooth out plots, so my question is, how can I use the filter function to smooth out the curves with the complex code I have?

Any help is much appreciated.

Thanks

Alex
 

Attachments

  • BSFCmap.jpg
    BSFCmap.jpg
    20.7 KB · Views: 1,848
Physics news on Phys.org
Hello, I was working on the same issue. I tried some tools like gridfit and griddata, but the best result was using the curve fitting tool built in Matlab. If you have a modern version it is has a visual interface, you can find it under apps toolstrip. it is so simple you just specify x,y,z data and give good interpolated smooth results, I was able to plot this with only 60 data readings. Hope this helps!
bsfc.png
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
5K