CombustionVehicleEfficiency

public class CombustionVehicleEfficiency

Specifies the efficiency of the vehicle.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Declaration

    Swift

    public init(
        fuelEnergyDensity: Measurement<TTUnitEnergyDensity>,
        velocityChange: VelocityChangeEfficiency? = nil,
        altitudeChange: AltitudeChangeEfficiency? = nil
    )

    Parameters

    fuelEnergyDensity

    Specifies the amount of chemical energy stored in the fuel, for example in megajoules per liter. It is used in conjunction with the efficiency parameters for conversions between saved or consumed energy and fuel. For example, energy density is 34.2 MJ/l for gasoline, and 35.8 MJ/l for Diesel fuel.

    velocityChange

    Specifies the efficiency of converting chemical energy to kinetic energy due to accelerations.

    altitudeChange

    Specifies the efficiency of converting chemical energy to potential energy due to increase in altitude.

Public

  • Specifies the amount of chemical energy stored in the fuel, for example in megajoules per liter.

    Declaration

    Swift

    public let fuelEnergyDensity: Measurement<TTUnitEnergyDensity>
  • Specifies the efficiency of converting chemical energy to kinetic energy due to accelerations.

    Declaration

    Swift

    public let velocityChange: VelocityChangeEfficiency?
  • Specifies the efficiency of converting chemical energy to potential energy due to increase in altitude.

    Declaration

    Swift

    public let altitudeChange: AltitudeChangeEfficiency?