Fourier start stop stepsize {options ...}
Performs a nonlinear time domain (transient) analysis, but displays the results in the frequency domain.
Start, stop, and stepsize are frequencies.
This command is slightly different and more flexible than the SPICE counterpart. SPICE always gives you the fundamental and 9 harmonics. Gnucap will do the same if you only specify one frequency. SPICE has the probes on the same line. Gnucap requires you to specify the probes with the print command.
SPICE uses the last piece of a transient that was already done. Gnucap does its own transient analysis, continuing from where the most recent one left off, and choosing the step size to match the Fourier Transform to be done. Because of this the Gnucap Fourier analysis is much more accurate than SPICE.
The nodes to look at must have been previously selected by the print or plot command.
Three parameters are normally needed for a Fourier analysis: start frequency, stop frequency and step size, in this order.
If the start frequency is omitted it is assumed to be 0. The two remaining parameters are stop and step, such that stop step.
If only one frequency is specified, it is assumed to be step size, which is equivalent to the fundamental frequency. The start frequency is zero and the stop frequency is set according the harmonics option (from the options command. The default is 9 harmonics.
If two frequencies are specified, they are stop and step. The order doesn't matter since stop is always larger than step.
Actually, this command does a nonlinear time domain analysis, then performs a Fourier transform on the data to get the frequency data. The transient analysis parameters (start, stop, step) are determined by the program as necessary to produce the desired spectral results. The internal time steps are selected to match the Fourier points, so there is no interpolation done.
The underlying transient analysis begins where the previous one left off. If you specify the "cold" option, it begins at time = 0. Often repeating a run will improve the accuracy by giving more time for initial transients to settle out.
See also: Transient command.