Can LTSpice's .ac statement sweep secondary values?

  • Thread starter Landru
  • Start date
  • #1
105
1

Main Question or Discussion Point

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?
 

Answers and Replies

  • #2
18,089
7,510
Thanks for the post! This is an automated courtesy bump. Sorry you aren't generating responses at the moment. Do you have any further information, come to any new conclusions or is it possible to reword the post?
 
  • #3
Baluncore
Science Advisor
2019 Award
7,456
2,474
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))}

Best regards,
Helmut
Attached is the file.
Remove the .txt extension to make it back into a .asc file.
 

Attachments

Related Threads on Can LTSpice's .ac statement sweep secondary values?

Replies
11
Views
15K
Replies
21
Views
2K
  • Last Post
Replies
12
Views
2K
Replies
1
Views
735
  • Last Post
Replies
14
Views
2K
Replies
1
Views
610
  • Last Post
Replies
3
Views
5K
  • Last Post
Replies
2
Views
701
Replies
21
Views
1K
Top