From d5d207dd9d71d97d1e2fecc8cce124f7fb77d89d Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Mon, 29 Aug 2016 15:07:15 +0200 Subject: [PATCH] when disengaged: at gearbox input speed (and torque converter speed) is 0 --- .../VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs | 2 +- .../Models/SimulationComponent/Impl/TorqueConverter.cs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs index b0964c0567..13e8e63da2 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs @@ -246,7 +246,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl var retval = IdleController.Request(absTime, dt, 0.SI<NewtonMeter>(), null); retval.ClutchPowerRequest = 0.SI<Watt>(); - CurrentState.SetState(0.SI<NewtonMeter>(), retval.EngineSpeed, outTorque, outAngularVelocity); + CurrentState.SetState(0.SI<NewtonMeter>(), 0.SI<PerSecond>(), outTorque, outAngularVelocity); TorqueConverter.Locked(CurrentState.InTorque, CurrentState.InAngularVelocity); diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/TorqueConverter.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/TorqueConverter.cs index c78146319c..049b07ec2d 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/TorqueConverter.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/TorqueConverter.cs @@ -148,9 +148,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl var avgOutVelocity = (PreviousState.OutAngularVelocity + CurrentState.OutAngularVelocity) / 2.0; var avgInVelocity = (PreviousState.InAngularVelocity + CurrentState.InAngularVelocity) / 2.0; container[ModalResultField.P_TC_out] = CurrentState.OutTorque * avgOutVelocity; - var tmp = CurrentState.InTorque * avgInVelocity - - CurrentState.OutTorque * avgOutVelocity; - container[ModalResultField.P_TC_loss] = tmp; + container[ModalResultField.P_TC_loss] = CurrentState.InTorque * avgInVelocity - + CurrentState.OutTorque * avgOutVelocity; } protected override void DoCommitSimulationStep() -- GitLab