2.5.8.4. Clearance profiles

A clearance profile (structure gauge) is the outline, in the cross section of the track, of the space the train needs. Nothing fixed — tunnel walls, platform edges, masts, signals, bridge soffits — may come inside it. A gauge study (EN 15273-3) gives one profile per case: one on straight track, one on the sharpest curve with the largest cant, one per station, one in each type of tunnel, and so on. The profile of a curve is wider on the inside of the curve and differs with the radius and the cant, so a line usually needs several profiles.

The Alignment Solver keeps the profiles with the rail alignment, in the .alm file, and uses them in the clearance viewer, which runs a profile along the alignment and checks surveyed points against it.

Clearance profiles belong to a rail alignment: tick Rail alignment on the Settings tab of the Alignment Editor first (see Rail alignment — cant, CTC and UTC).

2.5.8.4.1. The coordinate system of a profile

A profile is drawn in the CTC system of the rail calculations (see Rail alignment — cant, CTC and UTC):

  • the unit is the metre;

  • the origin is on the top of rail (the running surface) at the track centre;

  • +X is to the right of the direction of travel;

  • +Y is up, square to the top-of-rail plane.

The profile is fixed to the track: on a canted curve it turns with the track about the cant rotation point, exactly like a point set out with the rail setout. A profile point (x, y) is the CTC point (x_c, y_c) = (x, y) of every section; its position on the ground at chainage s is the rail setout of (s, x, y).

Note

The program never mirrors a profile. Gauge studies usually give the inside of the curve on one side (in the study the profiles were taken from, the inside of the curve is +X). Such a profile is right for curves turning that way only; for curves turning the other way use Mirror X in the editor (see below), or keep a mirrored copy as a separate profile.

2.5.8.4.2. Profiles, polylines and their kind

An alignment holds a list of profiles and remembers which of them is in use (the one the clearance viewer opens with). Each profile has a name and a list of polylines. Each polyline has:

  • a name — for example NOMINAL_GAUGE or PANTO_MECH;

  • a kind:

    • envelope — the line is used by the clearance check;

    • reference — the line is drawn only (a kinematic reference profile, a pantograph chimney you do not want to check, a note);

  • a closed flag — draws the line as a closed outline;

  • a colour — used in the drawings and the DXF export;

  • its points (X, Y) in metres.

For the check every envelope line with at least three points is an area: when the line is not closed, the program closes it with a straight line from its last point back to its first. A U-shaped line without a bottom therefore bounds the area above the straight line between its two lower ends. The editor and the viewer draw that closing edge dotted, so you can see the area that is checked.

A typical profile taken from a gauge study has five polylines:

Polyline

Kind

Meaning

NOMINAL_GAUGE

envelope

Nominal installation gauge: the lower part (from 16 mm above the top of rail) and the upper and lateral part (up to about 4.8 m) joined into one closed outline. Structures must stay outside it.

KINEMATIC_UPPER

reference

Kinematic reference profile of the upper and lateral part (GC / G1): the vehicle with its movements, before the allowances.

KINEMATIC_LOWER

reference

Kinematic reference profile of the lower part (GI2).

PANTO_MECH

reference

Mechanical gauge of the pantograph: the chimney from 5.0 m to 6.5 m above the top of rail.

PANTO_ELEC

reference

Electrical gauge of the pantograph (the mechanical one plus the electrical clearance, 120 mm each side in the study).

Which lines are checked is chosen in the clearance viewer (Lines to check), which sets the kind; see Clearance viewer and clearance check.

2.5.8.4.3. How the profiles are stored

The profiles are written to the .alm file next to the rail settings. Coordinates are in metres, colours as #RRGGBB, and Active is the index (from 0) of the profile in use:

<ClearanceProfiles Active="1">
  <ClearanceProfile Name="N.1"> ... </ClearanceProfile>
  <ClearanceProfile Name="N.2">
    <Polyline Name="NOMINAL_GAUGE" Kind="envelope" Closed="1" Color="#1EA03C">
      <P x="-1.704" y="0.336"/>
      <P x="-1.604" y="0.336"/>
      ...
    </Polyline>
    <Polyline Name="PANTO_MECH" Kind="reference" Closed="0" Color="#E67800">
      ...
    </Polyline>
  </ClearanceProfile>
</ClearanceProfiles>

Older program versions skip the element, so a file saved there loses its profiles. The rail head width is stored next to the gauge (<Rail Gauge="1.435" RailHeadWidth="0.072" …>).

2.5.8.4.4. The clearance profile editor

Open the editor with:

  • Rail ▸ Clearance Profile…;

  • a double-click on Rail ▸ Clearance Profiles in the alignment tree, or on one of the profiles under it (the editor then opens on that profile);

  • Clearance profile… on the Settings tab of the Alignment Editor.

The clearance profile editor with ten profiles of a gauge study

The dialog edits a copy of the profiles. OK writes them into the alignment (save the alignment to keep them in the .alm file); Cancel drops every change.

2.5.8.4.4.1. Profiles list

