Description Usage Arguments Details Value Note Author(s) References See Also Examples
Calculates harmonic distortion
1 | harmonic(x, harm.odd, lab.units)
|
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 |
Function harmonic performs calculations and plots, including odd harmonics and THD.
t |
Time sequence |
Itot |
Total currents |
Isum |
Sum of currents in neutral |
THD |
Total Harmonic Distortion |
Functions used in Chapter 10 of Acevedo (2018)
Miguel F. Acevedo acevedo@unt.edu
Acevedo, M.F. 2018. Introduction to Renewable Electric Power Systems and the Environment with R. Boca Raton, FL: CRC Press. (ISBN 9781138197343)
AC waves and plots ac.plot
, phasor.plot
, waves
three-phase generator
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.