Sunday, April 9, 2023

I built a train performance calculator

 Yes.  I did.  In Excel.  Piecewise in 1/10th mile increments.

I've always wanted to try to do it.  ...because I am a RR geek.  

But, also, because I've made a lot of noise on the interwebs about "railroads should electrify" among other things, and I need to put up or shut up.

The verdict?  Stay tuned.

But, first, some "how I did it" stuff.

For train resistance, I found a 1992 CN paper that had some Davis equation work that had been validated. So that went in.

For grade resistance, I just used the standard of 20 lbs per ton per percent.

I ignored curve resistance.  I didn't check to see if grades were curve compensated or not.  As curvy as this line is, I'm not sure it would make much of a difference, although it would be easy enough to add in.  Something to save for later.

For tractive force, I used the old HP = force x speed/308 equation with max of 35% adhesion.  Yeah, I know 308 isn't always the right number to use for all locomotives, but is close enough for my purposes.

I had it check to make sure the whole train was through a lower speed spot before speeding up.

I set max deceleration based on dynamic braking with 20% adhesion, but I can adjust it to simulate train braking or coasting or anything in-between. 

I piece-wise integrated the train resistance to calculate the energy in motoring and braking.  Simulating dynamic braking as the maximum, I can assume electric locomotives can regenerate/recover.

One tricky part was using distance increments.  That meant the time calculation was a quadratic equation. (ew!)

The tough part was manually entering grade and curve and timetable speed.  The ETT and track chart data came from multimodalways.org.  Want to do 260 miles of RR?  That's 2600 lines in Excel.

I did it so that I could play with all sorts of variables.  Locos per train, Electric locomotives.  Recovering braking energy, Easing curves.  Flattening grades.  Increasing speeds. Tilting passenger equipment.

For my first - and so far only - territory I chose Charlotte to Atlanta.  Why?  Because it's terrible.  For a non-mountain railroad, it has a terrible alignment.  Roller coaster profile,  Three degree curves as apparent design standard.  Used to be double track, now single with "sidings".  Used to have a lot of spring switch equilaterals at double to single transitions, but most are now regular #20s.  I assume no diverging routes with speed restrictions.

Atlanta to Greenville is a crew district. 150 miles.  Sounds okay, but this route hosts some "hot" intermodal traffic.  That's not very far compared to districts on the former NYC and PRR.


Here's a sample. 



What did I find out?

Well, for starters, IT WORKS!



It produces reasonable speed profile for the route profile.  This is for a 100 car train with 95 gross tons per car, and 9500 total tons.  NS's allowable tonnage for this route in this direction with this power is 9800 tons.

Some typical trains in the past decade or so.


Norcross, GA

Buford, GA

Duluth, GA



So, for some comparisons.



(Diesel fuel at $3/gallon, Electricity at 11 cents/KWHR.  35% efficiency for diesels, 90% for electrics) 

Some interesting results.  


First, DPUs save time, and fuel!  Why?  Because the longer trains effectively smooth out the roller coaster grades, with fewer times the whole train is entirely going up grade or down grade. The shorter trains use more braking per car going down grade to limit to track speed, only to have to use more on the next up grade.  The longer train has more time where the rear of the train is helping push the front up the next grade.

Here's a zoom in on part of the route, comparing the 100 car train with the 300 car train.  Arrows show approximate train length.



There are a few practical considerations for long DPU trains on the is territory.  One, is the time and location to build such a monster.  The yards on NS aren't generally configured to build such long trains. They'd have to hang out on the main tracks while doubling and tripling out.  The second is the time to "commission" the DPU system, linking three - or more- DPU sets.  Third, is radio continuity around hills and curve on the route.  Would stationary repeaters be needed?   Fourth, what would be the train consist and train handling considerations need to be?

Now, let's look at electrification.



This route is not all double track, but I doubt that would change the $4M/mile cost much.  A lot has to be infrastructure to feed catenary.

I assumed that the costs for locomotives and locomotive maintenance would wash, in the long term.  

"Savings" here include the indirect (for now) cost of CO2.  There are economic estimates that $75 a ton is what's needed to get to carbon neutral by the 2050 deadline.  It's a real cost, but whether it's a direct tax or provided as cost saving incentive for construction matter little in the end. (for comparison, a $75/ton tax would equate to 70 cents a gallon for gasoline)  

Obviously, the more traffic you have, the faster the payback for construction.  This is not nearly as busy a mainline as some on NS.  I assumed 30 trains a day, which is probably a bit high.  This route is part of NS's route from Harrisburg to Atlanta (and beyond) that parallels I-81 and I-85.  These are the two of the largest untapped intermodal conversion markets left in the country.  

If the entire route was electrified, the running times would decrease and crew districts could expand.  If electrification saves over 2 hours on 259 miles, it could save 6-7 hours between Harrisburg and Atlanta.  Atlanta to Charlotte becomes a practical long pool crew and the route could be covered by three or four crews.   This makes rail intermodal more cost and time competitive, increasing the traffic and justifying the investment.

So, should railroads hang catenary on the heavy mainlines?  Yes.

Next up, Amtrak.  Is there any hope for Amtrak on this route?


8 comments:

  1. You didn't try to take the train's length into account, did you? When the head end passes the summit the train starts to accelerate immediately?

    ReplyDelete
    Replies
    1. I did, not just the way you'd like to see it. I consider the train a point mass, but on a grade that is the average the train is currently draped over. So, if half the train is on a 1% up and half is on 1% down, I consider that 1/10 mile on a grade of zero. at that point.

      Delete
    2. Sounds reasonable. I forgot you were using distance increments instead of speed increments.

      Delete
  2. Excellent job! Congratulations!
    One question, how did you approach the calculation of braking and the distance needed to reduce speed, or to a stop?
    Thanks!

    ReplyDelete
    Replies
    1. By "looking into the future"... I always know, if I start decelerating now, what's my speed at each tenth of a mile down the track. I can compare that to the allowable speed at each point down the track and know when deceleration has to happen.

      Delete
    2. In other words, do you make an iterative calculation and adjust case by case? Did you program this process, or do you try and when you find the required distance, you adjust the excel file to that value? Did you do any kind of programming based on VBA? Thank you very much for your precious help.

      Delete
  3. Good morning, would love to see the model itself if possible. I too am currently looking at developing models, but always interested in this type of simulation.

    ReplyDelete
  4. Great informative post! Are you willing to share a form of your Excel file? I'm struggling to understand the relationships between train physics formulas for building a simple simulator? You can send to lhodell76 (....at...) gmail
    Thanks!

    ReplyDelete

Your turn!