diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ElectricMotor.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ElectricMotor.cs index 6a34b07168860f09fc623e3cab34c1808fb34ed5..37a74e633decde39da65b37db53ef03c7ac28fc5 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ElectricMotor.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ElectricMotor.cs @@ -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; }