Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Resistance.cs
1using System.Collections.Generic;
3
5{
10 {
14 public Resistance()
15 {
16 }
17
21 public string Name => "Resistance";
22
26 public Unit Reference => reference;
27
28 private static readonly Unit reference = new Unit(new AtomicUnit("Ω"));
29
33 public KeyValuePair<string, PhysicalQuantity>[] DerivedUnits
34 {
35 get
36 {
37 return new KeyValuePair<string, PhysicalQuantity>[]
38 {
39 new KeyValuePair<string, PhysicalQuantity>("Ω", new PhysicalQuantity(1, new Unit(Prefix.Kilo,
40 new KeyValuePair<AtomicUnit, int>[]
41 {
42 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("m"), 2),
43 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("g"), 1),
44 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("s"), -3),
45 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("A"), -2)
46 }))),
47 new KeyValuePair<string, PhysicalQuantity>("Ohm", new PhysicalQuantity(1, new Unit(Prefix.Kilo,
48 new KeyValuePair<AtomicUnit, int>[]
49 {
50 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("m"), 2),
51 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("g"), 1),
52 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("s"), -3),
53 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("A"), -2)
54 }))),
55 new KeyValuePair<string, PhysicalQuantity>("ohm", new PhysicalQuantity(1, new Unit(Prefix.Kilo,
56 new KeyValuePair<AtomicUnit, int>[]
57 {
58 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("m"), 2),
59 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("g"), 1),
60 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("s"), -3),
61 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("A"), -2)
62 })))
63 };
64 }
65 }
66 }
67}
Represents an atomic unit.
Definition: AtomicUnit.cs:7
KeyValuePair< string, PhysicalQuantity >[] DerivedUnits
Derived Units supported.
Definition: Resistance.cs:34
string Name
Name of derived quantity.
Definition: Resistance.cs:21
Unit Reference
Reference unit of category.
Definition: Resistance.cs:26
Represents a unit.
Definition: Unit.cs:15
Interface for derived quantities
Prefix
SI prefixes. http://physics.nist.gov/cuu/Units/prefixes.html
Definition: Prefixes.cs:11