Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

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

combustionEngine: removed check for 'above full-load and below drag-load'

parent bd2868a6
No related branches found
No related tags found
No related merge requests found
......@@ -28,20 +28,20 @@ Namespace Pneumatics
''' <remarks>Single</remarks>
Function GetFlowRate(ByVal rpm As Double) As Single
''' <summary>
''' Returns mechanical power at rpm when compressor is on
''' </summary>
''' <param name="rpm">compressor rotation speed</param>
''' <returns></returns>
''' <remarks>Single</remarks>
''' <summary>
''' Returns mechanical power at rpm when compressor is on
''' </summary>
''' <param name="rpm">compressor rotation speed</param>
''' <returns></returns>
''' <remarks>Single</remarks>
Function GetPowerCompressorOn(ByVal rpm As Double) As Single
''' <summary>
''' Returns mechanical power at rpm when compressor is off
''' </summary>
''' <param name="rpm">compressor rotation speed</param>
''' <returns></returns>
''' <remarks>Single</remarks>
''' <summary>
''' Returns mechanical power at rpm when compressor is off
''' </summary>
''' <param name="rpm">compressor rotation speed</param>
''' <returns></returns>
''' <remarks>Single</remarks>
Function GetPowerCompressorOff(ByVal rpm As Double) As Single
'Returns Average Power Demand Per Compressor Unit FlowRate
......
......@@ -174,7 +174,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var auxTorqueDemand = EngineAux == null
? 0.SI<NewtonMeter>()
: EngineAux.PowerDemand(absTime, dt, CurrentState.EngineTorqueOut, CurrentState.EngineTorqueOut + CurrentState.InertiaTorqueLoss, angularVelocity, dryRun);
: EngineAux.PowerDemand(absTime, dt, CurrentState.EngineTorqueOut,
CurrentState.EngineTorqueOut + CurrentState.InertiaTorqueLoss, angularVelocity, dryRun);
// compute the torque the engine has to provide. powertrain + aux + its own inertia
var totalTorqueDemand = torqueOut + auxTorqueDemand + CurrentState.InertiaTorqueLoss;
......@@ -212,7 +213,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
if (
(deltaFull * avgEngineSpeed).IsGreater(0.SI<Watt>(), Constants.SimulationSettings.LineSearchTolerance) &&
(deltaDrag * avgEngineSpeed).IsSmaller(0.SI<Watt>(), Constants.SimulationSettings.LineSearchTolerance)) {
throw new VectoSimulationException(
//throw new VectoSimulationException(
Log.Error(
"Unexpected condition: requested torque_out is above gearbox full-load and engine is below drag load! deltaFull: {0}, deltaDrag: {1}",
deltaFull, deltaDrag);
}
......
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