29 #ifndef PHYS_UNITS_OTHER_UNITS_HPP_INCLUDED 30 #define PHYS_UNITS_OTHER_UNITS_HPP_INCLUDED 34 namespace phys {
namespace units {
36 constexpr quantity< electric_current_d > abampere { Rep( 1e+1L ) * ampere };
37 constexpr quantity< electric_charge_d > abcoulomb { Rep( 1e+1L ) * coulomb };
38 constexpr quantity< capacitance_d > abfarad { Rep( 1e+9L ) * farad };
39 constexpr quantity< inductance_d > abhenry { Rep( 1e-9L ) * henry };
40 constexpr quantity< electric_conductance_d > abmho { Rep( 1e+9L ) * siemens };
41 constexpr quantity< electric_resistance_d > abohm { Rep( 1e-9L ) * ohm };
42 constexpr quantity< electric_potential_d > abvolt { Rep( 1e-8L ) * volt };
43 constexpr quantity< area_d > acre { Rep( 4.046873e+3L ) *
square( meter ) };
44 constexpr quantity< volume_d > acre_foot { Rep( 1.233489e+3L ) *
cube( meter ) };
45 constexpr quantity< length_d > astronomical_unit { Rep( 1.495979e+11L ) * meter };
46 constexpr quantity< pressure_d > atmosphere_std { Rep( 1.01325e+5L ) * pascal };
47 constexpr quantity< pressure_d > atmosphere_tech { Rep( 9.80665e+4L ) * pascal };
49 constexpr quantity< volume_d > barrel { Rep( 1.589873e-1L ) *
cube( meter ) };
50 constexpr quantity< electric_current_d > biot { Rep( 1e+1L ) * ampere };
51 constexpr quantity< energy_d > btu { Rep( 1.05587e+3L ) * joule };
52 constexpr quantity< energy_d > btu_it { Rep( 1.055056e+3L ) * joule };
53 constexpr quantity< energy_d > btu_th { Rep( 1.054350e+3L ) * joule };
54 constexpr quantity< energy_d > btu_39F { Rep( 1.05967e+3L ) * joule };
55 constexpr quantity< energy_d > btu_59F { Rep( 1.05480e+3L ) * joule };
56 constexpr quantity< energy_d > btu_60F { Rep( 1.05468e+3L ) * joule };
57 constexpr quantity< volume_d > bushel { Rep( 3.523907e-2L ) *
cube( meter ) };
59 constexpr quantity< energy_d > calorie { Rep( 4.19002L ) * joule };
60 constexpr quantity< energy_d > calorie_it { Rep( 4.1868L ) * joule };
61 constexpr quantity< energy_d > calorie_th { Rep( 4.184L ) * joule };
62 constexpr quantity< energy_d > calorie_15C { Rep( 4.18580L ) * joule };
63 constexpr quantity< energy_d > calorie_20C { Rep( 4.18190L ) * joule };
64 constexpr quantity< mass_d > carat_metric { Rep( 2e-4L ) * kilogram };
65 constexpr quantity< length_d > chain { Rep( 2.011684e+1L ) * meter };
66 constexpr quantity< thermal_insulance_d > clo { Rep( 1.55e-1L ) *
square( meter ) * kelvin / watt };
67 constexpr quantity< pressure_d > cm_mercury { Rep( 1.333224e+3L ) * pascal };
68 constexpr quantity< volume_d > cord { Rep( 3.624556L ) *
cube( meter ) };
69 constexpr quantity< volume_d > cup { Rep( 2.365882e-4L ) *
cube( meter ) };
71 constexpr quantity< dimensions< 2, 0, 0 >> darcy { Rep( 9.869233e-13L ) *
square( meter ) };
72 constexpr quantity< time_interval_d > day_sidereal { Rep( 8.616409e+4L ) * second };
73 constexpr quantity< dimensions< 1, 0, 1, 1>> debye { Rep( 3.335641e-30L ) * coulomb * meter };
74 constexpr quantity< thermodynamic_temperature_d > degree_fahrenheit{ Rep( 5.555556e-1L ) * kelvin };
75 constexpr quantity< thermodynamic_temperature_d > degree_rankine { Rep( 5.555556e-1L ) * kelvin };
76 constexpr quantity< dimensions< -1, 1, 0 >> denier { Rep( 1.111111e-7L ) * kilogram / meter };
77 constexpr quantity< force_d > dyne { Rep( 1e-5L ) * newton };
79 constexpr quantity< energy_d > erg { Rep( 1e-7L ) * joule };
81 constexpr quantity< electric_charge_d > faraday { Rep( 9.648531e+4L ) * coulomb };
82 constexpr quantity< length_d > fathom { Rep( 1.828804L ) * meter };
83 constexpr quantity< length_d > fermi { Rep( 1e-15L ) * meter };
84 constexpr quantity< length_d > foot { Rep( 3.048e-1L ) * meter };
85 constexpr quantity< energy_d > foot_pound_force { Rep( 1.355818L ) * joule };
86 constexpr quantity< energy_d > foot_poundal { Rep( 4.214011e-2L ) * joule };
87 constexpr quantity< length_d > foot_us_survey { Rep( 3.048006e-1L ) * meter };
88 constexpr quantity< illuminance_d > footcandle { Rep( 1.076391e+1L ) * lux };
89 constexpr quantity< illuminance_d > footlambert { Rep( 3.426259L ) * candela /
square( meter ) };
90 constexpr quantity< time_interval_d > fortnight { Rep( 14 ) * day };
91 constexpr quantity< electric_charge_d > franklin { Rep( 3.335641e-10L ) * coulomb };
92 constexpr quantity< length_d > furlong { Rep( 2.01168e+2L ) * meter };
94 constexpr quantity< volume_d > gallon_imperial { Rep( 4.54609e-3L ) *
cube( meter ) };
95 constexpr quantity< volume_d > gallon_us { Rep( 3.785412e-3L ) *
cube( meter ) };
96 constexpr quantity< magnetic_flux_density_d > gamma { Rep( 1e-9L ) * tesla };
97 constexpr quantity< mass_d > gamma_mass { Rep( 1e-9L ) * kilogram };
98 constexpr quantity< magnetic_flux_density_d > gauss { Rep( 1e-4L ) * tesla };
99 constexpr quantity< electric_current_d > gilbert { Rep( 7.957747e-1L ) * ampere };
100 constexpr quantity< volume_d > gill_imperial { Rep( 1.420653e-4L ) *
cube( meter ) };
101 constexpr quantity< volume_d > gill_us { Rep( 1.182941e-4L ) *
cube( meter ) };
102 constexpr Rep gon { Rep( 9e-1L ) * degree_angle };
103 constexpr quantity< mass_d > grain { Rep( 6.479891e-5L ) * kilogram };
105 constexpr quantity< power_d > horsepower { Rep( 7.456999e+2L ) * watt };
106 constexpr quantity< power_d > horsepower_boiler { Rep( 9.80950e+3L ) * watt };
107 constexpr quantity< power_d > horsepower_electric{ Rep( 7.46e+2L ) * watt };
108 constexpr quantity< power_d > horsepower_metric { Rep( 7.354988e+2L ) * watt };
109 constexpr quantity< power_d > horsepower_uk { Rep( 7.4570e+2L ) * watt };
110 constexpr quantity< power_d > horsepower_water { Rep( 7.46043e+2L ) * watt };
111 constexpr quantity< time_interval_d > hour_sidereal { Rep( 3.590170e+3L ) * second };
112 constexpr quantity< mass_d > hundredweight_long { Rep( 5.080235e+1L ) * kilogram };
113 constexpr quantity< mass_d > hundredweight_short{ Rep( 4.535924e+1L ) * kilogram };
115 constexpr quantity< length_d > inch { Rep( 2.54e-2L ) * meter };
116 constexpr quantity< pressure_d > inches_mercury { Rep( 3.386389e+3L ) * pascal };
118 constexpr quantity< wave_number_d > kayser { Rep( 1e+2 ) / meter };
119 constexpr quantity< force_d > kilogram_force { Rep( 9.80665 ) * newton };
120 constexpr quantity< force_d > kilopond { Rep( 9.80665 ) * newton };
121 constexpr quantity< force_d > kip { Rep( 4.448222e+3L ) * newton };
123 constexpr quantity< volume_d > lambda_volume { Rep( 1e-9L ) *
cube( meter ) };
124 constexpr quantity< illuminance_d > lambert { Rep( 3.183099e+3L ) * candela /
square( meter ) };
125 constexpr quantity< heat_density_d > langley { Rep( 4.184e+4L ) * joule /
square( meter ) };
126 constexpr quantity< length_d > light_year { Rep( 9.46073e+15L ) * meter };
128 constexpr quantity< magnetic_flux_d > maxwell { Rep( 1e-8L ) * weber };
129 constexpr quantity< electric_conductance_d > mho { siemens };
130 constexpr quantity< length_d > micron { micro * meter };
131 constexpr quantity< length_d > mil { Rep( 2.54e-5L ) * meter };
132 constexpr Rep mil_angle { Rep( 5.625e-2L ) * degree_angle };
133 constexpr quantity< area_d > mil_circular { Rep( 5.067075e-10L ) *
square( meter ) };
134 constexpr quantity< length_d > mile { Rep( 1.609344e+3L ) * meter };
135 constexpr quantity< length_d > mile_us_survey { Rep( 1.609347e+3L ) * meter };
136 constexpr quantity< time_interval_d > minute_sidereal { Rep( 5.983617e+1L ) * second };
138 constexpr quantity< dimensions< -1, 0, 0, 1 > >oersted { Rep( 7.957747e+1L ) * ampere / meter };
139 constexpr quantity< mass_d > ounce_avdp { Rep( 2.834952e-2L ) * kilogram };
140 constexpr quantity< volume_d > ounce_fluid_imperial{ Rep( 2.841306e-5L ) *
cube( meter ) };
141 constexpr quantity< volume_d > ounce_fluid_us { Rep( 2.957353e-5L ) *
cube( meter ) };
142 constexpr quantity< force_d > ounce_force { Rep( 2.780139e-1L ) * newton };
143 constexpr quantity< mass_d > ounce_troy { Rep( 3.110348e-2L ) * kilogram };
145 constexpr quantity< length_d > parsec { Rep( 3.085678e+16L ) * meter };
146 constexpr quantity< volume_d > peck { Rep( 8.809768e-3L ) *
cube( meter ) };
147 constexpr quantity< mass_d > pennyweight { Rep( 1.555174e-3L ) * kilogram };
148 constexpr quantity< substance_permeability_d > perm_0C { Rep( 5.72135e-11L ) * kilogram / pascal / second /
square( meter ) };
149 constexpr quantity< substance_permeability_d > perm_23C { Rep( 5.74525e-11L ) * kilogram / pascal / second /
square( meter ) };
150 constexpr quantity< illuminance_d > phot { Rep( 1e+4L ) * lux };
151 constexpr quantity< length_d > pica_computer { Rep( 4.233333e-3L ) * meter };
152 constexpr quantity< length_d > pica_printers { Rep( 4.217518e-3L ) * meter };
153 constexpr quantity< volume_d > pint_dry { Rep( 5.506105e-4L ) *
cube( meter ) };
154 constexpr quantity< volume_d > pint_liquid { Rep( 4.731765e-4L ) *
cube( meter ) };
155 constexpr quantity< length_d > point_computer { Rep( 3.527778e-4L ) * meter };
156 constexpr quantity< length_d > point_printers { Rep( 3.514598e-4L ) * meter };
157 constexpr quantity< dynamic_viscosity_d > poise { Rep( 1e-1L ) * pascal * second };
158 constexpr quantity< mass_d > pound_avdp { Rep( 4.5359237e-1L ) * kilogram };
159 constexpr quantity< force_d > pound_force { Rep( 4.448222L ) * newton };
160 constexpr quantity< mass_d > pound_troy { Rep( 3.732417e-1L ) * kilogram };
161 constexpr quantity< force_d > poundal { Rep( 1.382550e-1L ) * newton };
162 constexpr quantity< pressure_d > psi { Rep( 6.894757e+3L ) * pascal };
164 constexpr quantity< energy_d > quad { Rep( 1e+15L ) * btu_it };
165 constexpr quantity< volume_d > quart_dry { Rep( 1.101221e-3L ) *
cube( meter ) };
166 constexpr quantity< volume_d > quart_liquid { Rep( 9.463529e-4L ) *
cube( meter ) };
168 constexpr Rep revolution { Rep( 2 ) * pi };
169 constexpr quantity< dimensions< 1, -1, 1 > > rhe { Rep( 1e+1L ) / pascal / second };
170 constexpr quantity< length_d > rod { Rep( 5.029210L ) * meter };
171 constexpr quantity< angular_velocity_d > rpm { Rep( 1.047198e-1L ) / second };
173 constexpr quantity< time_interval_d > second_sidereal { Rep( 9.972696e-1L ) * second };
174 constexpr quantity< time_interval_d > shake { Rep( 1e-8L ) * second };
175 constexpr quantity< mass_d > slug { Rep( 1.459390e+1L ) * kilogram };
176 constexpr quantity< electric_current_d > statampere { Rep( 3.335641e-10L ) * ampere };
177 constexpr quantity< electric_charge_d > statcoulomb { Rep( 3.335641e-10L ) * coulomb };
178 constexpr quantity< capacitance_d > statfarad { Rep( 1.112650e-12L ) * farad };
179 constexpr quantity< inductance_d > stathenry { Rep( 8.987552e+11L ) * henry };
180 constexpr quantity< electric_conductance_d > statmho { Rep( 1.112650e-12L ) * siemens };
181 constexpr quantity< electric_resistance_d > statohm { Rep( 8.987552e+11L ) * ohm };
182 constexpr quantity< electric_potential_d > statvolt { Rep( 2.997925e+2L ) * volt };
183 constexpr quantity< volume_d > stere {
cube( meter ) };
184 constexpr quantity< illuminance_d > stilb { Rep( 1e+4L ) * candela /
square( meter ) };
185 constexpr quantity< kinematic_viscosity_d > stokes { Rep( 1e-4L ) *
square( meter ) / second };
187 constexpr quantity< volume_d > tablespoon { Rep( 1.478676e-5L ) *
cube( meter ) };
188 constexpr quantity< volume_d > teaspoon { Rep( 4.928922e-6L ) *
cube( meter ) };
189 constexpr quantity< dimensions< -1, 1, 0 > > tex { Rep( 1e-6L ) * kilogram / meter };
190 constexpr quantity< energy_d > therm_ec { Rep( 1.05506e+8L ) * joule };
191 constexpr quantity< energy_d > therm_us { Rep( 1.054804e+8L ) * joule };
192 constexpr quantity< mass_d > ton_assay { Rep( 2.916667e-2L ) * kilogram };
193 constexpr quantity< force_d > ton_force { Rep( 8.896443e+3L ) * newton };
194 constexpr quantity< mass_d > ton_long { Rep( 1.016047e+3L ) * kilogram };
195 constexpr quantity< heat_flow_rate_d > ton_refrigeration { Rep( 3.516853e+3L ) * watt };
196 constexpr quantity< volume_d > ton_register { Rep( 2.831685L ) *
cube( meter ) };
197 constexpr quantity< mass_d > ton_short { Rep( 9.071847e+2L ) * kilogram };
198 constexpr quantity< energy_d > ton_tnt { Rep( 4.184e+9L ) * joule };
199 constexpr quantity< pressure_d > torr { Rep( 1.333224e+2L ) * pascal };
201 constexpr quantity< magnetic_flux_d > unit_pole { Rep( 1.256637e-7L ) * weber };
203 constexpr quantity< time_interval_d > week { Rep( 604800L ) * second };
205 constexpr quantity< length_d > x_unit { Rep( 1.002e-13L ) * meter };
207 constexpr quantity< length_d > yard { Rep( 9.144e-1L ) * meter };
208 constexpr quantity< time_interval_d > year_sidereal { Rep( 3.155815e+7L ) * second };
209 constexpr quantity< time_interval_d > year_std { Rep( 3.1536e+7L ) * second };
210 constexpr quantity< time_interval_d > year_tropical { Rep( 3.155693e+7L ) * second };
214 #endif // PHYS_UNITS_OTHER_UNITS_HPP_INCLUDED
Zero-overhead dimensional analysis and unit/quantity manipulation and conversion. ...
constexpr detail::Power< D, 3, X > cube(quantity< D, X > const &x)
cube.
constexpr detail::Power< D, 2, X > square(quantity< D, X > const &x)
square.