-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add/rename electric quantities (#1444)
Renamed quantities to have prefix "Electric", marking old name as obsolete and adding new duplicate quantities: * `ApparentEnergy` -> `ElectricApparentEnergy` * `ApparentPower` -> `ElectricApparentPower` * `Capacitance` -> `ElectricCapacitance` * `ReactiveEnergy` -> `ElectricReactiveEnergy` * `ReactivePower` -> `ElectricReactivePower ` * `ElectricPotentialAc` * `ElectricPotentialDc` * `ElectricAdmittance` (obsolete due to being a complex number, not supported by UnitsNet, recommending `ElectricReactance` and `ElectricSusceptance` instead) Decided against adding `ElectricImpedance`, also being a complex number. New: - Add `ElectricReactance` - Add `ElectricSusceptance` - Add `EletricCurrent = ElectricApparentPower / ElectricPotential` - Add `ElectricPotential = ElectricApparentPower / ElectricCurrent` - `ElectricAdmittance`: - Add prefixes: Kilo, Mega, Giga, Tera - Add Mho unit, equivalent to Siemen - `ElectricConductance`: - Add prefixes: Mega, Giga, Tera - Add Mho unit, equivalent to Siemen - `EletricResistance`: - Add prefixes: Nano --------- Co-authored-by: Andreas Gullberg Larsen <andreas.larsen84@gmail.com>
- Loading branch information
1 parent
52aba98
commit 6b05cc8
Showing
177 changed files
with
22,344 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"Name": "ElectricApparentEnergy", | ||
"BaseUnit": "VoltampereHour", | ||
"XmlDocSummary": "A unit for expressing the integral of apparent power over time, equal to the product of 1 volt-ampere and 1 hour, or to 3600 joules.", | ||
"BaseDimensions": { | ||
"L": 2, | ||
"M": 1, | ||
"T": -2 | ||
}, | ||
"Units": [ | ||
{ | ||
"SingularName": "VoltampereHour", | ||
"PluralName": "VoltampereHours", | ||
"FromUnitToBaseFunc": "{x}", | ||
"FromBaseToUnitFunc": "{x}", | ||
"Prefixes": [ "Kilo", "Mega" ], | ||
"Localization": [ | ||
{ | ||
"Culture": "en-US", | ||
"Abbreviations": [ "VAh" ] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"Name": "ElectricApparentPower", | ||
"BaseUnit": "Voltampere", | ||
"XmlDocSummary": "Power engineers measure apparent power as the magnitude of the vector sum of active and reactive power. It is the product of the root mean square voltage (in volts) and the root mean square current (in amperes).", | ||
"XmlDocRemarks": "https://en.wikipedia.org/wiki/AC_power#Active,_reactive,_apparent,_and_complex_power_in_sinusoidal_steady-state", | ||
"BaseDimensions": { | ||
"L": 2, | ||
"M": 1, | ||
"T": -3 | ||
}, | ||
"Units": [ | ||
{ | ||
"SingularName": "Voltampere", | ||
"PluralName": "Voltamperes", | ||
"FromUnitToBaseFunc": "{x}", | ||
"FromBaseToUnitFunc": "{x}", | ||
"Prefixes": [ "Micro", "Milli", "Kilo", "Mega", "Giga" ], | ||
"Localization": [ | ||
{ | ||
"Culture": "en-US", | ||
"Abbreviations": [ "VA" ] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"Name": "ElectricCapacitance", | ||
"BaseUnit": "Farad", | ||
"XmlDocSummary": "Capacitance is the capacity of a material object or device to store electric charge.", | ||
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Capacitance", | ||
"BaseDimensions": { | ||
"L": -2, | ||
"M": -1, | ||
"T": 4, | ||
"I": 2 | ||
}, | ||
"Units": [ | ||
{ | ||
"SingularName": "Farad", | ||
"PluralName": "Farads", | ||
"BaseUnits": { | ||
"L": "Meter", | ||
"M": "Kilogram", | ||
"T": "Second", | ||
"I": "Ampere" | ||
}, | ||
"FromUnitToBaseFunc": "{x}", | ||
"FromBaseToUnitFunc": "{x}", | ||
"Prefixes": [ "Pico", "Nano", "Micro", "Milli", "Kilo", "Mega" ], | ||
"Localization": [ | ||
{ | ||
"Culture": "en-US", | ||
"Abbreviations": [ "F" ] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"Name": "ElectricImpedance", | ||
"BaseUnit": "Ohm", | ||
"XmlDocSummary": "Electric impedance is the opposition to alternating current presented by the combined effect of resistance and reactance in a circuit. It is defined as the inverse of admittance. The SI unit of impedance is the ohm (symbol Ω).", | ||
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Electrical_impedance", | ||
"ObsoleteText": "Impedance is a complex number, which is not currently supported by UnitsNet. Please use either ElectricResistance or ElectricReactance instead.", | ||
"BaseDimensions": { | ||
"L": 2, | ||
"M": 1, | ||
"T": -3, | ||
"I": -2 | ||
}, | ||
"Units": [ | ||
{ | ||
"SingularName": "Ohm", | ||
"PluralName": "Ohms", | ||
"FromUnitToBaseFunc": "{x}", | ||
"FromBaseToUnitFunc": "{x}", | ||
"Prefixes": [ "Nano", "Micro", "Milli", "Kilo", "Mega", "Giga", "Tera" ], | ||
"Localization": [ | ||
{ | ||
"Culture": "en-US", | ||
"Abbreviations": [ "Ω" ] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"Name": "ElectricReactance", | ||
"BaseUnit": "Ohm", | ||
"XmlDocSummary": "In electrical circuits, reactance is the opposition presented to alternating current by inductance and capacitance. Along with resistance, it is one of two elements of impedance.", | ||
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Electrical_reactance", | ||
"BaseDimensions": { | ||
"L": 2, | ||
"M": 1, | ||
"T": -3, | ||
"I": -2 | ||
}, | ||
"Units": [ | ||
{ | ||
"SingularName": "Ohm", | ||
"PluralName": "Ohms", | ||
"FromUnitToBaseFunc": "{x}", | ||
"FromBaseToUnitFunc": "{x}", | ||
"Prefixes": [ "Nano", "Micro", "Milli", "Kilo", "Mega", "Giga", "Tera" ], | ||
"Localization": [ | ||
{ | ||
"Culture": "en-US", | ||
"Abbreviations": [ "Ω" ] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"Name": "ElectricReactiveEnergy", | ||
"BaseUnit": "VoltampereReactiveHour", | ||
"XmlDocSummary": "The volt-ampere reactive hour (expressed as varh) is the reactive power of one Volt-ampere reactive produced in one hour.", | ||
"BaseDimensions": { | ||
"L": 2, | ||
"M": 1, | ||
"T": -2 | ||
}, | ||
"Units": [ | ||
{ | ||
"SingularName": "VoltampereReactiveHour", | ||
"PluralName": "VoltampereReactiveHours", | ||
"FromUnitToBaseFunc": "{x}", | ||
"FromBaseToUnitFunc": "{x}", | ||
"Prefixes": [ "Kilo", "Mega" ], | ||
"Localization": [ | ||
{ | ||
"Culture": "en-US", | ||
"Abbreviations": [ "varh" ] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"Name": "ElectricReactivePower", | ||
"BaseUnit": "VoltampereReactive", | ||
"XmlDocSummary": "In electric power transmission and distribution, volt-ampere reactive (var) is a unit of measurement of reactive power. Reactive power exists in an AC circuit when the current and voltage are not in phase.", | ||
"XmlDocRemarks": "https://en.wikipedia.org/wiki/AC_power#Active,_reactive,_apparent,_and_complex_power_in_sinusoidal_steady-state", | ||
"BaseDimensions": { | ||
"L": 2, | ||
"M": 1, | ||
"T": -3 | ||
}, | ||
"Units": [ | ||
{ | ||
"SingularName": "VoltampereReactive", | ||
"PluralName": "VoltamperesReactive", | ||
"FromUnitToBaseFunc": "{x}", | ||
"FromBaseToUnitFunc": "{x}", | ||
"Prefixes": [ "Kilo", "Mega", "Giga" ], | ||
"Localization": [ | ||
{ | ||
"Culture": "en-US", | ||
"Abbreviations": [ "var" ] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.