Problem 5.4 - DC Node Voltage Analysis and Network Transformation
*
* The circuit for this problem is from textbook Chap. 5, Problem 5.
* NOTE: This is a two-part problem:
* 1. First solve the original problem to get node voltages and
* mesh currents for the given circuit.
* 2. Substitute a Thevenin equivalent voltage source and series
* resistance for each current source and its parallel resistance.
* Compare node voltages and resistance currents as specified in
* the problem statement.
*
* The end-to-end programs below will give the two solutions in one
* program run when the requested data is correctly entered.
*
.OPT NOPAGE
I1 0 1 DC ??? ; Enter the value for current source I1.
I2 ??? ??? DC 70 ; Enter initial and final nodes for I2.
R1 1 0 .20
R12 1 2 .05
R2 2 0 .10
R23 2 3 .02
R3 3 0 .20
.DC I1 10 10 1
.PRINT DC I(R1) I(R12) I(R23) I(R3)
; Enter .OP command or a .PRINT statement
; to obtain all node voltages as output.
.END
Problem 5.4, Part 2. DC Node Voltage Analysis and Network Transformation
*
* Substitute Thevenin equivalent voltage sources for current sources.
*
.OPT NOPAGE
V1 4 0 DC ??? ; Enter value of equivalent voltage source.
V2 0 5 DC ??? ; Enter value of equivalent voltage source.
R1 4 1 ??? ; Enter value of Thevenin resistance.
R12 1 2 .05
R2 2 0 .10
R23 2 3 .02
R3 5 3 ??? ; Enter value of Thevenin resistance.
.DC ; Enter appropriate .DC sweep command.
.PRINT DC I(R1) I(R12) I(R23) I(R3)
; Enter .OP command or a .PRINT statement
; to obtain all node voltages as output.
; Compare with results from Part 1.
.END