fuel consumption - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Units of Fuel Consumption

 

Description

Examples

Description

• 

Fuel consumption has the dimension volume of petroleum per length or length per volume of petroleum.  The three standard units of fuel consumption are the liter of petroleum per 100 kilometers, the mile per gallon of petroleum, and the kilometer per liter of petroleum.

• 

Maple knows the units of fuel consumption listed in the following table.

Name

Symbols

Context

Alternate Spellings

Prefixes

 

 

 

 

 

mile_per_gallon

mpg

US_liquid *

miles_per_gallon

 

 

 

UK

 

 

  

An asterisk ( * ) indicates the default context, an at sign (@) indicates an abbreviation, and under the prefixes column, SI indicates that the unit takes all SI prefixes, IEC indicates that the unit takes IEC prefixes, and SI+ and SI- indicate that the unit takes only positive and negative SI prefixes, respectively.  Refer to a unit in the Units package by indexing the name or symbol with the context, for example, miles_per_gallon[US_liquid] or mpg[UK]; or, if the context is indicated as the default, by using only the unit name or symbol, for example, miles_per_gallon.

• 

Because liters per 100 kilometers and miles per gallon have inverse dimensions, the conversion between them includes taking a reciprocal.

• 

Maple uses Unit annotations for units of fuel consumption.

  

 

  

The unit of fuel consumption is defined as follows.

  

A US liquid or UK mile per gallon is defined as a standard mile per US liquid or UK gallon of petroleum, respectively.

Examples

The dimensions of the three units of fuel consumption are not all the same.

convertLpetroleum100km,dimensions,base=true

lengthpetroleum3length

(1)

convertmpg,dimensions,base=true

lengthlengthpetroleum3

(2)

convertkmLpetroleum,dimensions,base=true

lengthlengthpetroleum3

(3)

By default, Maple accepts a conversion of units of fuel consumption, such as the mpg, to units of length per volume, such as meter per gallon.

convert1,units,mpg,mgal

201168125

(4)

When the standard or natural modes for combining units are selected, Maple requires the correct annotation to the unit gallon in order to do this conversion. Otherwise, this constitutes an error:

UnitsUseModestandard

simple

(5)

convert1,units,mpg,mgal

Error, (in `convert/units`) unable to convert `mpg` to `m/gal`

convert1,units,mpg,mgalpetroleum

201168125

(6)

The symbolic option makes convert ignore this issue, regardless of the currently selected mode.

convert1,units,mpg,mgal,symbolic=true

201168125

(7)

Convert 4.4 L/100 km to mpg.

1convert4.4,units,Lpetroleum100km,1mpg

53.45785984

(8)

Convert 17.2 mpg to L/100 km.

1convert17.2,units,mpg,1Lpetroleum100km

13.67526647

(9)

Convert 4.4 L/100 km to km/L.

1convert4.4,units,Lpetroleum100km,1kmLpetroleum

22.72727273

(10)

Convert 19.3 km/L to mpg.

convert19.3,units,kmLpetroleum,mpg

45.39641458

(11)

See Also

convert/dimensions

convert/units

Units

Units/annotations

Units/Index

Units/length

Units/volume