Skip to content

Creating & Addressing Lists with „Number of Trains“

Editing the list for train numbers for each railway track locally, however, is a tedious task since, each time, the same numbers of trains would have to be entered for any track section where the type of track or other corrections (e.g. bridge, curves or rail joints) change.

But, lists with train numbers can be defined in the local library of CadnaA (menu Tables|Libraries (local)|Number of Trains). These lists can be assigned to each railway track.

In this section the editing, the import and addressing is explained by lists with train numbers with the help of example data. First, the example data with a specific formatting is created

Import File Structure

The data per track consist of at least three line:

1st line: name of the list (e.g. designation of track)

2nd line: train class|number_Day|number_Evening|number_Night| speed|train_length|percentage_disc_brakes%| type_correction_Dfz|selection_traintype|number_of_axles

3rd line: blank (as a separating line between tracks)

Note the following points:

  • The parameters in the 2nd line have to be separated from each other by the tabulator key (TAB).
  • Number of trains for additional train classes are inserted after the 2nd line as additional lines.

Note

The parameters in Italics are just relevant for German procedures Schall03 (1990) or Schall03 (2014). For CNOSSOS-EU, those are ignored (can be set to zero).

Generating a List with Numbers of Trains

The following list with numbers of trains shall be imported:

Track_001
ELOK_SB 10  0   4   160 0   100.0   0   0
RZW_SB  80  0   32  160 0   100.0   0   0

Track_002
ELOK_KB 5   0   2   120 0   0   0   0
RZW_KB  20  0   8   120 0   0   0   0
  • Enter these figures into a MS-Word file or into a text editor and save the file as a text file (file extension *.txt). The individual parameters are to be separated by the tabulator key (TAB).

The file then looks like:

Text file with Number of trains for two tracks

Importing the Numbers of Trains

  • Create a new file in CadnaA,
  • Select the command Import from the File menu and choose „Number of Trains (*.txt)“ from the list of file types.
  • Select the previously edited text file by clicking its name once and click the button „Options“.

Number of trains can be imported either to the local list on the dialog Railway or into the local library Number of Trains.

  • Select for „Object Type“ the option „Numbers of Trains“ with the check-box „Append non-existing Objects“ activated.

Options for import of number of trains

  • Close the dialog and click the „Open“-button on the dialog Import Number of Trains.
  • Open the imported list with number of trains via the menu Tables| Libraries (local)|Number of Trains.

Thus, the numbers of trains for two tracks have been imported. The indicated emission level Lm,E of all trains running on each track.

Imported number of trains for two tracks

  • Double-click onto the first table item „Track_001“.

Railways classes and numbers for track_1

Addressing the Numbers of Trains

Now, the numbers of trains shall be assigned to two railway tracks.

  • Enter two railway tracks.
  • Define the ID’s of both tracks, "Track_001" and "Track_002".

Railway track with new ID, but without number of trains

  • Click in the white screen area with the right mouse button and select from the context menu the command Modify Objects.
  • Select the action „Change Attributes“ and the object type „Railway“.
  • Click OK.
  • Select on the dialog Modify Attribute the attribute "LIBZZ" from the upper list box.

Note

The abbreviation „LIBZZ“ stands for ’Library Numbers of Trains’ and refers to the designation in the library „Number of Trains“.

  • Select the option „Replace Strings“ and delete the present entry „\1“ in line „Replace with“.
  • Click on the double arrow symbol (>>).

  • Select the attribute "ID" from the sub-menu (in the upper left corner).

Subsequently, the string "{ID}" is written into the input box „Replace with“. The parentheses indicate that not the text string "ID" is becoming the new string, but the value of the attribute ID.

Replacing the attribute LIBZZ by the ID-value

  • After OK confirm the operation with „all“.
  • Double-click on both railway tracks, one after another.

The railway track with ID „Track_001“ got the number of trains assigned of „Track_001“ in the library Numbers of Trains, and the railway track „Track_002“ those of „Track_002“.

Number of Trains assigned to track_1 and track_2

  • Save the file e.g. with filename railway.cna.