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

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

change code to have a brakepoint when tc-loss < 0

parent 218644d3
No related branches found
No related tags found
No related merge requests found
......@@ -148,8 +148,9 @@ 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;
container[ModalResultField.P_TC_loss] = CurrentState.InTorque * avgInVelocity -
CurrentState.OutTorque * avgOutVelocity;
var tmp = CurrentState.InTorque * avgInVelocity -
CurrentState.OutTorque * avgOutVelocity;
container[ModalResultField.P_TC_loss] = tmp;
}
protected override void DoCommitSimulationStep()
......
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