LTSpice follows the conventions established by Berkley Spice, PSpice, and other Spices... The manual page you linked is for PSpice.
Spice's choice of current direction thru a source enables Spice to show power delivered by the source as negative power, while dissipative circuit elements show power consumed as positive power. This was already discussed by Ghar in this linked thread: https://forum.allaboutcircuits.com/t...nt-always-measured-negative-in-ltspice.40854/
I covered flipping resistors end-for-end (so that the sign of the current through the resistor is reversed) in post #3 of this linked thread:
https://www.electro-tech-online.com/threads/ltspice-current-probe.109196/.
Here is a simple sim that demonstrates Spice's power convention.
View attachment 97098
V1 is fixed at 5V, while V2 varies from 0V to 10V in small steps. The x-axis is V(V2) = V(b). The upper plot pane shows the current through V1 and V2 (per Spices's definition as discussed in the linked pdf). The traces were added to the upper plot pane by using the "amprobe" cursor and clicking on the voltage sources; the plotting is done automatically. Note that for different values of V2's voltage, at times the current in both sources and the resistor reverses...
The lower plot shows LTSpice's view of the power contributed by or dissipated by both sources and the resistor. The plots were obtained automatically by clicking on V1, V2 and R1 with the "thermometer" (power) cursor displayed. LTSpice shows if a source is contributing power or dissipating power seamlessly. Positive power is always dissipation. Note that the resistor only dissipates power. Note that all power goes to zero when V(V2)=V(V1). Note that when V(V2)=10, the power dissipated by both the resistor and V1 is 5W each.
How would you have done it? (Hindsight is always 20:20)
Only to your way of thinking......
Correct, every simulation program I know of is backward.
...I would have it like I do with pencil and paper. ... A resistor would be a positive current times a negative voltage which would make the resistor power negative. This means that the resistor absorbs electrical energy and dissipates it as heat.
Ratch
Only to your way of thinking...
So according to you, power delivered by a source is I*E, while power dissipated in a resistor is -E*I; how is that an improvement??? I like my way (Spice's way) better. I have yet to go to a store and buy a resistor that is rated to dissipate -2W.
So according to you, if current in the resistor is positive if it flows from left to right, to get a negative voltage across the resistor, the potential at the left end of the resistor would have to be lower than the potential at the right end. You are espousing electron current!
You completely glossed over the issue that sources can sometime supply power, sometimes dissipate power, which requires a current reversal.
The only thing that matters is that whatever convention you choose, you apply it consistently, and rigorously.
Only to your way of thinking...
So according to you, power delivered by a source is I*E, while power dissipated in a resistor is -E*I; how is that an improvement???
I like my way (Spice's way) better.
I have yet to go to a store and buy a resistor that is rated to dissipate -2W.
So according to you, if current in the resistor is positive if it flows from left to right, to get a negative voltage across the resistor, the potential at the left end of the resistor would have to be lower than the potential at the right end. You are espousing electron current!
You completely glossed over the issue that sources can sometime supply power, sometimes dissipate power, which requires a current reversal.
The only thing that matters is that whatever convention you choose, you apply it consistently, and rigorously.
Let me ask you, if I connect the red lead of my voltmeter to the left end of a resistor, and the black lead to the right end of a resistor, and I see a positive reading, which way is the current flowing? left to right? right to left?
Is the "mathemetical current direction" a signed quantity? If so, in your world, which current direction carries what sign?You are showing a more positive voltage on the left side of the resistor. Therefore, the mathematical current direction is from left to right through the resistor...
Every number is a signed quantity, whether explicitly designated or implied. So what does that question mean? Let me iterate the mathematical current convention as it relates to a component. If current, as determined by a ammeter, leaves the more positive terminal of a device, that device is supplying power to the circuit. If the current is entering the more positive terminal of a device, then the device is taking power from the circuit. For instance, if a resistor measures -4 volts and -6 volts on either side, the current will enter the more positive -4 volts side and the resistor will be considered a power sink. A voltage or current source that shows a current departing the more positive side will be considered a power source. This convention will be in compliance the mathematical current convention and Tellegen's theorem, which declares that the power entering a circuit equals the power leaving the circuit. LTSpice does not comply with that convention.Is the "mathemetical current direction" a signed quantity? If so, in your world, which current direction carries what sign?
I find it ironic that a proof of Tellegen's theorem defines the current direction through the voltage source the same way that LTSpice does. Note that the author of this page choose I1 to be equal but opposite to I2. B is a node of the circuit. By KCL, the sum of the currents into that node have to equal zero.... Tellegen's theorem, which declares that the power entering a circuit equals the power leaving the circuit.
First of all, that link shows a verification of Tellegen's theorem, not a proof of it. I would think that the proof of it would reference the Conservation of Energy Principle. The direction of current around a circuit has nothing to do with a proof. As long as the currents and voltages are consistent, the sum of the energy sources and sinks will equal zero.I find it ironic that a proof of Tellegen's theorem defines the current direction through the voltage source the same way that LTSpice does.
Note that the author of this page choose I1 to be equal but opposite to I2. B is a node of the circuit. By KCL, the sum of the currents into that node have to equal zero.
No they are not. LTSpice shows current entering the positive terminal of a voltage source. That's a no-no for the mathematical current convention. Because it does not square with what a ammeter would indicate, others have noticed this anomaly and commented on it. The "excuse" given for this is that it makes the power calculations negative when the source gives power to the circuit. This is supposed to balance the loss of power in the resistors which is considered positive. In post #25 of this thread I showed why this is wrong thinking.LTSpice's calculations are consistent with KCL.
Also, Tellegen's theorem states that the summation of instantaneous powers for the n number of branches in an electrical network is zero. It says nothing about dissipation carrying either a plus or minus sign. LTSpice's calculation's show that power in equals power out...
Which, if you bothered to follow the example above, is exactly what LTSpice shows...... As long as the currents and voltages are consistent, the sum of the energy sources and sinks will equal zero.
Which, as just I showed in #30, is exactly what LTSpice does. How could it be otherwise if the summation of currents into node a is zero per KCL?...I would have done it the right way by keeping the currents in the same direction and changing the voltage reading across the source the way it really happens.
Look again! It shows a negative current entering the positive terminal of the voltage source V1. To me, that means the current is actually flowing out of the positive terminal... So where is the inconsistency???LTSpice shows current entering the positive terminal of a voltage source.
Which is what I have been saying all along.Other verifications do show dissipations as one sign and sources as the opposite sign. The bookkeeping method has nothing to do with Tellegen's theorem. In LTSpice, power in equals power out provided you hook up the components with the correct node designations.
Which, if you bothered to follow the example above, is exactly what LTSpice shows...
That is not what the documentation I submitted in the second link of post #20 says. To quote: "N+ is the positive node and N- is the negative node, as shown in Fig. 4-5(a). Positive current flows from node N+, through the voltage source, to the negative N-." Your run shows negative current entering N+ (according to the arrow) and exiting at N-. The current now runs in the correct direction, but you must have switched leads of the voltage source in LTSpice to do that. In any case, what should be is that the current arrow of I(V1)( should point upwards and the current be a positive value.Which, as just I showed in #30, is exactly what LTSpice does. How could it be otherwise if the summation of currents into node a is zero per KCL?
You are confusing your LTSpice run with the verification of the Tellegen verification link you submitted. That verification did not use LTSpice, so what does your question mean?The voltage reading is correct as shown. How could it be otherwise if the sum of voltages around the loop adds to zero, per KVL? What is your "Right Way"???
Look again! It shows a negative current entering the positive terminal of the voltage source V1. To me, that means the current is actually flowing out of the positive terminal... So where is the inconsistency???
You were criticizing my using plus and minus to show energy gains and losses. I am glad you agree that the bookkeeping method is irrelevant to Tellegen's theorem.Which is what I have been saying all along.
Think what you want, but others have noticed the same thing. LTSpice still puts out the wrong signs for energy losses and gains, and still has to use a kluge to get the currents moving in the right direction. Therefore my complaints have not fallen apart.I think all of your rants about Spice in general, and LTSpice in particular just fell apart, with the exception of the pin swapping on two-terminal components.
That will not cure the opposite signs of energy gains and losses. And it looks "funny" to see a voltage or current source pointing the wrong way with a negative value.The solution is really simple. Mark pin 1 on the two-terminal, symmetrical components, and then insert them into the schematic so that positive current flows into pin 1. You might not know that until you actually do a simulation, and actually look to see which direction current is actually flowing. Note that this problem occurs only with a graphics schematic editor. In text-based Spice, you always had to define a-priori "which-way-around" a two-pin component is instantiated.
As it should be, but the sign will be wrong.Note that the power calculation done by LTSpice is correct regardless of which way around a symmetrical component is drafted in a schematic.
Hopelessly Pragmatic...
I do not support LTSpice, so I can't fix its problems. But they should be exposed and explained as others have done.As usual, you contribute nothing useful, and just want to argue, forever, for arguments stake. I have better things to do with my time...
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?