Two loads Z1 = 100+j0 ? and Z2=10+j20 ? are connected in parallel across a 200...

Free

80.2K

Verified Solution

Question

Electrical Engineering

Two loads Z1 = 100+j0 ? and Z2=10+j20 ? are connected inparallel across a 200 V supply. 1) Write a user oriented MATLABprogram that will calculate the capacitance of the capacitorconnected across the loads to improve the overall power factor to0.8 lagging,0.9 lagging, unity power factor, 0.8 leading, 0.9leading. Also MATLAB will calculate total reactive, real power, andthe total current at the source for each ste

Answer & Explanation Solved by verified expert
3.6 Ratings (603 Votes)

Matlab Code:

clear all
clc
j=sqrt(-1);
prompt= 'enter the value of power factor, if PF is lagging enter the value in negitive : ';
requiredpf=input(prompt)
v=200; f=60;
z1=100; z2=10+20i;
z=1/((1/z1)+(1/z2));
S=conj((v^2)/z);
P=real(S);
theta1=angle(S);
theta2= acos(requiredpf);
C= (P*(tan(theta1)-(tan(theta2))))/(2*pi*f*v^2)
disp('values after capacitor placed in parallel :')
xc=1/(2*pi*60*C*j)
Znew= 1/((1/z1)+(1/z2)+(1/xc));
Itotal= v/Znew
Snew= conj(v^2/Znew);
Ptotal= real(Snew)
Rtotal=imag(Snew)

sample Matlab example for one of the power factor:

enter the value of power factor, if PF is lagging enter the value in negitive : -0.8

requiredpf =

   -0.8000


C =

   1.6579e-04

values after capacitor placed in parallel :

xc =

   0.0000 -16.0000i


Itotal =

   6.0000 + 4.5000i


Ptotal =

        1200


Rtotal =

-900.0000

>>

%%if you are having any doubts please comment here or else rate me%%


Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students