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

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

correct typo, bugfix in cycle gearbox

parent 5677f599
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
var container = new VehicleContainer(ExecutionMode.Engineering, _modData, _sumWriter) { RunData = data };
var gearbox = new CycleGearbox(container, data);
// PWheelCycle --> AxleGear --> CycleClutch --> Engine <-- Aux
// PWheelCycle --> AxleGear --> Clutch --> Engine <-- Aux
var powertrain = new PWheelCycle(container, data.Cycle, data.AxleGearData.AxleGear.Ratio, data.VehicleData,
gearbox.ModelData.Gears.ToDictionary(g => g.Key, g => g.Value.Ratio))
.AddComponent(new AxleGear(container, data.AxleGearData))
......
......@@ -95,7 +95,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
inAngularVelocity = outAngularVelocity * ModelData.Gears[Gear].Ratio;
var inTorqueLossResult = ModelData.Gears[Gear].LossMap.GetTorqueLoss(outAngularVelocity, outTorque);
CurrentState.TorqueLossResult = inTorqueLossResult;
inTorque = outTorque / ModelData.Gears[Gear].Ratio - inTorqueLossResult.Value;
inTorque = outTorque / ModelData.Gears[Gear].Ratio + inTorqueLossResult.Value;
var torqueLossInertia = outAngularVelocity.IsEqual(0)
? 0.SI<NewtonMeter>()
......
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