Plotting Impedance of Parallel RLC Circuit

Click For Summary

Discussion Overview

The discussion revolves around plotting the impedance of a parallel RLC circuit as a function of frequency. Participants are addressing a homework problem that involves calculating the impedance and identifying the resonant frequency, while also troubleshooting issues with the resulting plot in MATLAB.

Discussion Character

  • Homework-related
  • Mathematical reasoning
  • Technical explanation

Main Points Raised

  • One participant presents the problem statement and outlines the relevant equations for calculating impedance in a parallel RLC circuit.
  • Another participant points out a potential error in the algebraic manipulation of admittance to impedance, specifically regarding the incorrect application of the formula for combining resistances.
  • A subsequent reply suggests a modification to the impedance expression but notes that the plot still appears as a vertical line.
  • Another participant highlights issues with starting the frequency at zero, indicating that this leads to division by zero and an undefined impedance at that point.
  • There is a question regarding the representation of the imaginary unit in the MATLAB code, with a suggestion that the participant should plot the magnitude of the impedance instead of the complex value.

Areas of Agreement / Disagreement

Participants express differing views on the correctness of the algebraic manipulations and the approach to plotting the impedance. There is no consensus on the resolution of the plotting issue, as multiple potential errors are identified.

Contextual Notes

Limitations include the potential for algebraic mistakes in the impedance calculations, the undefined nature of the impedance at zero frequency, and the need to plot the magnitude of the impedance rather than the complex value.

RockyRoad
Messages
3
Reaction score
0

Homework Statement


Plot |z| vs. f(Hz) of the circuit. R=100, C=600 pf = 6E-12 F, L=10E-6 H . All elements of the circuit are in parallel. Also identify the resonant frequency.


Homework Equations


ZR=R
ZL=jwL
ZC=1/(jwC)=-j/(wC)
w=2(pi)f
w0=1/sqrt(LC)
f0=1/(2(pi)sqrt(LC))
G=1/R

The Attempt at a Solution


Z1=ZR
Z2=ZL
Z3=ZC
Zeq= 1/((1/R)+1/(jwL)+jwc)

Switching to admittance and skipping a few steps, it can be found that
Y=G + j * 2 * pi * f * C * (1 - (f0 / f) ^ 2)
Z=R + 1 / (j * 2 * pi * f * C * (1-(f0 / f) ^ 2))
Z=100 + 1/(j * 2 * pi * f * 600E-12 *(1 - (2054681.48 / f) ^ 2)

To plot, i used a few lines in matlab:

f=linspace(0,4000000,100000);
x=1i.*2.*pi.*(600.^(-12));
z=100+(1./(x.*f.*(1-((2054681.48./f).^2))));
plot=semilogx(z);

The plot shows me a vertical line at f=100

My professor told us that the graph should be bell shaped, and i have no idea where I've gone wrong. Anyone see a mistake?
 
Physics news on Phys.org
For one thing, 1/(a+b) isn't equal to 1/a + 1/b, which is what you did when you went from the admittance back to the impedance.
 
Ok, change it to this then:

Z=1/(100 + j * 2 * pi * f * 600E-12 *(1 - (2054681.48 / f) ^ 2))

The plot is still a vertical line.
 
Well, that's not quite right either. I'll leave it to you, however, to fix your algebra mistakes.

I don't know Matlab, but I'm guessing you're letting f start from 0. Two problems with that. At f=0, you're dividing by zero in your expression. Also, when f=0, Z=0 since the inductor is a short, so the log of Z is undefined.
 
In this expression:

x=1i.*2.*pi.*(600.^(-12));
...^

is that lower case i that I've pointed to supposed to represent SQRT(-1)?

If it is, that's a problem. You can't plot expressions that have an imaginary component. You have to plot the magnitude, or modulus, of the impedance expression.

Some mathematical packages have a command such as Abs[] that can do it. Or you can do it yourself by plotting SQRT(Z * Conjugate(Z)).
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
Replies
19
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 20 ·
Replies
20
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K