Example 3.1 - Basic DC Node Voltage Analysis
.OPT NOPAGE
V1 1 0 DC 5
V2 3 0 DC 10
I1 2 0 DC 3 ; Current enters node 2, leaves node 0
; in accordance with PSpice convention.
R1 1 2 2
R2 2 0 2
R3 2 3 4
.DC V2 10 10 1 ; Single-point DC calculation used
; because the resistance currents are
; not available with the .OP command.
.PRINT DC V(2) I(R1) I(R2) I(R3)
.END
Example 3.1 - Basic DC Node Voltage Analysis
*
* Part 2, PSpice experiment: Change voltage source V1 to 1 volt.
* Expected result is node voltage V(2)=0.
*
.OPT NOPAGE
V1 1 0 DC 1
V2 3 0 DC 10
I1 2 0 DC 3 ; Current enters node 2, leaves node 0
; in accordance with PSpice convention.
R1 1 2 2
R2 2 0 2
R3 2 3 4
.DC V2 10 10 1 ; Single-point DC calculation used
; because the resistance currents are
; not available with the .OP command.
.PRINT DC V(2) I(R1) I(R2) I(R3)
.END