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:369
Unit Conversion Library namespace.
Definition: data.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< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > british_thermal_unit_iso
Definition: energy.h:52
UNIT_ADD_WITH_METRIC_PREFIXES(solid_angle, steradian, steradians, sr, unit< std::ratio< 1 >, units::category::solid_angle_unit >) UNIT_ADD(solid_angle
squared< angle::degrees > UNIT_ADD(solid_angle, spat, spats, sp, unit< std::ratio< 4 >, steradians, std::ratio< 1 > >) using namespace solid_angle
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
calorie
Definition: energy.h:44
Class representing SI base unit types.
Definition: base.h:757
Type representing an arbitrary unit.
Definition: base.h:884