<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ltwiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rsfjr</id>
	<title>LTwiki-Wiki for LTspice - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://ltwiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rsfjr"/>
	<link rel="alternate" type="text/html" href="http://ltwiki.org/index.php?title=Special:Contributions/Rsfjr"/>
	<updated>2026-06-13T07:06:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.7</generator>
	<entry>
		<id>http://ltwiki.org/index.php?title=Simulation_Command&amp;diff=1283</id>
		<title>Simulation Command</title>
		<link rel="alternate" type="text/html" href="http://ltwiki.org/index.php?title=Simulation_Command&amp;diff=1283"/>
		<updated>2014-01-29T21:06:13Z</updated>

		<summary type="html">&lt;p&gt;Rsfjr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;At the netlist level the &amp;#039;&amp;#039;&amp;#039;Simulation Command&amp;#039;&amp;#039;&amp;#039; is simply a line of text that begins with any of the following Dot Commands:&lt;br /&gt;
 .tran &amp;lt;Tstep&amp;gt; &amp;lt;Tstop&amp;gt; [Tstart [dTmax]] [modifiers]&lt;br /&gt;
 .ac &amp;lt;oct, dec, lin&amp;gt; &amp;lt;Nsteps&amp;gt; &amp;lt;StartFreq&amp;gt; &amp;lt;EndFreq&amp;gt;&lt;br /&gt;
 .dc &amp;lt;srcnam&amp;gt; &amp;lt;Vstart&amp;gt; &amp;lt;Vstop&amp;gt; &amp;lt;Vincr&amp;gt; [&amp;lt;srcnam2&amp;gt; &amp;lt;Vstart2&amp;gt; &amp;lt;Vstop2&amp;gt; &amp;lt;Vincr2&amp;gt;]&lt;br /&gt;
 .noise V(&amp;lt;out&amp;gt;[,&amp;amp;lt;ref&amp;gt;]) &amp;lt;src&amp;gt; &amp;lt;oct, dec, lin&amp;gt; &amp;lt;Nsteps&amp;gt; &amp;lt;StartFreq&amp;gt; &amp;lt;EndFreq&amp;gt;&lt;br /&gt;
 .tf V(&amp;lt;node&amp;gt;[, &amp;amp;lt;ref&amp;gt;]) &amp;lt;source&amp;gt; &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;OR&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; I(&amp;lt;voltage source&amp;gt;) &amp;lt;source&amp;gt;&lt;br /&gt;
 .op&lt;br /&gt;
