Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Manipulate RLC circuit impedance in symbolic form

Status
Not open for further replies.

laserablaatio

Mechanical
Oct 23, 2006
18
FI
Hi all,
I'm looking for software which would help the manipulation of the expressions for the impedance of linear RLC-circuits in symbolic form.The most important feature would be
to extract the real and imaginary part of the final analytic
expression.

The analytic expressions tend to get quite tedious to form on paper even in the case of simple circuits, but for a computer the task should not be a problem...

Using Mathemathica (4.0) I would like to do the following, for example, but the output
is not quite what I'm looking for;
Zm = Rm + I*(Lm*w + 1/Cm/w)
Z0 = I*1/C0/w
Zs = I*1/Cs/w
Ztot = 1/(1/Zm + 1/Z0) + Zs (* impedances Zm and Z0 in parallel, and Zs
in series *)
ComplexExpand[Ztot]

[Actually, I just found out that Mathematica 5.2 does already a better
job ... anyway, it would
be nice to hear your ideas...]

Also from an old posting I learned that a software called TINA might do the job. Also a Maple plugin for symbolic expression is discussiod. Has the scene changed in four years?
The thread is here:

Thanks for your comments!
 
Replies continue below

Recommended for you

Do you need an analytic formula for the result? If so, you are problably best to just do the math, or, if you are lazy, use Mathematica or Maple. But unless the circuit is a lot more complicated than your example, you really don't need them.

If you don't need an analytic result, just a numerical one, then I would suggest doing a quick program in a language that supports imaginary numbers naturally, such as Fortran or Python.

Personally, I do this all the time in Python. Most problems take about 3 lines of code to generate the plots I need*.

*For plotting, there are lots of options, but I would suggest matplotlib, which generates high quality plots and will be familiar to anyone used to Matlab.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top