Efficiency map of a car running through the WLTP cycle

6 ビュー (過去 30 日間)
Mansour
Mansour 2025 年 7 月 28 日
回答済み: Umar 2025 年 7 月 28 日
Hello guys,
I'm trying to simulate a heatmap for the efficiency of an electric car's powertrain. I have already visualized the functional points of the WLTP, i.e. the torque required at the wheel, as you can see.
I've already identified the loss mechanisms, and I can calculate the losses for each point (here in this photo). My problem is, how can I visualize the efficiency here? Like a heatmap + constant contours
thank you in advance

回答 (1 件)

Umar
Umar 2025 年 7 月 28 日

Hi @Mansour,

You mentioned, “ I've already identified the loss mechanisms, and I can calculate the losses for each point (here in this photo). My problem is, how can I visualize the efficiency here? Like a heatmap + constant contours

So, to address your comments, I would visualize the efficiency of an electric car's powertrain as a heatmap with constant contours, you can utilize MATLAB's contourf function for filled contour plots and colorbar for indicating efficiency levels. Below is a code snippet that demonstrates how to create such a heatmap based on your torque and loss calculations.

   % Sample data for torque and efficiency
   torque = linspace(0, 300, 100); % Torque values from 0 to 300 Nm
   speed = linspace(0, 150, 100);   % Speed values from 0 to 150 km/h
   [Torque, Speed] = meshgrid(torque, speed);
   % Example efficiency calculation (replace with your actual efficiency function)
   Efficiency = 1 - (Torque.^2 + Speed.^2) / (300^2 + 150^2); 
   % Create the heatmap
   figure;
   contourf(Torque, Speed, Efficiency, 20); % 20 contour levels
   colorbar; % Display color scale
   xlabel('Torque (Nm)');
   ylabel('Speed (km/h)');
   title('Efficiency Heatmap of Electric Car Powertrain');

Please see attached.

So, in above example code provided, replace the efficiency calculation with your specific formula based on the loss mechanisms you have identified. The contourf function will generate a filled contour plot, effectively visualizing the efficiency across different torque and speed combinations. Adjust the number of contour levels as needed to enhance clarity.

Note: please bear in mind that I only have access to Matlab mobile.

Hope this helps.

カテゴリ

Help Center および File ExchangeSources についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by