Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 3692d9d0 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

add warning message if em overload buffer is negative

parent b8717386
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
.ElectricalPower;
var peakPwrLoss = -peakElPwr + ModelData.ContinuousPowerSpeed * maxTqDrive; // losses need to be positive
OverloadBuffer = (peakPwrLoss - ContinuousPowerLoss) * ModelData.OverloadTime;
if (OverloadBuffer.IsSmallerOrEqual(0) && !(container is SimplePowertrainContainer)) {
Log.Error("Overload buffer for thermal de-rating is negative! Please check electric motor data!");
}
}
public PowertrainPosition Position { get; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment