Resistance in simulation

Why is it that when I add a resistance to the sim sometimes I get a positive current through the resistance and sometimes a negative current even when the circuit is only 1 dc voltage and 1 resistance. Does the resistance direction change with it orientation.

Yes, resistances do have a polarity for the sensing of the current, even though this polarity is not shown in the drawing. If you get a negative current with respect to the one you expect, just rotate the resistor and run the simulation again.
Same thing happens with caps, inductors without dots, etc.
If you want to see the current with the correct direction you can add a 0V voltage source in series. In a voltage source the current is always measured going into the positive terminal.
Or you can visit this library: website/Qspice at main · marcosalonsoelectronics/website · GitHub
and download the isense device to measure currents.

1 Like

More information for your reference, including how to identify pin order from GUI.

3 Likes