PSpice input issue

Thread Starter

athonks

Joined Apr 15, 2011
4
Hi,
I'm having an issue with a fairly simple DC circuit(6 rezistors and 3 DC sources) which seems to have goten the best of me.
My problem is that in the output file the most of the values are off the edge :confused:
This is my code :
Circuit
R1 1 2 5
R2 3 6 10
R3 4 5 10
R4 3 7 10
R5 2 3 20
R6 7 5 30

V1 1 0 30
V3 2 4 50
V2 7 6 40

.OP
.DC V1 LIST 30
.PRINT DC I(R1),I(R2),I(R3),I(R4),I(R5),I(R6)
.PROBE
.END
And the circuit looks like this:

[

All the help would be very appreciated.
Also on tinypic:Schematic
 
Last edited:

SgtWookie

Joined Jul 17, 2007
22,230
Your SPICE code does not match the circuit.
For example, V1 is connected to nodes 1 and 0 (ground).
V3 is connected to nodes 2 and 4 - node 4 should have been ground.

Also, in the circuit, you have wires running through the resistors, which will short them out.

For your circuit, I get:

--- DC transfer characteristic ---

v1: 30 voltage
I(R6): -0.285714 device_current
I(R5): 0.285714 device_current
I(R4): 2.14286 device_current
I(R3): -1.42857 device_current
I(R2): -1.85714 device_current
I(R1): 1.14286 device_current

From your SPICE netlist, I get:
--- DC transfer characteristic ---

v1: 30 voltage
I(R6): 1.07692 device_current
I(R5): 1.07692 device_current
I(R4): -1.46154 device_current
I(R3): -1.07692 device_current
I(R2): 2.53846 device_current
I(R1): 0 device_current

Try labeling the nodes in your schematic, and see how different they are from the netlist that you generated.
 
Top