Author Topic: LTspice AC analysis question  (Read 4754 times)

0 Members and 1 Guest are viewing this topic.

Offline John ColocciaTopic starter

  • Super Contributor
  • ***
  • Posts: 1217
  • Country: us
LTspice AC analysis question
« on: July 13, 2015, 07:04:27 pm »
I don't have any trouble getting the AC analysis to work, but I've always wondered about something.  If I have more than one AC source, how does it know which source I want to sweep?  I mean, in a sense I guess the question doesn't make sense from the standpoint of having separate AC inputs sweeping at the same time, but what about the case where I'm doing something such as simulating a rectified power supply (AC source number 1) powering a circuit that has an AC input I want to sweep?  I guess even if I got it to only sweep one source, the rectified power rail never actually achieves steady state...there's always some ripple, so what happens?

I never do anything like this.  I usually just simulate small sections of the circuit, mainly just for fine tuning various filters, but it just got me to thinking that I really don't fundamentally understand the general behavior of the AC analysis beyond the simple analysis I normally do.

Maybe someone who's a lot more skilled than me could explain exactly what it's doing.  Does it just always sweep all the AC sources, and that's that?  It seems like that's the most straight forward implementation.  Anyhow, I just really want to understand exactly what the behavior is.

Thanks!
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: LTspice AC analysis question
« Reply #1 on: July 13, 2015, 07:08:35 pm »
AC analysis only works a single frequency, so all AC sources must be swept simultaneously. AC analysis involves converting reactances like capacitors and inductors into the equivalent reactive impedance and then solving the circuit as if they were complex "resistors", and this requires the single frequency to be known.

Typically, in your example, you'd analyze the two separately: analyze PSRR with the power source being swept and the input replaced with 0V, and analyze transfer function with the power source being set to 0VAC (plus whatever DC you require).
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2764
  • Country: ca
Re: LTspice AC analysis question
« Reply #2 on: July 13, 2015, 07:29:24 pm »
John Coloccia,

Can you post your LTspice model and indicate what you would like to know?

If you are concerned about secrecy, post something similar.

You will have to zip the .asc file, because the forum does not allow .asc as an attachment.

Regards,

Jay_DiddyB

 

Offline John ColocciaTopic starter

  • Super Contributor
  • ***
  • Posts: 1217
  • Country: us
Re: LTspice AC analysis question
« Reply #3 on: July 13, 2015, 07:37:08 pm »
AC analysis only works a single frequency, so all AC sources must be swept simultaneously. AC analysis involves converting reactances like capacitors and inductors into the equivalent reactive impedance and then solving the circuit as if they were complex "resistors", and this requires the single frequency to be known.

Typically, in your example, you'd analyze the two separately: analyze PSRR with the power source being swept and the input replaced with 0V, and analyze transfer function with the power source being set to 0VAC (plus whatever DC you require).

This makes perfect sense. I think I sort of answered my own question as I was typing it.  Thanks for explaining it so simply!
 

Offline John ColocciaTopic starter

  • Super Contributor
  • ***
  • Posts: 1217
  • Country: us
Re: LTspice AC analysis question
« Reply #4 on: July 13, 2015, 07:41:17 pm »
Maybe you can answer another question while we're at it.  How the heck do I pan around in the schematic capture view.  This drives me nuts.  I'm sure there's some simple way to do it, but I can't seem to figure it out.
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3322
  • Country: gb
Re: LTspice AC analysis question
« Reply #5 on: July 13, 2015, 08:19:38 pm »
There should be scroll bars if the schematic is larger than the window.  I usually just hit the "Zoom full extents" button, and then zoom back into the part I'm interested in.
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: LTspice AC analysis question
« Reply #6 on: July 13, 2015, 08:25:47 pm »
Maybe you can answer another question while we're at it.  How the heck do I pan around in the schematic capture view.  This drives me nuts.  I'm sure there's some simple way to do it, but I can't seem to figure it out.

Nope. Not really. LTspice doesn't even support middle-button pan. I tend to zoom out and back in.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline John ColocciaTopic starter

  • Super Contributor
  • ***
  • Posts: 1217
  • Country: us
Re: LTspice AC analysis question
« Reply #7 on: July 13, 2015, 08:26:06 pm »
There should be scroll bars if the schematic is larger than the window.  I usually just hit the "Zoom full extents" button, and then zoom back into the part I'm interested in.

That's how I've always done it.  I figured that there must be some "pan" tool somewhere like every other schematic capture.  Every now and then go looking for one and never find it.  C'est la vie.  Thanks!
 

Offline uChip

  • Contributor
  • Posts: 35
  • Country: us
Re: LTspice AC analysis question
« Reply #8 on: July 14, 2015, 02:53:41 am »
There is a pan tool.  I'm not saying it's great, but if you click on the magnifying glass (the one with no +, -, or x) and then click in your schematic, it will redraw the image such that the click point is centered.

I think it's still easier to use the scroll wheel to zoom out and then zoom in again.

  - Chip

 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13076
Re: LTspice AC analysis question
« Reply #9 on: July 14, 2015, 03:12:31 am »
If you are zoomed in, with a plain cross cursor, you can simply drag the background of the schematic around to pan it. If you have any of the tool cursors active, simply right click the background to return to the cross cursor.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf