Can LTSpice's .ac statement sweep secondary values?

  • Thread starter Thread starter Landru
  • Start date Start date
AI Thread Summary
LTSpice allows frequency domain analysis using the ".ac" statement, but users seek a method to simultaneously vary secondary component values, such as resistors, during the frequency sweep. While the step command enables testing multiple resistor values, it performs one sweep at a time, which is inefficient for simultaneous changes. A user shared a solution involving a frequency-dependent resistor using Laplace equations, which can be used in .AC simulations. The provided example file demonstrates how to implement this in LTSpice. This method enhances the analysis by allowing multiple parameters to change in tandem with frequency.
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 berkeman
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
suppose you have two capacitors with a 0.1 Farad value and 12 VDC rating. label these as A and B. label the terminals of each as 1 and 2. you also have a voltmeter with a 40 volt linear range for DC. you also have a 9 volt DC power supply fed by mains. you charge each capacitor to 9 volts with terminal 1 being - (negative) and terminal 2 being + (positive). you connect the voltmeter to terminal A2 and to terminal B1. does it read any voltage? can - of one capacitor discharge + of the...
Hello dear reader, a brief introduction: Some 4 years ago someone started developing health related issues, apparently due to exposure to RF & ELF related frequencies and/or fields (Magnetic). This is currently becoming known as EHS. (Electromagnetic hypersensitivity is a claimed sensitivity to electromagnetic fields, to which adverse symptoms are attributed.) She experiences a deep burning sensation throughout her entire body, leaving her in pain and exhausted after a pulse has occurred...
Back
Top