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

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

fix: air-drag computation does not rely on vehicle state

parent 82e36776
Branches bugfix/EDELIVERY-13058-upgrade-libraries-and-plugins
No related tags found
No related merge requests found
......@@ -201,7 +201,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
if (vAverage.IsEqual(0)) {
return 0.SI<Newton>();
}
var result = ComputeAirDragPowerLoss(PreviousState.Velocity, PreviousState.Velocity + acceleration * dt, dt) /
var result = ComputeAirDragPowerLoss(previousVelocity, previousVelocity + acceleration * dt, dt) /
vAverage;
Log.Debug("AirDragResistance: {0}", result);
......
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