Question

In: Electrical Engineering

11. Write a user oriented MATLAB program that will calculate the capacitance of the capacitor connected...

11. Write a user oriented MATLAB program that will calculate the capacitance of the capacitor connected across the loads to improve the overall power factor to 0.8 lagging,0.9 lagging, unity power factor, 0.8 leading, 0.9 leading. Also MATLAB will calculate total reactive, real power, and the total current at the source for each ste

Solutions

Expert Solution

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. I done the same answer before so the same code is posted. If values are wrong please let me know by comments%%


Related Solutions

A resistor of resistance R and a capacitor of capacitance C are connected in series to...
A resistor of resistance R and a capacitor of capacitance C are connected in series to an EMF of voltage E. A switch is set to the open position and the capacitor is initially uncharged. The switch is then closed. Show that when the capacitor charges that half of the energy drawn from the EMF is dissipated in the resistor and that half of the energy is stored in the capacitor.
A parallel plate air capacitor with a capacitance of C (0.02 F) is connected to a...
A parallel plate air capacitor with a capacitance of C (0.02 F) is connected to a 12V battery and charged. The capacitor is then disconnected from the battery and a dielectric with a dielectric constant of k (3.2) is inserted between the plates. How much energy will be stored in the capacitor after inserting the dielectric (6 points)? please explain step by step
A resistor with 830? is connected to the plates of a charged capacitor with capacitance 4.60?F...
A resistor with 830? is connected to the plates of a charged capacitor with capacitance 4.60?F . Just before the connection is made, the charge on the capacitor is 7.00mC Part A What is the energy initially stored in the capacitor? Part B What is the electrical power dissipated in the resistor just after the connection is made? Part C What is the electrical power dissipated in the resistor at the instant when the energy stored in the capacitor has...
A parallel-plate capacitor with circular plates and a capacitance of 10.3 μF is connected to a...
A parallel-plate capacitor with circular plates and a capacitance of 10.3 μF is connected to a battery which provides a voltage of 11.2 V . What is the charge on each plate? How much charge would be on the plates if their separation were doubled while the capacitor remained connected to the battery? How much charge would be on the plates if the capacitor were connected to the battery after the radius of each plate was doubled without changing their...
USE MATLAB Write a program in Matlab that would continuously ask the user for an input...
USE MATLAB Write a program in Matlab that would continuously ask the user for an input between 1 and 6, which would represent the result of rolling a die. The program would then generate a random integer between 1 and 6 and compare its value to the value entered by user. If the user’s die is larger, it should display, “Mahahanap mo na ang forever mo. Sana all!” If the user’s die is smaller, it should display, “Gising na friend,...
A capacitor of unknown capacitance C is charged to 130 V and connected across an initially...
A capacitor of unknown capacitance C is charged to 130 V and connected across an initially uncharged 75 uF capacitor. if the final potential difference across the 75 uF capacitor is 47 V what is C? After you find the value of C, you charge this capacitor C to a potential difference V=140 V between its plates. The charging battery is now disconnected and a slab material ( k=7.20 is slipped between the plates. what is the potential energy of...
Write a user defined MATLAB program that performs power factor correction. The inputs to the MATLAB...
Write a user defined MATLAB program that performs power factor correction. The inputs to the MATLAB function should be voltage across the load (in Vrms, assume 0 phase), frequency Resistance of the load Inductance of the load power factor of the load target power factor The output of the function should be the size of the capacitor that one would need to place in parallel with the load to reach the target power factor. Please submit the code for the...
Write a program in Matlab where the program plays a hot and cold game. The user...
Write a program in Matlab where the program plays a hot and cold game. The user answers two inputs: x=input('what is the x location of the object?') y=input('what is the y location of the object?') You write the program so that the computer plays the game. Pick a starting point. Program Calculates the distance to the object. Program picks another point, calculates the distance to the object. Program knows its at the right spot when the distance is less than...
A 11 pF capacitor is connected in series with a 3 pF and 7 pF capacitor...
A 11 pF capacitor is connected in series with a 3 pF and 7 pF capacitor that are connected in parallel. The three capacitors are connected to a 31 V battery. (Show all your work!) A) What is the equivalent capacitance of the circuit? B) How much charge is on the 11 pF capacitor? C) What is the potential difference across the 3 pF capacitor? D) A parallel plate capacitor of plate area A and plate separation d is fully...
(Using Matlab) and "while" function 1.   Write a program that prompts the User for if they...
(Using Matlab) and "while" function 1.   Write a program that prompts the User for if they would like to enter a real number. If yes, prompt the User for the real number. Continue to do this until the User enters “no” to the first question. After the User enters “no”, display the average of all the numbers entered. (Using Matlab) and "while" function 2.   Write a program that prompts the User for if they would like to enter a real...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT