The ac small-signal portion of WRspice computes the ac output variables as a function of frequency. The program first computes the dc operating point of the circuit and determines linearized, small-signal models for all of the nonlinear devices in the circuit. The resultant linear circuit is then analyzed over a user-specified range of frequencies. The desired output of an ac small-signal analysis is usually a transfer function (voltage gain, transimpedance, etc). If the circuit has only one ac input, it is convenient to set that input to unity and zero phase, so that output variables have the same value as the transfer function of the output variable with respect to the input.
The keyword dec specifies decade variation, with np the number of points per decade. The keyword oct specifies octave variation, with np the number of points per octave, and lin specifies linear variation, with np the number of points. The two parameters fstart (the starting frequency), and fstop (the final frequency) complete the basic analysis specification. If this line is included in the circuit file, WRspice will perform an ac analysis of the circuit over the specified frequency range. Note that in order for this analysis to be meaningful, at least one voltage or current source must have been specified with an ac value.
The optional dc sweep is a dc analysis specification which will cause the ac analysis to be performed at each point of the dc sweep. The small-signal parameters are reevaluated at every sweep point, and the output vectors will be multidimensional.
In interactive mode, the ac command, which takes the same arguments as the .ac line, can be used to initiate ac analysis.
AC analysis is not available if Josephson junctions are included in the circuit.