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

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

add engine drag power to databus interface

parent 7c88720d
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,8 @@ namespace TUGraz.VectoCore.Models.Simulation.DataBus
Watt EngineStationaryFullPower(PerSecond angularSpeed);
Watt EngineDragPower(PerSecond angularSpeed);
PerSecond EngineIdleSpeed { get; }
......
......@@ -127,6 +127,11 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
return Engine.EngineStationaryFullPower(angularSpeed);
}
public Watt EngineDragPower(PerSecond angularSpeed)
{
return Engine.EngineDragPower(angularSpeed);
}
public PerSecond EngineIdleSpeed
{
get { return Engine.EngineIdleSpeed; }
......
......@@ -104,6 +104,11 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
return ModelData.FullLoadCurve.FullLoadStationaryTorque(angularSpeed) * angularSpeed;
}
public Watt EngineDragPower(PerSecond angularSpeed)
{
return ModelData.FullLoadCurve.DragLoadStationaryPower(angularSpeed);
}
public PerSecond EngineIdleSpeed
{
get { return ModelData.IdleSpeed; }
......
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