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

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

EM and IEPC: write cont. power in kW to MRF

parent 18657da6
No related branches found
Tags Build/v0.7.4.2351_Multistage
No related merge requests found
......@@ -11,6 +11,7 @@ using TUGraz.VectoCommon.InputData;
using TUGraz.VectoCommon.Models;
using TUGraz.VectoCommon.Resources;
using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.Utils;
namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport.ManufacturerReport_0_9.ManufacturerReportXMLTypeWriter.Components
{
......@@ -48,9 +49,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport.
: null,
new XElement(_mrf + "MaxContinuousPower",
(electricMotorVoltageLevel.ContinuousTorque *
electricMotorVoltageLevel.ContinuousTorqueSpeed).ConvertToKiloWatt()
.ToXMLFormat(0)));
electricMotorVoltageLevel.ContinuousTorqueSpeed).ConvertToKiloWatt().ToXMLFormat(0)));
voltageLevels.Add(voltageLevel);
}
......
......@@ -7,6 +7,7 @@ using System.Xml.Linq;
using TUGraz.VectoCommon.InputData;
using TUGraz.VectoCommon.Resources;
using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.Utils;
namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport.ManufacturerReport_0_9.ManufacturerReportXMLTypeWriter.Components
{
......@@ -38,7 +39,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport.
: new XAttribute("voltage", electricMotorVoltageLevel.VoltageLevel.ToXMLFormat(0)),
new XElement(_mrf + "MaxContinuousPower",
(electricMotorVoltageLevel.ContinuousTorque * electricMotorVoltageLevel.ContinuousTorqueSpeed)
.ToXMLFormat(0)));
.ConvertToKiloWatt().ToXMLFormat(0)));
voltageLevels.Add(voltageLevel);
......
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