Skip to content

Commit b60edb1

Browse files
update docs on elec metering (#24)
* per feedback from community & Labs WG
1 parent e648535 commit b60edb1

2 files changed

Lines changed: 39 additions & 30 deletions

File tree

src/docHaystack/doc/Meters.fandoc

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -71,26 +71,27 @@ Primary Quantities for AC and DC measurements [#primaryQuantities]
7171
==================================================================
7272
Both `ac-elec-meter` and `dc-elec-meter` support measurements of the
7373
following electrical primary quantities:
74-
- `power`: Instantaneously measured in "kW" units for 'dc' measurements.
75-
Instantaneously measured in "kW", "kVAR", or "kVA" units for 'ac'
76-
measurements depending on the characteristic `active`, `reactive`, or `apparent`.
77-
- `demand`: Measurements indicate an average of instantaneous power values over
78-
a defined time interval (e.g., 5, 15, or 30 minutes) and have the same units
79-
that are used for `power` measurements.
80-
- `energy`: Similar to `demand`, measurements indicate an average of
81-
instantaneous power values over a defined time interval (e.g., 60 minutes).
82-
Measured in "kWh" units for 'dc' measurements. Measured in "kWh", "kVARh",
83-
or "kVAh" units for 'ac' measurements depending on the characteristic `active`,
84-
`reactive`, or `apparent`.
85-
- `volt`: Instantaneously measured in "V" units for both 'ac' and 'dc'
74+
- `power`: Average electric power over one or several alternating current (AC) cycles
75+
or instantaneous DC electric power. Measured in "kW", "kVAR", or "kVA" units for 'ac'
76+
measurements depending on the characteristic `active`, `reactive`, or `apparent`,
77+
respectively. Measured in "kW" units for 'dc' measurements.
78+
- `demand`: Average electric power over a defined time interval (e.g., 5, 15, or 30
79+
minutes). Measured in the same units that are used for `power` measurements.
80+
- `energy`: Integral of electric power over time. Measured in "kWh", "kVARh", or
81+
"kVAh" units for 'ac' measurements depending on the characteristic `active`,
82+
`reactive`, or `apparent`, respectively. Measured in "kWh" units for 'dc'
8683
measurements.
87-
- `current`: Instantaneously measured in "A" units for both 'ac' and
88-
'dc' measurements.
84+
- `volt`: Effective voltage. Root mean square (RMS) voltage is assumed for `ac`
85+
measurements. Measured in "V" units.
86+
- `current`: Effective current. Root mean square (RMS) current is assumed for `ac`
87+
measurements. Measured in "A" units.
8988

9089
The following primary quantities apply only to AC electrical measurements:
91-
- `freq`: Instantaneously measured in "Hz" units.
92-
- `pf`: Instantaneously measured as a percentage of AC active power to
93-
AC apparent power.
90+
- `freq`: The number of cycles per second in an alternating current (AC) sinusoidal
91+
waveform. Measured in "Hz" units.
92+
- `pf`: The ratio of active power to apparent power. Measured with numbers in the
93+
range of -1.0 to 1.0 or 0.0 to 1.0 with a special unit called 'pf', which is
94+
effectively unitless and used for data visualization.
9495

9596
Some electric meters log interval-based data, demand or energy, using a
9697
monotonically increasing value in time. The difference of these values
@@ -151,7 +152,7 @@ AC voltage and current measurements are further qualified by the following
151152
characteristics:
152153
- `magnitude`: magnitude (assumed as default)
153154
- `angle`: phase angle, typically measured in "deg"
154-
- `imbalance`: imbalance between phases, measured in "%"
155+
- `imbalance`: imbalance, measured in "%"
155156
- `thd`: total harmonic distortion, measured in "%"
156157

157158
Similarly AC power factor measurements are further qualified using a
@@ -188,10 +189,6 @@ Non-aggregated 'ac' electrical measurement locations are qualified by:
188189
- `neutral`: for electrical current measurement of the electrical neutral
189190
conductor
190191

191-
Note: In the future 'phaseDemand' and 'lineDemand' tags may be defined. For now
192-
'phasePower' or 'linePower' tags may be used to describe point entities with the
193-
'demand' tag.
194-
195192
Aggregated three-phase 'ac' electrical measurement locations are qualified by:
196193
- `lineAvg`: When applied to a point entity with the 'current' tag, indicates the
197194
average of the values for the 'current' primary quantity characteristic at all
@@ -222,9 +219,13 @@ Aggregated split-phase 'ac' electrical measurement locations are qualified by:
222219
'elecLine'.
223220
- `total`: Applies only to point entities with 'power', 'demand', or 'energy' tags.
224221
Indicates the sum of the values for the primary quantity's characteristic at the "L1"
225-
and "L2" locations defined in 'elecLine'. This tag is also used in conjunction with
226-
the 'elecLineToLine' tag that has a value "L1-L2" to help describe the complete flow
227-
of electricity in a common way for three-phase and split-phase electrical systems.
222+
and "L2" locations defined in 'elecLine'.
223+
224+
Only one tag indicating the location of a measurement should be applied to a point
225+
entity. The 'total' tag takes precedence when applicable to allow for common queries
226+
between three-phase and split-phase AC electrical systems. For example, in a
227+
split-phase 'ac' electrical system the 'total' tag should be applied to a point entity
228+
instead of 'linePower' to indicate the L1-L2 power measurement.
228229

229230
Note: The primary quantity 'freq' does not have location related tags.
230231

src/phIoT/lib/elec.trio

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,10 @@ is: ^quantity
242242
quantityOf: ^ac-elec
243243
prefUnit: ["pf"]
244244
doc:
245-
Electrical power factor; unitless number between 0.0 and 1.0 which is ratio
246-
of active to apparent power in an AC power system.
245+
Electric power factor; which is the ratio of active power to apparent
246+
power in an AC electric power system. Measured with numbers in the range
247+
of -1.0 to 1.0 or 0.0 to 1.0 with a special unit called 'pf', which is
248+
effectively unitless and used for data visualization.
247249
--------------------------------------------------------------------------
248250
def: ^pfScope
249251
is: ^choice
@@ -340,13 +342,13 @@ def: ^current-imbalance
340342
is: ^quantity
341343
quantityOf: ^ac-elec
342344
prefUnit: ["%"]
343-
doc: "Current phase imbalance in a multiphase AC system"
345+
doc: "AC current imbalance"
344346
--------------------------------------------------------------------------
345347
def: ^current-thd
346348
is: ^quantity
347349
quantityOf: ^ac-elec
348350
prefUnit: ["%"]
349-
doc: "Total harmonic current distortion"
351+
doc: "Total harmonic distortion (THD) of current"
350352
--------------------------------------------------------------------------
351353

352354
//////////////////////////////////////////////////////////////////////////
@@ -370,7 +372,13 @@ def: ^volt-imbalance
370372
is: ^quantity
371373
quantityOf: ^ac-elec
372374
prefUnit: ["%"]
373-
doc: "AC voltage phase imbalance"
375+
doc: "AC voltage imbalance"
376+
--------------------------------------------------------------------------
377+
def: ^volt-thd
378+
is: ^quantity
379+
quantityOf: ^ac-elec
380+
prefUnit: ["%"]
381+
doc: "Total harmonic distortion (THD) of voltage"
374382
--------------------------------------------------------------------------
375383

376384
//////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)