In Figure P16-28 the load voltage is \left|\mathbf{V}_{\mathrm{L}}\right| = 5 kV (rms) at 60 Hz and the load Z_{\mathrm{L}} draws an average power of 10 kW at a lagging power factor of 0.725. Find the value of the parallel capacitance needed to raise the power factor of the combination to unity.
Use MATLAB to perform the calculations.
clear all
MagVL = 5e3;
PL = 10e3;
pf = 0.725;
% Find the complex power of the load
SL = PL/pf*(pf+j*sqrt(1-pf^2));
% We need the capacitor to cancel the complex power in the load
QC = -imag(SL);
% Solve for the capacitance
C = -QC/2/pi/60/MagVL^2
C =
1.0080e-006
C = 1.008 µF.