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 a068b125 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

first attempt to fix simulation abort

parent 422d6c48
Branches
Tags
No related merge requests found
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.Diagnostics;
using System.Linq; using System.Linq;
using TUGraz.VectoCommon.Exceptions; using TUGraz.VectoCommon.Exceptions;
using TUGraz.VectoCommon.Utils; using TUGraz.VectoCommon.Utils;
...@@ -366,6 +367,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data.Gearbox ...@@ -366,6 +367,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data.Gearbox
} }
} }
[DebuggerDisplay("nu: {SpeedRatio}, mu: {TorqueRatio}, T_ref: {Torque}")]
public class TorqueConverterEntry public class TorqueConverterEntry
{ {
public double SpeedRatio; public double SpeedRatio;
......
...@@ -196,7 +196,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -196,7 +196,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
Source = this, Source = this,
DeltaFullLoad = 10 * deltaMax, DeltaFullLoad = 10 * deltaMax,
DeltaDragLoad = 10 * deltaMin, DeltaDragLoad = 10 * deltaMin,
TorqueConverterOperatingPoint = dryOperatingPointMax TorqueConverterOperatingPoint = DataBus.DrivingAction == DrivingAction.Brake ? dryOperatingPointMin : dryOperatingPointMax
}; };
} }
...@@ -209,7 +209,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -209,7 +209,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
engineResponse.DragPower - engineResponse.AuxiliariesPowerDemand, engineResponse.DragPower - engineResponse.AuxiliariesPowerDemand,
DataBus.EngineSpeed, outAngularVelocity, _engineInertia, dt, previousPower); DataBus.EngineSpeed, outAngularVelocity, _engineInertia, dt, previousPower);
var maxInputSpeed = VectoMath.Min(ModelData.TorqueConverterSpeedLimit, DataBus.EngineN95hSpeed); var maxInputSpeed = VectoMath.Min(ModelData.TorqueConverterSpeedLimit, DataBus.EngineN95hSpeed);
var lowerInputSpeed = VectoMath.Max(DataBus.EngineIdleSpeed * 1.001, 0.8 * DataBus.EngineSpeed); var lowerInputSpeed = DataBus.DrivingAction == DrivingAction.Brake
? DataBus.EngineIdleSpeed * 1.001
: VectoMath.Max(DataBus.EngineIdleSpeed * 1.001, 0.8 * DataBus.EngineSpeed);
var corrected = false; var corrected = false;
if (operatingPoint.InAngularVelocity.IsGreater(maxInputSpeed)) { if (operatingPoint.InAngularVelocity.IsGreater(maxInputSpeed)) {
operatingPoint = ModelData.FindOperatingPoint(maxInputSpeed, outAngularVelocity); operatingPoint = ModelData.FindOperatingPoint(maxInputSpeed, outAngularVelocity);
......
...@@ -31,7 +31,7 @@ urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.1 E:\QUAM\Workspace\VECTO_quam ...@@ -31,7 +31,7 @@ urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.1 E:\QUAM\Workspace\VECTO_quam
<VocationalVehicle>false</VocationalVehicle> <VocationalVehicle>false</VocationalVehicle>
<SleeperCab>true</SleeperCab> <SleeperCab>true</SleeperCab>
<v2.1:ADAS xsi:type="v2.1:AdvancedDriverAssistantSystemsType"> <v2.1:ADAS xsi:type="v2.1:AdvancedDriverAssistantSystemsType">
<EnginStopStart>false</EnginStopStart> <EngineStopStart>false</EngineStopStart>
<EcoRollWithoutEngineStop>false</EcoRollWithoutEngineStop> <EcoRollWithoutEngineStop>false</EcoRollWithoutEngineStop>
<EcoRollWithEngineStop>false</EcoRollWithEngineStop> <EcoRollWithEngineStop>false</EcoRollWithEngineStop>
<PredictiveCruiseControl>none</PredictiveCruiseControl> <PredictiveCruiseControl>none</PredictiveCruiseControl>
...@@ -43,7 +43,7 @@ urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.1 E:\QUAM\Workspace\VECTO_quam ...@@ -43,7 +43,7 @@ urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.1 E:\QUAM\Workspace\VECTO_quam
</v2.1:TorqueLimits> </v2.1:TorqueLimits>
<Components xsi:type="v2.0:VehicleComponentsType"> <Components xsi:type="v2.0:VehicleComponentsType">
<Engine xmlns="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.0" xsi:type="EngineComponentDeclarationType"> <Engine xmlns="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.0" xsi:type="EngineComponentDeclarationType">
<v2.0:Data id="ENG-gooZah3D" xsi:type="v2.1:EngineDataDeclarationType" xmlns="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.1"> <v2.0:Data id="ENG-gooZah3D" xsi:type="v2.0:EngineDataDeclarationType" xmlns="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.0">
<Manufacturer>Generic Engine Manufacturer</Manufacturer> <Manufacturer>Generic Engine Manufacturer</Manufacturer>
<Model>Generic 40t Long Haul Truck Engine</Model> <Model>Generic 40t Long Haul Truck Engine</Model>
<CertificationNumber>e12*0815/8051*2017/05E0000*00</CertificationNumber> <CertificationNumber>e12*0815/8051*2017/05E0000*00</CertificationNumber>
...@@ -60,7 +60,7 @@ urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.1 E:\QUAM\Workspace\VECTO_quam ...@@ -60,7 +60,7 @@ urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.1 E:\QUAM\Workspace\VECTO_quam
<BFColdHot>1.0000</BFColdHot> <BFColdHot>1.0000</BFColdHot>
<CFRegPer>1.0000</CFRegPer> <CFRegPer>1.0000</CFRegPer>
<CFNCV>1.0000</CFNCV> <CFNCV>1.0000</CFNCV>
<FuelType>NG CI</FuelType> <FuelType>Diesel CI</FuelType>
<FuelConsumptionMap> <FuelConsumptionMap>
<Entry engineSpeed="560.00" torque="-149.00" fuelConsumption="0.00" /> <Entry engineSpeed="560.00" torque="-149.00" fuelConsumption="0.00" />
<Entry engineSpeed="560.00" torque="0.00" fuelConsumption="1256.00" /> <Entry engineSpeed="560.00" torque="0.00" fuelConsumption="1256.00" />
...@@ -2600,7 +2600,7 @@ urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.1 E:\QUAM\Workspace\VECTO_quam ...@@ -2600,7 +2600,7 @@ urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.1 E:\QUAM\Workspace\VECTO_quam
</Signature> </Signature>
</Gearbox> </Gearbox>
<TorqueConverter xmlns="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.0" xsi:type="TorqueConverterComponentDeclarationType"> <TorqueConverter xmlns="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.0" xsi:type="TorqueConverterComponentDeclarationType">
<Data id="tc-123xyz" xsi:type="TorqueConverterDeclarationDataType"> <Data id="tc-123xyz" xsi:type="TorqueConverterDataDeclarationType">
<Manufacturer>Some Manufacturer</Manufacturer> <Manufacturer>Some Manufacturer</Manufacturer>
<Model>Some Model</Model> <Model>Some Model</Model>
<CertificationNumber>e12*0815/8051*2017/05E0000*00</CertificationNumber> <CertificationNumber>e12*0815/8051*2017/05E0000*00</CertificationNumber>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment