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

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

Merge branch 'develop' of...

Merge branch 'develop' of https://citnet.tech.ec.europa.eu/CITnet/stash/scm/vecto/mq_vecto-sim into develop
parents e37ba447 60b4cd39
No related branches found
Tags Build/v0.7.4.2351_Multistage
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;
}
}
......
......@@ -53,9 +53,9 @@ namespace TUGraz.VectoCore.Tests.Models.SimulationComponent
}
[
TestCase(14, 14.7),
TestCase(28, 29.4),
TestCase(7, 7.35)
TestCase(14, 20),
TestCase(28, 40),
TestCase(7, 10)
]
public void TestEngineFanPowerDemandWithElectricalPower(double fanElectricalPower, double expectedPowerDemand)
{
......
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