THD
Compute total harmonic distortion (THD) of signal
Library
Simscape / Electrical / Specialized Power Systems / Sensors and Measurements
Description
The THD block computes the total harmonic distortion (THD) of a periodic distorted signal. The signal can be a measured voltage or current.
The THD is defined as the root mean square (RMS) value of the total harmonics of the signal, divided by the RMS value of its fundamental signal. For example, for currents, the THD is defined as
The THD has a null value for a pure sinusoidal voltage or current.
Parameters
- Fundamental frequency of input signal (Hz)
Specify the frequency, in hertz, of the fundamental signal. Default is
60
.- Sample time
Specify the sample time of the block, in seconds. Set to
0
to implement a continuous block. Default is0
.
Characteristics
Sample Time | Specified in the Sample Time parameter Continuous if Sample Time = 0 |
Scalar Expansion | Yes, of the parameters |
Dimensionalized | Yes |
Examples
The power_RMS_THD
model
uses a THD block to compute the THD of a 60 Hz signal with second
harmonic and a DC bias.
The model sample time is parameterized by the Ts variable set to a default value of 50e-6 s. Set Ts to 0 in the command window to simulate the model in continuous mode.
Version History
Introduced in R2013a