functions.harmonics: AC Harmonic Distortion

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

Calculates harmonic distortion

Usage

1
harmonic(x, harm.odd, lab.units)

Arguments

x

list of arrays c(mag,phase) with fundamental magnitude and phase

harm.odd

fraction of odd harmonics with respect to the fundamental

lab.units

label for units

Details

Function harmonic performs calculations and plots, including odd harmonics and THD.

Value

t

Time sequence

Itot

Total currents

Isum

Sum of currents in neutral

THD

Total Harmonic Distortion

Note

Functions used in Chapter 10 of Acevedo (2018)

Author(s)

Miguel F. Acevedo acevedo@unt.edu

References

Acevedo, M.F. 2018. Introduction to Renewable Electric Power Systems and the Environment with R. Boca Raton, FL: CRC Press. (ISBN 9781138197343)

See Also

AC waves and plots ac.plot, phasor.plot, waves three-phase generator

Examples

1
2
3
4
5
6
7
8
9
# single phase harmonics
x <- list(c(10,0)); harm.odd <- list(c(0.2,0.1,0.05)); lab.units <- "I [A]"
y <- harmonic(x,harm.odd,lab.units)

# three-phase harmonics
x <- list(c(10,0),c(10,-120),c(10,120))
harm.odd <- list(c(0.2,0.1,0.05),c(0.2,0.1,0.05),c(0.2,0.1,0.05))
lab.units <- "I [A]"
y <- harmonic(x,harm.odd,lab.units)

renpow documentation built on May 1, 2019, 6:49 p.m.