Elvas Tower: Cylinder steam usage. - Elvas Tower

Jump to content

Posting Rules

All new threads will be started by members of the Open Rails team, Staff, and/or Admins. Existing threads started in other forums may get moved here when it makes sense to do so.

Once a thread is started any member may post replies to it.
  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Cylinder steam usage. Rate Topic: -----

#21 User is offline   rdamurphy 

  • Open Rails Developer
  • Group: Private - Open Rails Developer
  • Posts: 1,199
  • Joined: 04-May 06
  • Gender:Male
  • Location:Thornton, CO
  • Simulator:MSTS - OR
  • Country:

Posted 23 September 2013 - 11:51 PM

View Postcopperpen, on 05 September 2013 - 03:57 AM, said:


In the SteamLocomotive.cs there is a line dealing with steam usage

SteamUsageFactor = 2 * NumCylinders * 3.281f * CylinderDiameterM / 2 * 3.281f * CylinderDiameterM / 2 * 3.281f * CylinderStrokeM / (2 * DriverWheelRadiusM)



There's a rather obvious error in this formula: Every value is converted from metric to feet except for DriversWheelRadiusM - which is in meters (hence the "m".

In addition, each cylinder fills twice and makes 2 power strokes for every revolution of the wheel. Is that why there's a 2 * before DriverWheelRadiusM?

I think that this could be much better written, much more clearly:

And the formula for the volume of a cylinder is PI * Radius^2 * Height.

SteamUsageFactor = 4 * (NumCylinders * ( Math.Pi * ( 3.281f * CylinderDiameterM /2 ) * ( 3.281f * CylinderDiameterM / 2 ) ) * ( 3.281f * CylinderStrokeM )) / DriverWheelRadiusM * 3.281f;

And, yes, I know this code won't compile, Math.Pi must be cast...

Robert

#22 User is offline   rdamurphy 

  • Open Rails Developer
  • Group: Private - Open Rails Developer
  • Posts: 1,199
  • Joined: 04-May 06
  • Gender:Male
  • Location:Thornton, CO
  • Simulator:MSTS - OR
  • Country:

Posted 24 September 2013 - 12:06 AM

Just for grins, I changed this equation in OR, and the results were amazing! I could start the Berkshire with about 50% cutoff and 50% throttle with nothing on the drawbar, and drop the throttle almost immediately back to 30% and steam usage dropped quickly below generation.

I believe someone's working on this, I'll send them a message and see if they want to try this...

Robert

#23 User is offline   Lindsayts 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,849
  • Joined: 25-November 11
  • Gender:Male
  • Country:

Posted 24 September 2013 - 12:10 PM

View Postrdamurphy, on 23 September 2013 - 11:51 PM, said:

There's a rather obvious error in this formula: Every value is converted from metric to feet except for DriversWheelRadiusM - which is in meters (hence the "m".

In addition, each cylinder fills twice and makes 2 power strokes for every revolution of the wheel. Is that why there's a 2 * before DriverWheelRadiusM?

I think that this could be much better written, much more clearly:

And the formula for the volume of a cylinder is PI * Radius^2 * Height.

SteamUsageFactor = 4 * (NumCylinders * ( Math.Pi * ( 3.281f * CylinderDiameterM /2 ) * ( 3.281f * CylinderDiameterM / 2 ) ) * ( 3.281f * CylinderStrokeM )) / DriverWheelRadiusM * 3.281f;

And, yes, I know this code won't compile, Math.Pi must be cast...

Robert



Thats not an error (I think) SteamUsageFactor is the volume of the cylinder in cubic feet used per __metre__ of the travel of the machine see line 582 and 545. The variable "speed" is in metres/sec.

Lindsay

  • 3 Pages +
  • 1
  • 2
  • 3
  • 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