VelocityChangeEfficiency

data class VelocityChangeEfficiency(val acceleration: Ratio, val deceleration: Ratio)

Specifies the ratio by which energy is converted during velocity changes.

Throws

If the efficiencies are outside their valid ranges.

Constructors

Link copied to clipboard
constructor(acceleration: Ratio, deceleration: Ratio)

Properties

Link copied to clipboard

The ratio of kinetic energy gained to chemical or electric energy consumed during acceleration. Must be in the range [0.01, 1].

Link copied to clipboard

The ratio of chemical or electric energy recovered to kinetic energy lost during deceleration. Must be in the range [0.01, 1/acceleration]. For combustion vehicles, regardless of that ratio, because the vehicle cannot recuperate energy, the actual amount of energy saved is capped so that the net consumption on any route segment will never be negative.