40#if !defined(DISABLE_PREDEFINED_UNITS) || \
41 defined(ENABLE_PREDEFINED_ENERGY_UNITS)
45 unit<
std::ratio<4184, 1000>, joules>)
46UNIT_ADD(energy, kilowatt_hour, kilowatt_hours, kWh,
47 unit<
std::ratio<36, 10>, megajoules>)
49 unit<
std::ratio<1, 1000>, kilowatt_hours>)
50UNIT_ADD(energy, british_thermal_unit, british_thermal_units, BTU,
51 unit<
std::ratio<105505585262, 100000000>, joules>)
53 unit<
std::ratio<1055056, 1000>, joules>)
54UNIT_ADD(energy, british_thermal_unit_59, british_thermal_units_59, BTU59,
55 unit<
std::ratio<1054804, 1000>, joules>)
57 unit<
std::ratio<100000>, british_thermal_units_59>)
59 unit<
std::ratio<13558179483314004, 10000000000000000>, joules>)
64using namespace energy;
#define UNIT_ADD_CATEGORY_TRAIT(unitCategory)
Macro to create the is_category_unit type trait.
Definition: base.h:381
Definition: BFloat16.h:88
Unit Conversion Library namespace.
Definition: magnetic_flux.h:31
foot_pounds
Definition: torque.h:47
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > british_thermal_units_iso
Definition: energy.h:52
UNIT_ADD(moment_of_inertia, kilogram_square_meter, kilogram_square_meters, kg_sq_m, compound_unit< mass::kilograms, area::square_meters >) using namespace moment_of_inertia
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > british_thermal_unit_iso
Definition: energy.h:52
cal
Definition: energy.h:44
unit< std::ratio< 4184, 1000 >, joules > watt_hour
Definition: energy.h:48
unit< std::ratio< 4184, 1000 >, joules > Wh
Definition: energy.h:48
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > unit< std::ratio< 1055056, 1000 >, joules > therms
Definition: energy.h:56
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > unit< std::ratio< 1055056, 1000 >, joules > thm
Definition: energy.h:56
unit< std::ratio< 4184, 1000 >, joules > watt_hours
Definition: energy.h:48
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > BTU_iso
Definition: energy.h:52
calories
Definition: energy.h:44
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > unit< std::ratio< 1055056, 1000 >, joules > therm
Definition: energy.h:56
foot_pound
Definition: torque.h:47
UNIT_ADD_WITH_METRIC_PREFIXES(magnetic_flux, weber, webers, Wb, unit< std::ratio< 1 >, units::category::magnetic_flux_unit >) UNIT_ADD(magnetic_flux
calorie
Definition: energy.h:44
Class representing SI base unit types.
Definition: base.h:769
Type representing an arbitrary unit.
Definition: base.h:895