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

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

parent 218644d3
Branches
Tags
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 -
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.
Please register or to comment