Skip to main content
1-Visitor
September 10, 2020
Solved

plotting complex impedances

  • September 10, 2020
  • 1 reply
  • 2464 views

How to plot complex impedances where it is a product of 2 complex functions

 

     Impedances of a capacitor  Zc = 1/s*c(s) and the unit is Farad

     where s is the Laplace Domain variable = 1j*w = 1j*2*pi*frequency

     in my case, c(s) is the capacitance but is a function of s

 

I want to plot the magnitude of Zc = {[Re(Zc)]^2+[I'm(Zc)]^2}^0.5 versus frequency

 

If  Zc is evaluated with "=", the result returns a scalar

 

I asked PTC helps and they said it is because I have 2 vectors multiplied together, so it returns a scalar. They recommend to vectorize the Zc expression but if you do that, it return a complex impedances of 1000 frequencies (the # of points I have), and then find a way to convert the 1000 complex impedances into the magnitude of each of the 1000 complex impedances.

 

My question is: Why do I have to vectorize the Zc expression? Is there another way to do it that does not need to vectorize Zc? I find it hard to believe when you want to plot out the magnitude or phase of a complex function that contains a product of more than 2 functions, you have to vectorize it. 

 

Please see attached file

 

Thanks a lot for your helps

Rdliquid

 

PS: I am using Mathcad Prime 6.0

Best answer by rdliquid

Hi Werner_E,

 

Thanks a lot for your helps. You answered my questions. OK I will vectorize(---->) and absolute | | the expression from now on

 

Rdliquid

1 reply

25-Diamond I
September 10, 2020

The attached sheet should help and explains why vectorization is needed.

 

rdliquid1-VisitorAuthorAnswer
1-Visitor
September 10, 2020

Hi Werner_E,

 

Thanks a lot for your helps. You answered my questions. OK I will vectorize(---->) and absolute | | the expression from now on

 

Rdliquid

rdliquid1-VisitorAuthor
1-Visitor
September 11, 2020

Hi 

 

I though I understand vectorization until I ran into this strange issue. Can you explain:

 

H(s) is a complex function

G(s) is a vectorized of H(s)

 

Each one returns a different result. Do you know why?

 

Please see attached

 

Thanks again,

Rdliquid