Skip to content

Commit 5962842

Browse files
elec: add iec or ieee distinction for pf (#27)
1 parent 960a8df commit 5962842

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

src/docHaystack/doc/Meters.fandoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,13 @@ Haystack uses the load convention for net electricity flow.
155155
- Positive net quantities indicate electricity consumed (i.e. load).
156156
- Negative net quantities indicate electricity produced (i.e. generation).
157157

158+
The positive or negative sign for power factor is interpreted using IEC or IEEE
159+
convention specified with `pfIec` or `pfIeee` tags.
160+
161+
- IEC convention defines the sign based on the direction of active power flow.
162+
- IEEE convention defines the sign based on whether the load is capacitive or
163+
inductive.
164+
158165
Note: Direction-related tags do not apply to 'voltage' or to the 'angle',
159166
'imbalance', and 'thd' characteristics used to describe current.
160167

src/phIoT/lib/elec.trio

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,27 @@ doc:
302302
attributable to harmonic distortion in voltage and current waveforms.
303303
wikipedia: `https://en.wikipedia.org/wiki/Power_factor#Distortion_power_factor`
304304
--------------------------------------------------------------------------
305+
def: ^pfStandard
306+
is: ^choice
307+
doc: "Standard for interpreting power factor's positive or negative sign"
308+
--------------------------------------------------------------------------
309+
def: ^pfIec
310+
is: ^pfStandard
311+
doc:
312+
Power factor according to the IEC convention defines a positive or
313+
negative sign based on the direction of active power flow. Power factor
314+
is positive when active power flows into a load. Power factor is negative
315+
when active power flows out of a load.
316+
--------------------------------------------------------------------------
317+
def: ^pfIeee
318+
is: ^pfStandard
319+
doc:
320+
Power factor according to the IEEE convention defines a positive or
321+
negative sign based on whether the load is capacitive or inductive. Power
322+
factor is positive when the load is capacitive, or when voltage lags behind
323+
current. Power factor is negative when the load is inductive, or when
324+
current lags behind voltage.
325+
--------------------------------------------------------------------------
305326

306327
//////////////////////////////////////////////////////////////////////////
307328
// AC Power Quantities

0 commit comments

Comments
 (0)