Elvas Tower: Question about OpenRails code, why is maxPowerW multiplied twice by t? - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Question about OpenRails code, why is maxPowerW multiplied twice by t? Rate Topic: -----

#1 User is offline   Trains4Ever 

  • Apprentice
  • Group: Status: Switchman
  • Posts: 17
  • Joined: 26-February 18
  • Gender:Male
  • Simulator:OpenRails
  • Country:

Posted 02 March 2018 - 10:25 AM

Hi,

I am spitting through the OpenRails source and found this:
float maxForceN = MaxForceN * t;
float maxPowerW = MaxPowerW * t * t;

MSTSLocomotive.cs, at line 1422.
And my question is, why is maxPowerW multiplied twice by the throttle value?(where maxForceN is only multiplied once)
Can someone explain that?


Thanks

#2 User is offline   dajones 

  • Open Rails Developer
  • Group: Status: Contributing Member
  • Posts: 413
  • Joined: 27-February 08
  • Gender:Male
  • Location:Durango, CO
  • Country:

Posted 02 March 2018 - 11:09 AM

That is correct for a typical diesel electric. Here is a quote from page 255 of the Handbook of Railway Vehicle Dynamics edited by Simon Iwnicki: "It will also be noticed that because the control is a current reference, the power curve is proportional to the square of the throttle notch."

Doug

#3 User is offline   Trains4Ever 

  • Apprentice
  • Group: Status: Switchman
  • Posts: 17
  • Joined: 26-February 18
  • Gender:Male
  • Simulator:OpenRails
  • Country:

Posted 02 March 2018 - 01:21 PM

View Postdajones, on 02 March 2018 - 11:09 AM, said:

That is correct for a typical diesel electric. Here is a quote from page 255 of the Handbook of Railway Vehicle Dynamics edited by Simon Iwnicki: "It will also be noticed that because the control is a current reference, the power curve is proportional to the square of the throttle notch."

Doug


Thanks!
That explains it.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users