Why remove the mean?
Mean removal suppresses a constant DC component inside the selected window before fundamental correlation. It is not a complete decaying-DC compensation algorithm.
Application note AN-01
ARVREL currently uses a complete one-cycle, mean-removed, single-bin discrete Fourier estimator at the nominal fundamental frequency. It does not compute or claim a full harmonic-spectrum FFT.
Implementation sequence
Mathematical form
For a window of N samples, ARVREL subtracts the sample mean and accumulates the real and imaginary correlations at the nominal fundamental bin.
mean = (1/N) Σ x[k] X1 = (√2/N) Σ (x[k] - mean) · (cos(-2πk/N) + j·sin(-2πk/N)) Result: complex RMS phasor X1
Mean removal suppresses a constant DC component inside the selected window before fundamental correlation. It is not a complete decaying-DC compensation algorithm.
The implemented protection functions require the nominal fundamental phasor, not a complete frequency spectrum. A single-bin estimator is simpler to review and deterministic for the tested nominal-frequency fixtures.
Derived quantities
Each available channel is converted into a complex RMS phasor using the same one-cycle estimator.
An explicitly decoded fourth channel is preferred. When unavailable, residual quantities can be calculated from the three phase phasors and must retain fallback provenance.
The conventional complex a-operator transformation derives sequence currents and voltages from the phase phasors.
Deterministic evidence
The current test constructs 80 samples per cycle of balanced synthetic sine waves, evaluates current and voltage RMS, checks positive-sequence magnitude, and restrains negative sequence for the balanced fixture.
| Input | Expected result | Automated anchor |
|---|---|---|
| 80 samples/cycle, 2 A RMS balanced current | IA ≈ 2 A RMS; I1 ≈ 2 A; I2 near zero | FundamentalEstimator_ReturnsRmsMagnitudeAndBalancedPositiveSequence |
| 80 samples/cycle, 63.5 V RMS balanced voltage | VA ≈ 63.5 V RMS; V1 ≈ 63.5 V | FeederProtectionTests.cs |
Current limitations