Trains.com

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

Ratio: Length of various curves to various straights

1807 views
6 replies
1 rating 2 rating 3 rating 4 rating 5 rating
  • Member since
    April 2003
  • 305,205 posts
Ratio: Length of various curves to various straights
Posted by Anonymous on Thursday, September 1, 2005 5:48 AM
Hi all,

I'm a small time software developer, and I'm trying to write a little program to make modelling my train tracks easy.

My problem is: I'm basically taking straight pieces of track, and bending them, to make curves. I've tried measuring my o-gauge track with a piece of string to get the "real" length of a piece of curved track, and then bend it when I model it in the computer.

When I do this, and make what should be perfectly matched up pieces, they don't fit correctly for building track layouts. (I've also tried the shareware program RTS 7.0, but their tracks seem to have the exact same overlaps and overshootings that mine do.

Does anyone know where I might find the information on how long a curve piece of track is in an "unbent" state? I've been googling for a couple days, haven't turned up anything worthwhile.
  • Member since
    June 2003
  • From: Culpeper, Va
  • 8,204 posts
Posted by IRONROOSTER on Thursday, September 1, 2005 6:46 AM
Not sure exactly what you are doing. If you're showing both rails, neither one is the length of the track piece when straight. The outer rail will be longer and the inner rail shorter. You'll need to calculate each rail separately.
Good Luck
Paul
If you're having fun, you're doing it the right way.
  • Member since
    September 2003
  • From: Omaha, NE
  • 10,621 posts
Posted by dehusman on Thursday, September 1, 2005 7:25 AM
You are doing it b_a_s_sackwards.

Design the layout and then bend and fit the track to match design, not bend the track and try to fit the design to the pieces.

Dave H.

Dave H. Painted side goes up. My website : wnbranch.com

  • Member since
    September 2002
  • 7,486 posts
Posted by ndbprr on Thursday, September 1, 2005 8:12 AM
Surely somewhere in your mathematics in school they taught you that the circumference of a circle is the diameter times pi or two times the radius times pi. You can take that out to 26 decimal places if you wish for each rail since they are a scale 4'8 1/2" apart so they are different lengths.
  • Member since
    April 2003
  • 305,205 posts
Posted by Anonymous on Thursday, September 1, 2005 10:16 AM
The other facor you have is, as mentioned, the difference between the inside and outside rail lengths.

The curve radius is measured to the center of the track, which lacks any physical reference, unless you've got a 3-rail track. If you're making your own curves using flex track, you start out with track as long as the outside rail, and then you cut off part of the inside rail. The amount of track that you've lost in the process is half the length of the inside rail length that you cut off.

As a final note, no matter how precisely you design the layout in the computer, reality when you start to lay track will force you to make a few adjustments. That's how my yard went from 5 to 4 tracks, but it's a better product as well.

When I designed my layout I used AutoCad, and built templates for easements, curves of various radii, etc. It helped for when I translated it to the full-sized drawing. After I built the benchwork, I covered it with drawing paper and drew out the entire layout full-sized by hand. I STRONGLY encourage this final step. It's the final check on your design.

Mark in Utah
  • Member since
    April 2003
  • 305,205 posts
Posted by Anonymous on Thursday, September 1, 2005 2:11 PM
Well, I was considering the center of the rails for my measurement. For my computer simulation, a rail exists as a bezier curve, with each piece of track being determined by a few points.

ndpbrr: Yeah, I tried that early on... no matter how carefully I determine the size of the tracks, I cannot duplicate any of these layouts here:
http://www.thortrains.net/marx/kdlaymth.html

When I try to, I *always* end up with some overlap. I guess what I'm most worried about is that a train layout cannot exist with a splitting diagonal without some bending or stress to the tracks in the real world that's not possible in a computer program unless I make every piece of track act flexible. Not something I wanted to do, initially.

  • Member since
    September 2002
  • 7,486 posts
Posted by ndbprr on Thursday, September 1, 2005 4:26 PM
It doesn't surprise me you can't duplicate a tinplate layout. There are too many variables where the ends of the track join. Your assumption is that every joint on there is a tight connection with the ends of the rail from adjoining rail sections touching each other and alligned properly. I've never seen a tinplate layout where that was the case. In fact the joints are where you fudge things a little for improper allignment.

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

Users Online

There are no community member online

Search the Community

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT
Model Railroader Newsletter See all
Sign up for our FREE e-newsletter and get model railroad news in your inbox!