openOMSI GitHub Discord
Trolleybuses

Docs / Routes and rail / Trolleybuses

How it works

3 min readEdit this pagedocs/TROLLEYBUS.md

On this page
  1. The wires
  2. The poles
  3. Dewiring
  4. Power
  5. Rheostat drive
  6. Asynchronous drive
  7. Arcs

The wires#

  • Two wires run a fixed distance apart, one of each polarity.
  • The bus has power only while one pole is on the positive wire, the other on the negative wire, and both lie on wire a substation feeds.
  • A section can be dead. Between sections there is an insulator: a dead stretch, 0.8 m by default.
  • The voltage at the bus is the substation's, less what the feeder drops with the section's current. Other trolleybuses on the same section count.

The poles#

Each pole is a boom hinged on the roof. It has an elevation and a swing, a spring that presses the shoe up against the wire (120 N at the working angle by default), its own mass and inertia, and a shoe whose groove holds the wire.

On the wire, the spring must accelerate the boom along every rise of the wire. Where the wire rises faster than the boom can follow (a hanger, a kink, unevenness at speed), the shoe leaves it for a moment. The contact opens, and an arc strikes if current flows.

Dewiring#

A pole comes off (dewires) when:

  • the wire lifts out of the shoe's groove (a bounce);
  • the boom stands too far off the wire's direction seen from above: 40° by default, about 4 m off the line for a 6.5 m boom. Leaving the wire's line or a wrong switch position does this;
  • a bend of the wire is taken too fast. The shoe cannot turn quicker than its sideways speed allows (kink_speed, 3 m/s): a 25° bend at 11 m/s is too much, at 3 m/s it is not;
  • the wire is out of the boom's reach, or ends under the shoe.

A pole that has come off springs up to its stop and swings with the bus until its rope holds it. A pole with a rope retriever pulls itself down to its hook half a second later.

Power#

Without a circuit the bus does not move:

  • A modelled drive ([trolley_rheostat] or [trolley_async]) loses its force at once. The bus rolls on, slows under its rolling resistance, and stops.
  • A scripted drive (the bus's own script, no drive block) has its driving torque switched off. A torque that brakes still works. On the wire, the torque is scaled by the line voltage over the nominal voltage.

So a mod's scripted drive works on a wire and stops without one.

Rheostat drive#

[trolley_rheostat] is a series-wound DC motor with a resistor controller (ZiU style):

  • The controller steps the resistors out (14 steps), then the field in (two weakening steps), while the current stays under what the pedal asks for.
  • The resistors turn what they take into heat, and the contactors click.
  • Dynamic braking excites the motors from the line and drives a resistor. Without the line, only the mechanical brakes work.

Asynchronous drive#

[trolley_async] is an inverter drive:

  • A force limit up to its corner speed, a power limit above it.
  • The force fades as the voltage sags. A deep sag trips the inverter.
  • Regenerative braking gives power back to the section, as far as the feeder takes it (regen_kw of the section plus what other buses draw). A brake resistor on the roof burns the rest.
  • An optional battery ([trolley_battery]) moves the bus slowly off the wire (15 km/h, 30 kW by default) and charges from the line.

Arcs#

Where current is broken, an arc burns L I² / 2 of the motor circuit's inductance (12 mH). The game draws a flash with sparks, lights the wire and the roof, and plays a crack. That happens when:

  • a shoe leaves the wire, or a pole comes off, under load;
  • an insulator or a frog is crossed under power.

Coasting through an insulator strikes none. Power on through it, a loud one. A frog or insulator crossed with more than 3 A arcs every time by default (a coasting bus's auxiliaries often draw more). A map can make those arcs rarer, weaker or need more current with the frog_arc_* and insulator_arc_* keys of [trolley_net].

The chance is drawn per frog crossing and per insulator entry and exit, from the vehicle's seed, so it is repeatable. Arcs of a shoe leaving the wire or a pole coming off are not affected by these keys.

Something wrong or missing? Fix it on GitHub or open an issue.

↑↓ to move↵ to open