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

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

update repo

parent 672db9d1
No related branches found
No related tags found
No related merge requests found
......@@ -388,7 +388,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var inAngularVelocity = outAngularVelocity * ModelData.Gears[Gear].Ratio;
if (dryRun) {
if (dryRun) {
var dryRunResponse = NextComponent.Request(absTime, dt, inTorque, inAngularVelocity, true);
dryRunResponse.Gearbox.PowerRequest =
outTorque * (PreviousState.OutAngularVelocity + outAngularVelocity) / 2.0;
......
......@@ -83,8 +83,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var pos = positions.First();
if (pos.IsBatteryElectric()) {
var maxEMSpeed = model.ElectricMachinesData.Find(x => x.Item1 == pos).Item2.FullLoadCurve
.FullLoadEntries.Max(x => x.MotorSpeed); // DataBus.ElectricMotorInfo(pos).MaxSpeed;
var maxEMSpeed = model.ElectricMachinesData.Find(x => x.Item1 == pos).Item2.FullLoadCurve.MaxSpeed;
var ratio = 1.0;
if (pos == PowertrainPosition.BatteryElectricB3) {
ratio = model.AxleGearData.AxleGear.Ratio;
......
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