At the schematic level these commands may be entered directly as a [[SPICE Directive]] (&amp;#039;&amp;#039;ctrl&amp;#039;&amp;#039;-right-click on the text to edit) or may be entered via the drop down menu item: &amp;#039;&amp;#039;&amp;#039;Simulate =&amp;gt; Edit Simulation Cmd&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Edit Simulation Command&amp;#039;&amp;#039;&amp;#039; dialog box organized like a row of tabbed index cards:&lt;br /&gt;
&lt;br /&gt;
{|table width=&amp;quot;400&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot; style=&amp;quot;background-color: #DDDDDD&amp;quot;&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| [[#Transient Analysis|Transient]]||[[#AC Analysis|AC Analysis]]||[[#DC Sweep|DC sweep]]||[[#Noise|Noise]]||[[#DC Transfer Function|DC Transfer]]||[[#DC Operating Point|DC op pnt]]&lt;br /&gt;
|}&lt;br /&gt;
{|table width=&amp;quot;400&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;50&amp;quot; style=&amp;quot;background-color: #DDDDDD&amp;quot; title=&amp;quot;LTspice dialog box&amp;quot;&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;User options for the selected tab&amp;#039;&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Transient Analysis ===&lt;br /&gt;
Perform a Nonlinear Transient Analysis.&lt;br /&gt;
&lt;br /&gt;
This is a time domain analysis.&amp;amp;nbsp; Selected circuit signals may be displayed in the Waveform viewer as they are simulated, much like an oscilloscope on the bench.&amp;amp;nbsp; It basically computes what happens when the circuit is powered up and runs.&amp;amp;nbsp; Test signals are often applied as independent sources or may be taken from captured data stored on file.&lt;br /&gt;
 Syntax: .tran &amp;lt;Tstep&amp;gt; &amp;lt;Tstop&amp;gt; [Tstart [dTmax]] [modifiers]&lt;br /&gt;
   or    .tran &amp;lt;Tstop&amp;gt; [modifiers]&lt;br /&gt;
The first form is the traditional .tran SPICE command.&amp;amp;nbsp; Tstep is the plotting increment for the waveforms but is also used as an initial step-size guess.&amp;amp;nbsp; LTspice uses waveform compression, so this parameter is of little value and can be omitted or set to zero.&amp;amp;nbsp; Tstop is the duration of the simulation.&amp;amp;nbsp; Transient analyses always start at time equal to zero.&amp;amp;nbsp; However, if Tstart is specified, the waveform data between zero and Tstart is not saved.&amp;amp;nbsp; This is a means of managing the size of waveform files by allowing startup transients to be ignored.&amp;amp;nbsp; The final parameter dTmax, is the maximum time step to take while integrating the circuit equations.&amp;amp;nbsp; If Tstart or dTmax is specified, Tstep must be specified.&lt;br /&gt;
&lt;br /&gt;
Several &amp;#039;&amp;#039;modifiers&amp;#039;&amp;#039; can be placed on the .tran line.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;UIC:&amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039; Use Initial Conditions.&amp;amp;nbsp; Skip the D.C. operating solution and use user-specified initial conditions.&amp;amp;nbsp; Normally, a dc operating point analysis is performed before starting the transient analysis.&amp;amp;nbsp; This directive suppresses this initialization.&amp;amp;nbsp; The initial conditions of some circuit elements can be can be specified on a per-instance basis.&amp;amp;nbsp; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;b title=&amp;quot;UIC is not a particularly recommended feature of SPICE.&amp;amp;nbsp; Skipping the DC operating point analysis may often lead to a nonphysical initial condition.&amp;amp;nbsp; For example, consider a voltage source connected in parallel to a capacitance.&amp;amp;nbsp; The node voltage is taken as zero if not specified.&amp;amp;nbsp; Then, in the first time step, an infinite current is required to charge the capacitor.&amp;amp;nbsp; The simulator cannot find a short enough time step to make the current non-singular, and a &amp;#039;time step too small convergence fail&amp;#039; message will be issued.&amp;quot;&amp;gt; Extra Hint!&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;steady:&amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039; Stop the simulation when steady state has been reached.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;nodiscard:&amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039; Don&amp;#039;t delete the part of the transient simulation before steady state is reached.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;startup:&amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039; Solve the initial operating point with independent voltage and current sources turned off (but using any constraints specified by a .ic directive).&amp;amp;nbsp; Then start the transient analysis and linearly ramp on these sources during the first 20 us of the simulation.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;step:&amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039; Compute the step response of the circuit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AC Analysis ===&lt;br /&gt;
Perform a small signal AC Analysis (linearized about the DC Operating Point).&lt;br /&gt;
&lt;br /&gt;
This is a frequency domain analysis whereby the ac small signal (i.e., linear) response of the circuit is calculated using complex variable arithmetic.&amp;amp;nbsp; First, LTspice finds the dc operating point of the circuit.&amp;amp;nbsp; Next, working about this operating point, LTspice calculates linearized small signal models for all nonlinear devices.&amp;amp;nbsp; Finally, using independent small signal ac voltage and current sources as the driving signal, LTspice solves the resultant linearized circuit in the frequency domain over the specified range of frequencies.&amp;amp;nbsp; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;b title=&amp;quot;By specifying just a single frequency point and sweeping (stepping) any circuit parameter instead, LTspice will display the ac response over that parameter&amp;#039;s sweep range.&amp;quot;&amp;gt; Extra Hint!&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This mode of analysis is useful for filters, networks, stability analyses, and noise considerations.&lt;br /&gt;
 Syntax: .ac &amp;lt;oct, dec, lin&amp;gt; &amp;lt;Nsteps&amp;gt; &amp;lt;StartFreq&amp;gt; &amp;lt;EndFreq&amp;gt;&lt;br /&gt;
The frequency is swept between frequencies StartFreq and EndFreq.&amp;amp;nbsp; The number of steps is defined with the keyword &amp;quot;oct&amp;quot;, &amp;quot;dec&amp;quot;, or &amp;quot;lin&amp;quot; and Nsteps according to the following table:&lt;br /&gt;
&lt;br /&gt;
{|table width=&amp;quot;300&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
! Keyword || Nsteps&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| Oct || steps per octave&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| Dec || steps per decade&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| Lin || steps between &amp;lt;br /&amp;gt; StartFreq and EndFreq&lt;br /&gt;
|}&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== DC Sweep ===&lt;br /&gt;
Perform a DC Source Sweep Analysis.&lt;br /&gt;
&lt;br /&gt;
This performs a DC analysis while sweeping the DC value of a source.&amp;amp;nbsp; It is useful for computing the DC transfer function of an amplifier or plotting the characteristic curves of a transistor for model verification.&lt;br /&gt;
 Syntax: .dc &amp;lt;srcnam&amp;gt; &amp;lt;Vstart&amp;gt; &amp;lt;Vstop&amp;gt; &amp;lt;Vincr&amp;gt; [&amp;lt;srcnam2&amp;gt; &amp;lt;Vstart2&amp;gt; &amp;lt;Vstop2&amp;gt; &amp;lt;Vincr2&amp;gt;]&lt;br /&gt;
The &amp;lt;srcnam&amp;gt; is either an independent voltage or current source that is to be swept from &amp;lt;Vstart&amp;gt; to &amp;lt;Vstop&amp;gt; in &amp;lt;Vincr&amp;gt; step sizes.&amp;amp;nbsp; In the following example, the default BSIM3v3.2.4 characteristic curves are plotted:&lt;br /&gt;
&lt;br /&gt;
 * Example .dc sweep&lt;br /&gt;
 *&lt;br /&gt;
 M1 2 1 0 0 nbsim&lt;br /&gt;
 Vgs 1 0 3.5&lt;br /&gt;
 Vds 2 0 3.5&lt;br /&gt;
 .dc Vds 3.5 0 -0.05 Vgs 0 3.5 0.5&lt;br /&gt;
 .model nbsim NMOS Level=8&lt;br /&gt;
 .save I(Vds)&lt;br /&gt;
 .end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Noise ===&lt;br /&gt;
Perform a Noise Analysis.&lt;br /&gt;
&lt;br /&gt;
This is a frequency domain analysis that computes the noise due to Johnson, shot and flicker noise.&amp;amp;nbsp; The output data is noise spectral density per unit square root bandwidth.&lt;br /&gt;
 Syntax: .noise V(&amp;lt;out&amp;gt;[,&amp;amp;lt;ref&amp;gt;]) &amp;lt;src&amp;gt; &amp;lt;oct, dec, lin&amp;gt; &amp;lt;Nsteps&amp;gt; &amp;lt;StartFreq&amp;gt; &amp;lt;EndFreq&amp;gt;&lt;br /&gt;
V(&amp;lt;out&amp;gt;[,&amp;amp;lt;ref&amp;gt;]) is the node at which the total output noise is calculated.&amp;amp;nbsp; It can be expressed as V(n1, n2) to represent the voltage between two nodes. &amp;lt;src&amp;gt; is the name of an independent source to which input noise is referred.&amp;amp;nbsp; &amp;lt;src&amp;gt; is the noiseless input signal.&amp;amp;nbsp; The parameters &amp;lt;oct, dec, lin&amp;gt;, &amp;lt;Nsteps&amp;gt;, &amp;lt;StartFreq&amp;gt;, and &amp;lt;EndFreq&amp;gt; define the frequency range of interest and resolution in the manner used in the .ac directive.&lt;br /&gt;
&lt;br /&gt;
Output data trace V(onoise) is the noise spectral voltage density referenced to the node(s) specified as the output in the above syntax.&amp;amp;nbsp; If the input signal is given as a voltage source, then data trace V(inoise) is the input-referred noise voltage density.&amp;amp;nbsp; If the input is specified as a current source, then the data trace inoise is the noise referred to the input current source signal.&amp;amp;nbsp; The noise contribution of each component can be plotted.&amp;amp;nbsp; These contributions are referenced to the output.&amp;amp;nbsp; You can reference them to the input by dividing by the data trace &amp;quot;gain&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The waveform viewer can integrate noise over a bandwidth by &amp;#039;&amp;#039;ctrl-left mouse button&amp;#039;&amp;#039; clicking on the corresponding data trace label.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== DC Transfer Function ===&lt;br /&gt;
Find the DC Small Signal Transfer Function.&lt;br /&gt;
&lt;br /&gt;
This is an analysis mode that finds the dc small signal transfer function of a node voltage or branch current due to small variations of an independent source.&lt;br /&gt;
 Syntax: .tf V(&amp;lt;node&amp;gt;[, &amp;amp;lt;ref&amp;gt;]) &amp;lt;source&amp;gt;&lt;br /&gt;
   OR    .tf I(&amp;lt;voltage source&amp;gt;) &amp;lt;source&amp;gt;&lt;br /&gt;
Examples:&lt;br /&gt;
 .tf V(out) Vin&lt;br /&gt;
 .tf V(5,3) Vin&lt;br /&gt;
 .tf I(Vload) Vin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== DC Operating Point ===&lt;br /&gt;
Find the DC Operating Point&lt;br /&gt;
&lt;br /&gt;
Perform a dc operating point solution with capacitances open circuited and inductances short circuited.&amp;amp;nbsp; Usually a dc solution is performed as part of another analysis in order to find the operating point of the circuit.&amp;amp;nbsp; Use .op if you wish only this operating point to be found.&amp;amp;nbsp; The results will appear in a dialog box.&amp;amp;nbsp; After a .op simulation, when you point at a node or current the .op solution will appear on the status bar.&lt;br /&gt;
 Syntax: .op&lt;br /&gt;
There is no guarantee that the operating point of a general nonlinear circuit can be found with successive linear approximations as is done in Newton-Raphson iteration.&amp;amp;nbsp; Should direct Newton iteration fail, LTspice tries a number of other methods to find an operating point.&amp;amp;nbsp; Below is a table of the methods used and the options settings required to disable a particular method.&lt;br /&gt;
&lt;br /&gt;
{|table width=&amp;quot;300&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
! Method || Directive to Disable&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| Direct Newton Iteration || .opt NoOpIter&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| Adaptive Gmin Stepping || .opt GminSteps=0&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| Adaptive Source Stepping || .opt SrcSteps=0&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
| Pseudo Transient || .opt pTranTau=0&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{#widget:DISQUS&lt;br /&gt;
|id=ltwiki&lt;br /&gt;
|uniqid={{PAGENAME}}&lt;br /&gt;
|url={{fullurl:{{PAGENAME}}}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Rsfjr</name></author>
		
	</entry>
</feed>