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

Skip to content
Snippets Groups Projects
Commit 0ff94601 authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

fix: use generic alternator efficiency for converting electric power of engine...

fix: use generic alternator efficiency for converting electric power of engine fan to mechanical power
parent 6022d888
No related branches found
No related tags found
No related merge requests found
......@@ -51,8 +51,6 @@ namespace TUGraz.VectoCore.Configuration
public const string Prefix = "AUX_";
public const string PowerPrefix = "P_";
public const double FanElectricToMechanicalEfficiency = 1.05;
public static class IDs
{
public const string PTOTransmission = "PTO_TRANSM";
......
......@@ -32,6 +32,7 @@
using System;
using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.Configuration;
using TUGraz.VectoCore.Models.Declaration;
using TUGraz.VectoCore.Models.SimulationComponent.Data;
namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
......@@ -64,8 +65,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
}
public Watt PowerDemand(Watt fanElectricalPower)
{
return fanElectricalPower * Constants.Auxiliaries.FanElectricToMechanicalEfficiency;
{
return fanElectricalPower / DeclarationData.AlternatorEfficiency;
}
}
......
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