Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

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

Pull request #230: bugfix saving gearbox file for iepc, bugfix busaux parameters file fir iepc

Merge in VECTO/vecto-dev from VECTO/mq_vecto-dev:bugfix/VECTO-1576-iepc-implementation to develop

* commit 'b9c59515':
  bugfix saving gearbox file for iepc, bugfix busaux parameters file fir iepc
parents 0f889632 b9c59515
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ Make and Model ...@@ -24,7 +24,7 @@ Make and Model
: Free text defining the gearbox model, type, etc. : Free text defining the gearbox model, type, etc.
Inertia \[kgm²\] Inertia \[kgm²\]
: Rotational inertia of the gearbox (constant for all gears). (Engineering mode only) : Rotational inertia of the electric machine at the output shaft of the EM. (Engineering mode only)
Gears Gears
: Gear ratios of the transmission steps of the IEPC : Gear ratios of the transmission steps of the IEPC
...@@ -48,7 +48,7 @@ Thermal Overload Recovery Factor ...@@ -48,7 +48,7 @@ Thermal Overload Recovery Factor
: The accumulated overload energy has to be below the max. overload capacity multiplied by this factor so that the peak power is available again. : The accumulated overload energy has to be below the max. overload capacity multiplied by this factor so that the peak power is available again.
Drag Torque Curve Drag Torque Curve
: The motor's drag torque over engine speed when the motor is not energized. The torque values in the drag curve have to be negative. (see [IEPO Drag Curve File (.viepcd)](#iepc-drag-curve-file-.viepcd)) : The motor's drag torque over engine speed when the motor is not energized. The torque values in the drag curve have to be negative. (see [IEPC Drag Curve File (.viepcd)](#iepc-drag-curve-file-.viepcd))
Max. Drive and Max. Generation Torque Curve Max. Drive and Max. Generation Torque Curve
: Torque over engine speed the electric motor can apply on its output shaft. (see [IEPC Max Torque File (.vemp)](#iepc-max-torque-file-.viepcp)). The max drive and max generation torque have to be provided for two different voltage levels. : Torque over engine speed the electric motor can apply on its output shaft. (see [IEPC Max Torque File (.vemp)](#iepc-max-torque-file-.viepcp)). The max drive and max generation torque have to be provided for two different voltage levels.
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
Imports System.IO Imports System.IO
Imports System.Linq Imports System.Linq
Imports TUGraz.VECTO.Input_Files
Imports TUGraz.VectoCommon.InputData Imports TUGraz.VectoCommon.InputData
Imports TUGraz.VectoCommon.Models Imports TUGraz.VectoCommon.Models
Imports TUGraz.VectoCommon.Utils Imports TUGraz.VectoCommon.Utils
...@@ -66,6 +67,7 @@ Public Class BusAuxiliariesEngParametersForm ...@@ -66,6 +67,7 @@ Public Class BusAuxiliariesEngParametersForm
select case JobType select case JobType
case VectoSimulationJobType.BatteryElectricVehicle: case VectoSimulationJobType.BatteryElectricVehicle:
case VectoSimulationJobType.IEPC_E:
bgPneumaticSystem.Enabled = False bgPneumaticSystem.Enabled = False
gbHVAC.Enabled = False gbHVAC.Enabled = False
cbES_HEVREESS.Checked = True cbES_HEVREESS.Checked = True
...@@ -262,7 +264,12 @@ Public Class BusAuxiliariesEngParametersForm ...@@ -262,7 +264,12 @@ Public Class BusAuxiliariesEngParametersForm
busAuxParams.DCDCEfficiency = tbDCDCEff.Text.ToDouble(0) busAuxParams.DCDCEfficiency = tbDCDCEff.Text.ToDouble(0)
busAuxParams.SupplyESFromHEVREESS = cbES_HEVREESS.Checked busAuxParams.SupplyESFromHEVREESS = cbES_HEVREESS.Checked
if (JobType = VectoSimulationJobType.IEPC_E OrElse JobType = VectoSimulationJobType.BatteryElectricVehicle) then
busAuxParams.CompressorMap = Nothing
Else
busAuxParams.CompressorMap = new SubPath()
busAuxParams.PathCompressorMap = tbCompressorMap.Text busAuxParams.PathCompressorMap = tbCompressorMap.Text
End If
busAuxParams.AverageAirDemand = tbAverageAirDemand.Text.ToDouble(0) busAuxParams.AverageAirDemand = tbAverageAirDemand.Text.ToDouble(0)
busAuxParams.GearRatio = tbCompressorRatio.Text.ToDouble(0) busAuxParams.GearRatio = tbCompressorRatio.Text.ToDouble(0)
busAuxParams.SmartCompression = cbSmartCompressor.Checked busAuxParams.SmartCompression = cbSmartCompressor.Checked
......
...@@ -89,7 +89,7 @@ Public Class GearboxForm ...@@ -89,7 +89,7 @@ Public Class GearboxForm
Else Else
CbGStype.DataSource = [Enum].GetValues(GetType(GearboxType)) _ CbGStype.DataSource = [Enum].GetValues(GetType(GearboxType)) _
.Cast(Of GearboxType)() _ .Cast(Of GearboxType)() _
.Where(Function(type) type.ManualTransmission() OrElse type.AutomaticTransmission() OrElse type = GearboxType.IHPC) _ .Where(Function(type) type.ManualTransmission() OrElse type.AutomaticTransmission() OrElse type = GearboxType.IHPC OrElse type = GearboxType.IEPC) _
.Select(Function(type) New With {Key .Value = type, .Label = type.GetLabel()}).ToList() .Select(Function(type) New With {Key .Value = type, .Label = type.GetLabel()}).ToList()
End If End If
DeclInit() DeclInit()
......
...@@ -72,7 +72,7 @@ Public Class BusAuxEngineeringParams ...@@ -72,7 +72,7 @@ Public Class BusAuxEngineeringParams
writer.SaveBusAuxEngineeringParameters(Me, _filePath, Cfg.DeclMode) writer.SaveBusAuxEngineeringParameters(Me, _filePath, Cfg.DeclMode)
Catch ex As Exception Catch ex As Exception
MsgBox("Failed to write Strategy Parameters file: " + ex.Message) MsgBox("Failed to write auxiliary parameters file: " + ex.Message)
Return False Return False
End Try End Try
Return True Return True
......
...@@ -43,6 +43,7 @@ namespace TUGraz.VectoCommon.Models ...@@ -43,6 +43,7 @@ namespace TUGraz.VectoCommon.Models
ATPowerSplit, ATPowerSplit,
APTN, // Automatic Power Transmission - No Torque Converter APTN, // Automatic Power Transmission - No Torque Converter
IHPC, // Integrated Hybrid Powertrain Component - Transmission part IHPC, // Integrated Hybrid Powertrain Component - Transmission part
IEPC, // not a real gearbox type, only used for GUI and validation
DrivingCycle, DrivingCycle,
NoGearbox NoGearbox
} }
...@@ -58,6 +59,7 @@ namespace TUGraz.VectoCommon.Models ...@@ -58,6 +59,7 @@ namespace TUGraz.VectoCommon.Models
case GearboxType.ATPowerSplit: return "Automatic Transmission - PowerSplit (AT-P)";//todo mk20211210 shouldn't we call it APT-P? case GearboxType.ATPowerSplit: return "Automatic Transmission - PowerSplit (AT-P)";//todo mk20211210 shouldn't we call it APT-P?
case GearboxType.APTN: return "Automatic Transmission - No Torque Converter (APT-N)"; case GearboxType.APTN: return "Automatic Transmission - No Torque Converter (APT-N)";
case GearboxType.IHPC: return "IHPC Transmission"; case GearboxType.IHPC: return "IHPC Transmission";
case GearboxType.IEPC: return "IEPC Transmission - dummy entry";
case GearboxType.DrivingCycle: return "Gear from Driving Cycle"; case GearboxType.DrivingCycle: return "Gear from Driving Cycle";
default: throw new ArgumentOutOfRangeException("GearboxType", type, null); default: throw new ArgumentOutOfRangeException("GearboxType", type, null);
} }
......
...@@ -1153,7 +1153,9 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON ...@@ -1153,7 +1153,9 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
} }
if (Body[JsonKeys.Vehicle_GearboxFile] != null && !string.IsNullOrWhiteSpace(Body[JsonKeys.Vehicle_GearboxFile].Value<string>())) { if (Body[JsonKeys.Vehicle_GearboxFile] != null && !string.IsNullOrWhiteSpace(Body[JsonKeys.Vehicle_GearboxFile].Value<string>())) {
AxleGear = ReadGearbox() as IAxleGearInputData; //AxleGear = ReadGearbox() as IAxleGearInputData;
Gearbox = ReadGearbox(); // gearbox is not used, but required by GUI
AxleGear = Gearbox as IAxleGearInputData;
} }
} }
......
...@@ -316,6 +316,16 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter ...@@ -316,6 +316,16 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
} }
retVal.ATEcoRollReleaseLockupClutch = adas != null && adas.EcoRoll != EcoRollType.None && retVal.Type.AutomaticTransmission() ? adas.ATEcoRollReleaseLockupClutch.Value : false; retVal.ATEcoRollReleaseLockupClutch = adas != null && adas.EcoRoll != EcoRollType.None && retVal.Type.AutomaticTransmission() ? adas.ATEcoRollReleaseLockupClutch.Value : false;
if (retVal.Type == GearboxType.IEPC) {
if (gearbox.Gears.Count > 0) {
throw new VectoSimulationException("No gears are allowed for IEPC gearbox.");
}
retVal.Inertia = 0.SI<KilogramSquareMeter>();
retVal.TractionInterruption = 0.SI<Second>();
return retVal;
}
//var gears = gearbox.Gears; //var gears = gearbox.Gears;
if (gearbox.Gears.Count < 2) { if (gearbox.Gears.Count < 2) {
throw new VectoSimulationException("At least two Gear-Entries must be defined in Gearbox!"); throw new VectoSimulationException("At least two Gear-Entries must be defined in Gearbox!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment