Can LTSpice's .ac statement sweep secondary values?

  • Thread starter Thread starter Landru
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 1K views
Landru
Messages
107
Reaction score
1
If you have a simple circuit with an AC voltage, you can do a frequency domain analysis with a statement like ".ac lin 500 10 10000" and it will run the gamut from 10Hz to 10000Hz, but is there a way to have a second variable also scale in tandem, say the value of a resistor?

I'm aware that the step command exists, and it allows you to test multiple values, but that's one full sweep for each of those values, one at a time, and what I desperately need to is to have a second, or maybe even a third component value change along with the frequency.

Can this be done?
 
I asked on the LTspice yahoo group; how could I make a sweep frequency dependent resistor and received the following file from the Guru helmutsennewald.
helmutsennewald said:
May 6 6:26 PM Hello, I have uploaded an example of a frequency dependent resistor for .AC-simulations.

Frequency_dependent resistor.asc
https://groups.yahoo.com/neo/groups/LTspice/files/ Temp/

I have used Laplace equations.

G-source
Laplace=1/abs(s/(2*pi))

Gpoly
LAPLACE {V(3)*V(2)} {1/abs(s/(2*pi))}Helmut

Attached is the file.
Remove the .txt extension to make it back into a .asc file.
 

Attachments

  • Like
Likes   Reactions: berkeman