LTSpice: Complex numbers?

Folks,

Is there a way to coax LTSpice to display complex numbers in the form of x+jY (or x-jy if leading phase)?

--
Regards, Joerg 

http://www.analogconsultants.com/
Reply to
Joerg
Loading thread data ...

You probably can't get an Algebraic display like that, but you should be able to display, for example...

Real(V(1))

and

Imag(V(1)) ...Jim Thompson

-- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | San Tan Valley, AZ 85140 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at

formatting link
| 1962 | I love to cook with wine. Sometimes I even put it in the food.

Reply to
Jim Thompson

So I asked this question on the Yahoo group (after finally getting past this dreaded captcha stuff), and the LTSpice-guru Helmut Sennewald had the answer:

Make the waveform window active. Left click on any number of the left vertical axis. Then select Cartesian instead of Bode or Nyquist. Representation: "Cartesian" When you now select a signal, LTspice will show the numbers for the real and imaginary part.

I had found that on the web yesterday but gave up because it did not work. Turns out it does not work in a transient analysis but it does in an AC analysis.

--
Regards, Joerg 

http://www.analogconsultants.com/
Reply to
Joerg

But doesn't that show them as separate numbers, not as A + jB ?? ...Jim Thompson

--
| James E.Thompson                                 |    mens     | 
| Analog Innovations                               |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| San Tan Valley, AZ 85140   Skype: Contacts Only  |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 
              
I love to cook with wine.     Sometimes I even put it in the food.
Reply to
Jim Thompson

It shows them as:

2.3V,-3.9iV

A bit unorthodox but good enough for me. The nice thing is you can make them visible just by hovering over the spot of interest in the waveform window. I need this to corroborate the numbers my software will calculate.

Full confession: This stuff has been so long ago that I needed to brush up. And right now I am getting a complex impedance where there should only be a capacitance (sans real component). Hurumph!

--
Regards, Joerg 

http://www.analogconsultants.com/
Reply to
Joerg

I do a lot of impedance analysis, creating subcircuits to match wirebonds from DC up into the GHz range, so my AC skills are still quite well-honed ;-) ...Jim Thompson

--
| James E.Thompson                                 |    mens     | 
| Analog Innovations                               |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| San Tan Valley, AZ 85140   Skype: Contacts Only  |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 
              
I love to cook with wine.     Sometimes I even put it in the food.
Reply to
Jim Thompson

Same here, but you know how it goes. Wet finger in the air, black cat crosses street, "Oh, need another 3nH here and 4pf over yonder", throw onto SPICE, find it's really 4nH and 5pF, put that in the design, done.

I have to extract the capacitance from a ref/sense ratio measurement and through a lossy LC network. No fun. One of our guys had a billiant idea: Give it to a college kid, let him/her solve it and pay $50 or whatever is fair for it. But that feels like cheating :-)

--
Regards, Joerg 

http://www.analogconsultants.com/
Reply to
Joerg

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.