Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Energy.cs
1using System.Collections.Generic;
3
5{
13 public class Energy : IDerivedQuantity
14 {
22 public Energy()
23 {
24 }
25
29 public string Name => "Energy";
30
34 public Unit Reference => reference;
35
36 private static readonly Unit reference = new Unit(new AtomicUnit("J"));
37
41 public KeyValuePair<string, PhysicalQuantity>[] DerivedUnits
42 {
43 get
44 {
45 return new KeyValuePair<string, PhysicalQuantity>[]
46 {
47 new KeyValuePair<string, PhysicalQuantity>("J", new PhysicalQuantity(1, new Unit(Prefix.Kilo,
48 new KeyValuePair<AtomicUnit, int>[]
49 {
50 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("g"), 1),
51 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("m"), 2),
52 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("s"), -2)
53 }))),
54 new KeyValuePair<string, PhysicalQuantity>("BTU", new PhysicalQuantity(1.055055853, new Unit(Prefix.Mega,
55 new KeyValuePair<AtomicUnit, int>[]
56 {
57 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("g"), 1),
58 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("m"), 2),
59 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("s"), -2)
60 })))
61 };
62 }
63 }
64 }
65}
Represents an atomic unit.
Definition: AtomicUnit.cs:7
string Name
Name of derived quantity.
Definition: Energy.cs:29
Unit Reference
Reference unit of category.
Definition: Energy.cs:34
KeyValuePair< string, PhysicalQuantity >[] DerivedUnits
Derived Units supported.
Definition: Energy.cs:42
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