The complex power delivered to the load Z_L in Figure P16-21 is 20 + j30 kVA. The source produces an average power of 21 kW and the line has an impedance of Z_W = 0.6 + j5 Ω per wire. Find the reactive power produced by the source.
Use MATLAB to perform the calculations
clear all
SL = 20e3+30e3j;
Ps = 21e3;
ZW = 0.6+5j;
% Find the average power in the line
PW = Ps - real(SL);
% Find the magnitude of the line current
MagIL = sqrt(PW/2/real(ZW));
% Find the total complex power
Ss = SL + 2*MagIL^2*ZW;
% Find the reactive power of the source
Qs = imag(Ss)
Qs =
38.3333e+003
The reactive power produced by the source is 38.333 kVAR.