Advertisement
hiddenGem

Inductor in RLC Circuit to Reduce Current

Jul 16th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.63 KB | None | 0 0
  1. %% Inductor in RLC Circuit to Reduce Current
  2. % Determines the current and inductor of the circuit
  3.  
  4. % Inputs and Variables
  5. R = input('What is the resistance?\n');
  6. C = input('What is the capacitance?\n');
  7. f = input('What is the frequency?\n');
  8. Vrms = input('What is the voltage of the source?\n');
  9.  
  10. % Outputs and Equations
  11. w = f*2*pi;
  12. Xc = 1/(w*C);
  13. Irms = Vrms/sqrt(R^2+Xc^2);
  14. xl = sqrt(3*R^2+4*Xc^2)+Xc;
  15. L = xl/w;
  16. fprintf('The current and value of the inductance are:\n %.3e and %.3e\n', Irms, L)
  17.  
  18. %{
  19. Under the assmuption that the value of the inductor is meant to be inserted
  20. in the circuit to reduce the current ot one half
  21. %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement