uom/si/
electric_current.rs

1//! Electric current (base unit ampere, A).
2
3quantity! {
4    /// Electric current (base unit ampere, A).
5    quantity: ElectricCurrent; "electric current";
6    /// Dimension of electric current, I (base unit ampere, A).
7    dimension: ISQ<
8        Z0,     // length
9        Z0,     // mass
10        Z0,     // time
11        P1,     // electric current
12        Z0,     // thermodynamic temperature
13        Z0,     // amount of substance
14        Z0>;    // luminous intensity
15    units {
16        @yottaampere: prefix!(yotta); "YA", "yottaampere", "yottaamperes";
17        @zettaampere: prefix!(zetta); "ZA", "zettaampere", "zettaamperes";
18        @exaampere: prefix!(exa); "EA", "exaampere", "exaamperes";
19        @petaampere: prefix!(peta); "PA", "petaampere", "petaamperes";
20        @teraampere: prefix!(tera); "TA", "teraampere", "teraamperes";
21        @gigaampere: prefix!(giga); "GA", "gigaampere", "gigaamperes";
22        @megaampere: prefix!(mega); "MA", "megaampere", "megaamperes";
23        @kiloampere: prefix!(kilo); "kA", "kiloampere", "kiloamperes";
24        @hectoampere: prefix!(hecto); "hA", "hectoampere", "hectoamperes";
25        @decaampere: prefix!(deca); "daA", "decaampere", "decaamperes";
26        /// The ampere is the SI unit of electric current. It is defined by taking the fixed
27        /// numerical value of the elementary charge *e* to be 1.602 176 634 × 10⁻¹⁹ when expressed
28        /// in the unit C, which is equal to A s, where the second is defined in terms of
29        /// ∆*ν*<sub>Cs</sub>.
30        @ampere: prefix!(none); "A", "ampere", "amperes";
31        @deciampere: prefix!(deci); "dA", "deciampere", "deciamperes";
32        @centiampere: prefix!(centi); "cA", "centiampere", "centiamperes";
33        @milliampere: prefix!(milli); "mA", "millampere", "millamperes";
34        @microampere: prefix!(micro); "µA", "microampere", "microamperes";
35        @nanoampere: prefix!(nano); "nA", "nanoampere", "nanoamperes";
36        @picoampere: prefix!(pico); "pA", "picoampere", "picoamperes";
37        @femtoampere: prefix!(femto); "fA", "femtoampere", "femtoamperes";
38        @attoampere: prefix!(atto); "aA", "attoampere", "attoamperes";
39        @zeptoampere: prefix!(zepto); "zA", "zeptoampere", "zeptoamperes";
40        @yoctoampere: prefix!(yocto); "yA", "yoctoampere", "yoctoamperes";
41
42        /// Atomic unit of charge (electric charge carried by a single proton) per second.
43        @elementary_charge_per_second: 1.602_176_634_E-19; "e/s", "elementary charge per second",
44            "elementary charges per second";
45        @atomic_unit_of_charge_per_second: 1.602_176_634_E-19; "a.u. of charge/s",
46            "atomic unit of charge per second", "atomic units of charge per second";
47        @abampere: 1.0_E1; "abA", "abampere", "abamperes";
48        @gilbert: 7.957_747_E-1; "Gi", "gilbert", "gilberts";
49        @statampere: 3.335_641_E-10; "statA", "statampere", "statamperes";
50    }
51}