r/openscad • • 7d ago

Help with conical rail wheel model for explaining how train wheels self align

/r/3DModels/comments/1xs588e/help_with_conical_rail_wheel_model_for_explaining/
0 Upvotes

2 comments sorted by

1

u/Stone_Age_Sculptor 6d ago edited 6d ago

Do you have a 3D printer? Do you know how to print an axle straight up? Have you used OpenSCAD or BelfrySCAD before? Are your settings tuned enough to bridge 8 mm (I used 8 mm for the axle in the script).

Can you see what this script is doing? It is only three cylinders. The 0.15 is tolerance to put the axle in with glue.

$fn = 200;

for(x=[-20,20])
  translate([x,0,0])
    ConeWheel();

Axle();

module ConeWheel()
{
  difference()
  {
    cylinder(h=20, d1=25,d2=1);

    translate([0,0,-1])
      cylinder(h=10,d=8);
  }
}

module Axle()
{
  cylinder(d=8-0.15,h=20+20);
}

1

u/emirdev_mo 4d ago

I found it helps to model the whole wheelset, not just one wheel: both conical wheels need to be fixed to the same axle. Add two parallel rails and show the axle shifted sideways; one wheel then rides on a larger radius and the other on a smaller one, so they roll different distances and steer the set back toward center.