Using MaxTractiveForceCurves with Diesel locomotive leads to overloading diesel engine

Bug #1207220 reported by Matej Pacha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
Fix Released
Medium
Matej Pacha

Bug Description

Setting the throttle from zero to full at non-zero speed leads to the diesel engine to be overloaded and than the power cannot be produced.

Solution is simple:

1) extension of DieselEngines class with following properties

MaxPowerW - sum of MaximalPowerW for all the diesel engines on the list
MaxOutputPowerW - sum of MaxOutputPowerW for all the diesel engines on the list

2) adding:

if (t > (DieselEngines.MaxOutputPowerW / DieselEngines.MaxPowerW))
         t = (DieselEngines.MaxOutputPowerW / DieselEngines.MaxPowerW);

before:

MotiveForceN = TractiveForceCurves.Get(t, currentWheelSpeedMpS);
if (MotiveForceN < 0)
        MotiveForceN = 0;

Tags: physics
Changed in or:
assignee: nobody → Matej Pacha (matej-pacha)
status: New → In Progress
Revision history for this message
Matej Pacha (matej-pacha) wrote :

v1703

Changed in or:
status: In Progress → Fix Committed
James Ross (twpol)
Changed in or:
importance: Undecided → Medium
James Ross (twpol)
Changed in or:
milestone: none → 1.0
James Ross (twpol)
Changed in or:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.