Difference between revisions of "Simulation Command"

From LTwiki-Wiki for LTspice
(Created page with 'At the netlist level the Simulation Command is simply a line of text that begins with any of the following Dot Commands: .tran .ac .dc .noise .tf .op {|table width="400" c…')
 
Line 1: Line 1:
At the netlist level the Simulation Command is simply a line of text that begins with any of the following Dot Commands:
+
At the netlist level the '''Simulation Command''' is simply a line of text that begins with any of the following Dot Commands:
 
  .tran
 
  .tran
  .ac
+
  .ac <oct, dec, lin> <Nsteps> <StartFreq> <EndFreq>
 
  .dc
 
  .dc
 
  .noise
 
  .noise
 
  .tf
 
  .tf
 
  .op
 
  .op
 +
At the schematic level these commands may be entered directly as a [[SPICE Directive]] (''ctrl''-right-click on the text to edit) or may be entered via the drop down menu item: '''Simulate => Edit Simulation Cmd'''.
  
 
{|table width="400" cellspacing="0" border="1" style="background-color: #DDDDDD"
 
{|table width="400" cellspacing="0" border="1" style="background-color: #DDDDDD"
Line 13: Line 14:
 
{|table width="400" cellspacing="0" border="1" cellpadding="50" style="background-color: #DDDDDD"
 
{|table width="400" cellspacing="0" border="1" cellpadding="50" style="background-color: #DDDDDD"
 
|- align="center"
 
|- align="center"
| ''Various options for active Tab''
+
| ''Various options for the active Tab''
 
|}
 
|}
 
__NOTOC__
 
__NOTOC__
Line 19: Line 20:
  
 
=== Transient Analysis ===
 
=== Transient Analysis ===
 +
 +
 
=== AC Analysis ===
 
=== AC Analysis ===
 +
Perform a small signal AC Analysis linearized about the DC Operating Point.
 +
 +
The small signal (linear) ac portion of LTspice computes the ac complex node voltages as a function of frequency.&nbsp; First, the dc operating point of the circuit is found.&nbsp; Next, linearized small signal models for all of the nonlinear devices in the circuit are found for this operating point.&nbsp; Finally, using independent voltage and current sources as the driving signal, the resultant linearized circuit is solved in the frequency domain over the specified range of frequencies.
 +
 +
This mode of analysis is useful for filters, networks, stability analyses, and noise considerations.
 +
Syntax: .ac <oct, dec, lin> <Nsteps> <StartFreq> <EndFreq>
 +
The frequency is swept between frequencies StartFreq and EndFreq.&nbsp; The number of steps is defined with the keyword "oct", "dec", or "lin" and Nsteps according to the following table:
 +
 +
{|table width="300" cellspacing="0" border="1"
 +
|- align="center"
 +
! Keyword || Nsteps
 +
|- align="center"
 +
| Oct || steps per octave
 +
|- align="center"
 +
| Dec || steps per decade
 +
|- align="center"
 +
| Lin || steps between <br /> StartFreq and EndFreq
 +
|}
 +
 +
 
=== DC Sweep ===
 
=== DC Sweep ===
 +
 +
 
=== Noise ===
 
=== Noise ===
 +
 +
 
=== DC Transfer Function ===
 
=== DC Transfer Function ===
 +
 +
 
=== DC Operating Point ===
 
=== DC Operating Point ===

Revision as of 21:02, 17 August 2009

At the netlist level the Simulation Command is simply a line of text that begins with any of the following Dot Commands:

.tran
.ac <oct, dec, lin> <Nsteps> <StartFreq> <EndFreq>
.dc
.noise
.tf
.op

At the schematic level these commands may be entered directly as a SPICE Directive (ctrl-right-click on the text to edit) or may be entered via the drop down menu item: Simulate => Edit Simulation Cmd.

Transient AC Analysis DC sweep Noise DC Transfer DC op pnt
Various options for the active Tab


Transient Analysis

AC Analysis

Perform a small signal AC Analysis linearized about the DC Operating Point.

The small signal (linear) ac portion of LTspice computes the ac complex node voltages as a function of frequency.  First, the dc operating point of the circuit is found.  Next, linearized small signal models for all of the nonlinear devices in the circuit are found for this operating point.  Finally, using independent voltage and current sources as the driving signal, the resultant linearized circuit is solved in the frequency domain over the specified range of frequencies.

This mode of analysis is useful for filters, networks, stability analyses, and noise considerations.

Syntax: .ac <oct, dec, lin> <Nsteps> <StartFreq> <EndFreq>

The frequency is swept between frequencies StartFreq and EndFreq.  The number of steps is defined with the keyword "oct", "dec", or "lin" and Nsteps according to the following table:

Keyword Nsteps
Oct steps per octave
Dec steps per decade
Lin steps between
StartFreq and EndFreq


DC Sweep

Noise

DC Transfer Function

DC Operating Point