The list at the top left holds the profiles of the alignment with their number of polylines; the profile in use is marked in use.

  • New — adds an empty profile.

  • Copy — adds a copy of the selected profile, e.g. to keep a mirrored version of it.

  • Delete — deletes the selected profile (after a question).

  • Up, Down — move the selected profile in the list.

  • Add from DXF files… — adds one profile per DXF file, named after the file. Several files can be chosen at once, so the ten profiles of a gauge study are added in one step. The message says how many profiles and polylines were read and which files could not be read.

  • Profile name — renames the selected profile.

Everything below the list works on the selected profile.

2.5.8.4.4.2. Polylines of the profile

The Polylines grid has one row per polyline:

  • Name — type to rename.

  • Kind — envelope or reference (drop-down list).

  • Closed — tick to draw the line closed.

  • Colour — double-click the cell, or use Colour….

  • Points — the number of points.

Add adds an empty polyline, Delete deletes the selected one, Up and Down move it. The selected polyline is drawn thicker in the preview, with its points marked.

2.5.8.4.4.3. Points of the selected polyline

The Points grid holds the X and Y (metres) of the selected polyline, in drawing order. Type over a value to change it; a value that is not a number is ignored.

  • Add — appends a point (a copy of the last one).

  • Insert — inserts a point before the selected row, halfway between its neighbours.

  • Delete — deletes the selected point.

  • Paste X Y — appends the points copied to the clipboard, one X Y pair per line, separated by a tab (Excel), a semicolon or spaces; a comma separates only when a line has nothing else. A decimal comma is accepted.

2.5.8.4.4.4. Bottom buttons

  • Import DXF… — reads a DXF file into the selected profile (see the next section). When the profile already has polylines you are asked whether to replace them (Yes) or append to them (No).

  • Export DXF… — writes the selected profile to a DXF file.

  • Clear profile — removes every polyline of the selected profile.

  • Mirror X — changes every X of the selected profile to −X: left and right swap.

2.5.8.4.4.5. Preview

The preview draws the selected profile on the two rails, without cant: envelope lines solid, reference lines dashed, the closing edge of an open envelope dotted, and a 0.5 m grid. The mouse wheel zooms about the cursor, dragging with the left or middle button pans, and a double-click fits the drawing again.

2.5.8.4.5. DXF import and export

How to draw a template so that it is checked correctly — envelope and reference lines, open and closed lines, several lines, platform templates — is explained with drawings in Designing a clearance template.

The drawing. Draw the profile in a DXF file in metres, with the origin on the top of rail at the track centre and +X to the right. ASCII DXF of any version is read.

What is read. From the ENTITIES section:

  • LWPOLYLINE and POLYLINE (with its VERTEX entities) — one polyline each, closed when the entity is closed;

  • LINE — lines of the same layer that meet end to end (within 0.000001 m) are joined into one polyline; a chain that comes back to its start becomes a closed polyline.

Other entities (text, blocks, hatches, 3D meshes, …) are skipped and counted in the message. Arcs in polylines (bulges) are read as straight segments, and the message says so — add vertices along an arc to keep its shape.

Names, kinds and colours.

  • Each polyline is named after its layer; a second polyline of the same layer gets 2, 3, … after the name.

  • A layer whose name starts with REF_ is imported as a reference polyline and the prefix is removed (REF_PANTO_MECH → PANTO_MECH, reference). Every other layer is an envelope polyline.

  • A polyline with fewer than three points is always imported as reference (it bounds no area).

  • The colour is the entity colour, otherwise the layer colour (AutoCAD colour index).

Export. Export DXF… writes an R12 (AC1009) file in metres: one layer per polyline name, REF_ in front of the reference lines, one POLYLINE per polyline with its colour. Importing the file again gives the same profile.

Tip

Check the kinds after an import: only the envelope lines are used by the clearance check. With the REF_ naming in the DXF the kinds come in right without editing.

2.5.8.4.6. Building a profile from a gauge study

A gauge study gives the profile as tables of points relative to the running surface, in millimetres. For each case it usually lists:

  • the pantograph points 1 and 2 (heights 6.50 m and 5.00 m) with the half widths of the mechanical and the electrical gauge;

  • the upper and lateral part: points 8-1, 7, 6, 5 (G1) and 4, 3-PT (GC) with the kinematic reference b_cr, h_cr and the nominal installation gauge b_nom,i (inside of the curve), b_nom,a (outside), h_nom,i, h_nom,a;

  • the lower part: points 15 … 9, 8-2 (GI2) with the same columns.

The five polylines are built from them as follows (all values divided by 1000 to give metres; the inside of the curve on +X):

  • NOMINAL_GAUGE (envelope, closed): the lower part on the outside from 8-2 to the centre (−b_nom,a, h_nom,a), the lower part on the inside from the centre to 8-2 (b_nom,i, h_nom,i), the upper part on the inside from 8-1 up to 3-PT, then the upper part on the outside from 3-PT down to 8-1.

  • KINEMATIC_UPPER (reference): (b_cr, h_cr) from 8-1 up to 3-PT and back down on the other side (−b_cr, h_cr).

  • KINEMATIC_LOWER (reference): (±b_cr, h_cr) of the lower part, from one 8-2 across the centre to the other.

  • PANTO_MECH and PANTO_ELEC (reference): the chimney (b, 5.00) → (b, 6.50) → (−b, 6.50) → (−b, 5.00) with the mechanical or the electrical half width b of each height.

