Index: simulation/raw/04_passive_tr.html =================================================================== --- simulation/raw/04_passive_tr.html (revision 7924) +++ simulation/raw/04_passive_tr.html (revision 7925) @@ -9,8 +9,8 @@
-The single-sheet schematics contains the filter, the voltage source and -spice command symbol. +The single-sheet schematic contains the filter, the voltage source and +the spice command symbol.
In the tran(sient) analysis a DC solution is calculated first -then a simulation is ran with a fixed time stepping, updating the internal +then a simulation is run with a fixed time stepping, updating the internal states of components (e.g. capacitor charges) and networks (voltages). The -result is typically a graph with time on the X axis and voltages/currents on -to Y axis. +result is typically a graph with time along the X axis and voltages/currents on +the Y axis.
-In our example, V1 uses a PULSE wave form as stimulus on the in network. +In our example, V1 uses a PULSE wave form as the stimulus on the in network. The SPICE syntax of PULSE is:
PULSE(V1 V2 TD TR TF PW PER NP) @@ -61,14 +61,14 @@ The first line instructs spice to do the "transient analysis" with 0.1ms time stepping up to 200ms. The second tells it plot (draw) three voltages; our X axis is time (because -of tran), display the plot between 0 and 200ms. +of tran), and to display the plot between 0 and 200ms.Export and run ngspice
-Because of the plot command the output is a drawing (if ngspice is ran -on X), a graph with three curves. Fastest is v(in), a slower, curvy -trace is mid's voltage and the slowest to follow is v(out). +Because of the plot command the output is a drawing (if ngspice is run +on X), consisting of a graph with three curves. Fastest is v(in), a +slower, curvy trace is mid's voltage and the slowest to follow is v(out).
@@ -83,12 +83,12 @@ tran 0.1ms 200ms > plot.txt
-This tells gnucap what to print after a tran simulation than runs the tran +This tells gnucap what to print after a tran simulation then runs the tran simulation, redirecting the printout to a file called plot.txt.
-After the export, write a single word spice in the first line of the -file (e.g. using a text editor), else gnucap won't know the file is in spice -syntax. Then run gnucap 04_passive_tr.cir and it will dump a text +After the export, write the single word spice in the first line of the +file (e.g. using a text editor), otherwise gnucap won't know the file is in +spice syntax. Then run gnucap 04_passive_tr.cir and it will dump a text table to plot.txt. Run gnuplot and type the following command:
plot "plot.txt" using 1:2 with lines title "v(in)", \ @@ -96,7 +96,7 @@ "plot.txt" using 1:4 with lines title "v(out)";
-The gnucap-modified schematics is also available. +The gnucap-modified schematic is also available.