AltitudeChangeEfficiency

data class AltitudeChangeEfficiency(val uphill: Ratio, val downhill: Ratio)

Specifies the ratio by which energy is converted for altitude changes.

Throws

If the efficiencies are outside their valid ranges.

Constructors

Link copied to clipboard
constructor(uphill: Ratio, downhill: Ratio)

Properties

Link copied to clipboard

The ratio of chemical or electric energy recovered to potential energy lost when going downhill. Must be in the range [0.01, 1/uphill]. 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.

Link copied to clipboard

The ratio of potential energy gained to chemical or electric energy consumed when going uphill. Must be in the range [0.01, 1].