For example, the upper part of the profile of the sharpest curve (R = 550 m, cant 160 mm) gives:

Point

b_cr

h_cr

b_nom,i

b_nom,a

h_nom,i

h_nom,a

8-1

1620

400

1706

−1706

464

464

7

1620

1170

1749

−1745

1234

1234

6

1645

1170

1774

−1770

1234

1234

5

1645

3250

1904

−1887

3314

3314

4

1645

3550

1923

−1904

3637

3660

3-PT

1540

4700

1890

−1864

4844

4868

so the inside of NOMINAL_GAUGE runs (1.706, 0.464), (1.749, 1.234), (1.774, 1.234), (1.904, 3.314), (1.923, 3.637), (1.890, 4.844) and the outside, from the top, (−1.864, 4.868), (−1.904, 3.660), (−1.887, 3.314), (−1.770, 1.234), (−1.745, 1.234), (−1.706, 0.464).

Draw the polylines in a DXF file with these layer names (REF_ in front of the reference ones) and add the file with Add from DXF files…, or type / paste the points in the editor.

Important

Check the tables before you use them: a value typed in the wrong column of the study moves a line by many centimetres. The mechanical and the electrical gauge of the pantograph should differ by the electrical clearance at every height, the inside and the outside of the nominal gauge should be close to each other on straight track, and the preview should show the expected shape.

2.5.8.4.7. Platform templates

At a platform the edge must be as close to the train as allowed, so the platform has its own limit, closer than the general nominal gauge. The gauge study gives it (EN 15273-3, section track – platform edge distance) as the limit position b_lim of the platform edge at the nominal platform height h_cr (0.760 m), measured in the running-surface plane, i.e. in the CTC system:

\[b_{lim,i} = b_{CR,cin} + S_{cin} + q_{s,i} + \Sigma_{2,i}\]
\[b_{lim,a} = b_{CR,cin} + S_{cin} + q_{s,a} + \Sigma_{2,a} + \delta_{q,a}\]

on the inside (i) and the outside (a) of the curve, with b_CR,cin = 1.620 m (G1). The edge is built between the limit and the limit + 50 mm:

\[b_{lim} \le b_q \le b_{lim} + 0.050\ \mathrm{m}\]

The values of the study used for the templates:

Template

Station (case)

b_lim,i (+X)

b_lim,a (−X)

Station profile

Platform_L1

straight track, no cant

1.651

1.651

N.3 (= N.1)

Platform_L2

R 1950 m, cant 85 mm

1.656

1.672

N.4

Platform_L3

R 1500 m, cant 100 mm

1.658

1.675

N.5

Platform_L4

R 650 m, cant 100 mm

1.661

1.678

N.6

A platform template has these polylines (inside of the curve on +X):

  • PLATFORM_LIMIT — envelope, closed: the space between −b_lim,a and +b_lim,i from the bottom of the platform nose (h_cr − h_nez = 0.760 − 0.25 = 0.51 m) up to 1.17 m, the top of the G1 lateral part where b_CR,cin = 1.620 holds. Surveyed platform edge points are checked against this line.

  • PLATFORM_TOLERANCE (two lines) — reference: b_lim + 0.050 on each side.

  • PLATFORM_TOP (two lines) — reference: the nominal platform height 0.760 m beside each limit.

  • the lines of the station profile (NOMINAL_GAUGE, KINEMATIC_*, PANTO_*) — all reference, for context.

Important

At platform height the general nominal gauge is wider than the platform limit (about 1.70 – 1.75 m against 1.65 – 1.68 m): a platform may come closer to the train than other structures. Never check platform edge points against NOMINAL_GAUGE; they would all be inside it. Use PLATFORM_LIMIT with the Platform edge check of the clearance viewer (see Platform edge check).

The limit is given by the study at one height (0.760 m); the template extends it over the platform nose and up to 1.17 m. Change the heights in the editor if the platforms of the project need another zone.

The study’s proposed edge positions (b_q, h_q “from the track axis and the top of rail”) are level (UTC) values for setting out. For example the outside platform of L.2, CTC (−1.672, 0.760), turns with 85 mm cant to a height of 0.896 m above the top of rail — the h_q = 0.896 of the study. The templates are in CTC like every profile; the viewer does this rotation itself.

2.5.8.4.8. Typical workflow

  1. Open the rail alignment and check the gauge, the rail head width and the cant rotation point on the Settings tab of the Alignment Editor.

  2. Rail ▸ Clearance Profile… ▸ Add from DXF files… and choose the DXF files of all the cases of the gauge study.

  3. Check each profile in the preview; use Mirror X (or a mirrored Copy) for curves turning the other way.

  4. OK, then save the alignment.

  5. Check surveyed points with the clearance viewer, choosing the profile that fits each part of the line.