ReFRACtor
|
Define various units. More...
Functions | |
const Unit | A ("A", 1.0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0) |
const Unit | arcsec ("arcsec", deg/(60.0 *60)) |
const Unit | cd ("cd", 1.0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0) |
const Unit | cm ("cm", 1e-2 *m) |
const Unit | day ("day", 24 *60 *60 *s) |
const Unit | deg ("deg", pi/180.0 *rad) |
const Unit | dimensionless ("dimensionless", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) |
const Unit | g ("g", 1e-3 *kg) |
const Unit | inv_cm ("cm^-1", pow(cm, -1)) |
const Unit | inv_sr ("sr^-1", pow(sr, -1)) |
const Unit | J ("J", N *m) |
const Unit | K ("K", 1.0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0) |
const Unit | kg ("kg", 1.0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0) |
const Unit | km ("km", 1e3 *m) |
const Unit | kW ("kW", 1e3 *W) |
const Unit | m ("m", 1.0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) |
const Unit | micron ("micron", 1e-6 *m) |
const Unit | mol ("mol", 1.0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0) |
const Unit | mW ("mW", 1e-3 *W) |
const Unit | N ("N", kg *m/(s *s)) |
const Unit | nm ("nm", 1e-9 *m) |
const Unit | Pa ("Pa", N/(m *m)) |
const Unit | ph ("ph", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0) |
const Unit | rad ("rad", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0) |
const Unit | s ("s", 1.0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0) |
const Unit | sample_index ("sample_index", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1) |
const Unit | sr ("sr", 1.0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0) |
const Unit | uW ("uW", 1e-6 *W) |
const Unit | W ("W", J/s) |
const Unit | year ("year", 365.25 *24 *60 *60 *s) |
Variables | |
const double | pi = 3.14159265358979323846 |
Pi. More... | |
Define various units.
Note that if you add something here, you should also look in unit.cc in the base_unit_ defined for the parser.
const Unit FullPhysics::units::A | ( | "A" | , |
1. | 0, | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | |||
) |
const Unit FullPhysics::units::cd | ( | "cd" | , |
1. | 0, | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | |||
) |
const Unit FullPhysics::units::cm | ( | "cm" | , |
1e-2 * | m | ||
) |
const Unit FullPhysics::units::day | ( | "day" | , |
24 *60 *60 * | s | ||
) |
const Unit FullPhysics::units::dimensionless | ( | "dimensionless" | , |
1. | 0, | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | |||
) |
const Unit FullPhysics::units::g | ( | "g" | , |
1e-3 * | kg | ||
) |
const Unit FullPhysics::units::K | ( | "K" | , |
1. | 0, | ||
0 | , | ||
0 | , | ||
0 | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | |||
) |
const Unit FullPhysics::units::kg | ( | "kg" | , |
1. | 0, | ||
0 | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | |||
) |
const Unit FullPhysics::units::km | ( | "km" | , |
1e3 * | m | ||
) |
const Unit FullPhysics::units::kW | ( | "kW" | , |
1e3 * | W | ||
) |
const Unit FullPhysics::units::m | ( | "m" | , |
1. | 0, | ||
1 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | |||
) |
const Unit FullPhysics::units::micron | ( | "micron" | , |
1e-6 * | m | ||
) |
const Unit FullPhysics::units::mol | ( | "mol" | , |
1. | 0, | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | |||
) |
const Unit FullPhysics::units::mW | ( | "mW" | , |
1e-3 * | W | ||
) |
const Unit FullPhysics::units::nm | ( | "nm" | , |
1e-9 * | m | ||
) |
const Unit FullPhysics::units::ph | ( | "ph" | , |
1. | 0, | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
1 | , | ||
0 | |||
) |
const Unit FullPhysics::units::rad | ( | "rad" | , |
1. | 0, | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
1 | , | ||
0 | , | ||
0 | |||
) |
const Unit FullPhysics::units::s | ( | "s" | , |
1. | 0, | ||
0 | , | ||
0 | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | |||
) |
const Unit FullPhysics::units::sample_index | ( | "sample_index" | , |
1. | 0, | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
1 | |||
) |
const Unit FullPhysics::units::sr | ( | "sr" | , |
1. | 0, | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
0 | |||
) |
const Unit FullPhysics::units::uW | ( | "uW" | , |
1e-6 * | W | ||
) |
const Unit FullPhysics::units::year | ( | "year" | , |
365.25 *24 *60 *60 * | s | ||
) |