I don't have a clue. Always thought it was magic!What do you think Maple is doing?
NOTE: I've added polarity markers to your sources so that there is no ambiguity.Hi,
Ok sure.
Would you care to tackle this circuit, but showing how the super node concept works (not just solving for Vo1 or the node voltages)?
Code:[FONT=Courier New] 8---E2---7---R4---6---E6---5 | | | | R1 E3 E5 R7 | | | | 4---R2---3---E4---2---R6---1--Vo1 | | | | E1 R8 R9 R10 | | | | GND GND GND GND [/FONT]

It actually isn't THAT bad -- two equations in two unknowns. Even solving it symbolically wouldn't be too bad. Solving for actual currents given all the parameters would be almost trivially easy.Is anybody going to give a try at solving for the voltage source currents?
Hi,One may view a supernode as no different than a regular node and write a node equation for the supernode directly from the circuit diagram just like a regular node. My point is that getting the supernode equation can be made easier by color coding the supernode and annotating the voltage offsets directly on the diagram. When done in this manner the supernode equation will have the same basic form as a regular node equation, thereby making it easier to see when a simple mistake has been made.
But the underlying message in my first reply was: Don't expect to solve this problem by rote manipulation of algebraic formulae.
Hi,NOTE: I've added polarity markers to your sources so that there is no ambiguity.
You do it just like any other supernode problem.
A supernode consists of nodes connected by voltage sources. Here you have two such sets.
{GND, V4} -- but this is trivial and you can just set
V4 = E1.
The other one is shown in red:
View attachment 114949
-E1 - E2 - E3 - E4
So you have two node equations, one for V1 and one for the supernode.
There are about three main ways to do it, largely depending on your level of comfort with writing the equations down in final form by inspection. The most explicit is to write the equations in terms of the actual nodes involved and then write supplementary equations relating the voltages of the nodes that make up the supernode.
Note that you could include R4 in the supernode since the current in it is strictly determined by the sources within the supernode and it otherwise doesn't interact with anything else outside the supernode. But if you are looking for something like power dissipation, then it is probably best (but not required) not to do this. It's largely a moot point because it will drop out of the equations anyway.
V1: (V1 - V2)/R6 + (V1 - V5)/R7 + (V1)/R10 = 0
supernode: (V8 - V4)/R1 + (V3 - V4)/R2 + (V3)/R8 + (V2)/R9 + (V2 - V1)/R6 + (V5 - V1)/R7 + (V7 - V6)/R4 + (V6 - V7)/R4 = 0
Note that the last two terms cancel, as expected.
Supplementals:
V8 - V7 = E2
V7 - V3 = E3
V3 - V2 = E4
V6 - V2 = E5
V6 - V5 = E6
If you are comfortable writing the normal nodeal equations down by inspection, then all you do is pick one of the supernode nodes as the node you want to use as an unknown and write the left hand side just as you would if the entire supernode was the node you picked. Then for the right hand side you do the same to get started, but then you add a term for each source in the supernode and the resistors that have to go through it to get to the chosen node.
V1: V1(1/R6 + 1/R7 + 1/R10) - V2(1/R6 + 1/R5) = E5(1/R7) - E6(1/R7)
V2: -V1(1/R6 + 1/R5) + V2(1/R1 + 1/R2 + 1/R6 + 1/R7 + 1/R8 + 1/R9) = E1(1/R2 + 1/R4) - E2(1/R1) - E3(1/R1) - E4(1/R1 + 1/R2 + 1/R8) - E5(1/R7) + E6(1/R7)
Assuming I did these correctly -- and it's been many years since I've done so and I chose to try to do it by inspection here and haven't verified the results -- then these are the two equations in two unknowns.
Hi,What other way is there to solve it? What do you think Maple is doing? If ever there was an example of rote manipulation of algebraic formulae, mathematical software is it.
If what you mean is that a human being wouldn't be able to carry out that much algebra by hand without making a mistake, you should say that. That I can certainly agree with.
Is anybody going to give a try at solving for the voltage source currents?
[FONT=Courier New]
Note: There are two E4's both 4v each.
19--R3---18--R10--17--E4---16
| | | |
E2 R8 R15 R23
| | | |
15--R4---14--R11--13--R19--1--Vo1
| | | |
R2 E3 R16 R23
| | | |
11--R5---10--R12--9---E5---8
| | | |
E1 R9 R17 R24
| | | |
7---R6---6---R13--5---R20--4
| | | |
R1 E4 R18 R25
| | | |
3---R7---+---R14--2---R21--12
|
GND
All source are positive on top or to the right.
E1=1, E2=2, etc., up to E5=5.
R1=1, R2=2, R3=3, etc., up to R25=25.[/FONT]
Note these results are untested and will be tested a little later.
LATER: checked the voltage across R14 based on currents into and out of node 2 and it checks out ok.
v1=491832161662954864/68740236925797235
v2=134649318774076638/68740236925797235
v3=151841554672647728/68740236925797235
v4=325586682968316987/68740236925797235
v5=233055250711944477/68740236925797235
v6=4
v7=173533205340168832/68740236925797235
v8=107248779207635271/13748047385159447
v9=38508542281838036/13748047385159447
v10=174329065263819472/68740236925797235
v11=242273442265966067/68740236925797235
v12=443632752682024899/137480473851594470
v13=350031385792762052/68740236925797235
v14=380549776041211177/68740236925797235
v15=279025246947526877/68740236925797235
v16=619073998077966777/68740236925797235
v17=344113050374777837/68740236925797235
v18=395490031001199337/68740236925797235
v19=416505720799121347/68740236925797235[/FONT]
Note: There are two E4's both 4v each.
To what end? What would setting up the equations for this one show you about applying supernodes that setting up the equations for the prior one failed to?Hi again,
Here's one more for the really gutsy out there![]()
Hello again,To what end? What would setting up the equations for this one show you about applying supernodes that setting up the equations for the prior one failed to?
After we set this one up are you going to post an even more convoluted one?
Of course you do. I told you, it's doing rote manipulation of algebraic formulae. There's no other way. It's just that Maple is doing it for you.I don't have a clue. Always thought it was magic!
When I first asked the question I was referring to post #14, where there are 4 voltage sources, hence 4 unknown currents.It actually isn't THAT bad -- two equations in two unknowns. Even solving it symbolically wouldn't be too bad.
Talk is cheap; let's see some actual equations.Solving for actual currents given all the parameters would be almost trivially easy.
So let's stick with Post #19.When I first asked the question I was referring to post #14, where there are 4 voltage sources, hence 4 unknown currents.
Talk is cheap; let's see some actual equations.
When I asked the question the second time, MrAl had posted another circuit in post #19 where there are 6 voltage source and 6 unknown currents.
Edit: What I was looking for is equations that give the currents as the solutions for the currents as unknowns, not just calculating individual currents in resistors entering a node by hand and adding them up, as MrAl suggested in post #27.
Hi there,When I first asked the question I was referring to post #14, where there are 4 voltage sources, hence 4 unknown currents.
Talk is cheap; let's see some actual equations.
When I asked the question the second time, MrAl had posted another circuit in post #19 where there are 6 voltage source and 6 unknown currents.
Edit: What I was looking for is equations that give the currents as the solutions for the currents as unknowns, not just calculating individual currents in resistors entering a node by hand and adding them up, as MrAl suggested in post #27.
Of course it can be done as you have shown, but I was looking for something different. What I was looking for is equations that give the currents as the solutions for the currents as unknowns, not just calculating individual currents in resistors entering a node by hand and adding them up, as MrAl suggested in post #27.So let's stick with Post #19.
I don't see what is so difficult to see about going from the two equations for the two essential nodes to equations for the currents in the sources.
The currents in each of the sources can be written down, in terms of V1 and V2, by inspection.
Let's let In be the current in En.
I1 = [(E1) - (V2 + E4 + E3 + E2)]/R1 + [(E4) - (V2 + E4)]/R2
I2 = [(V2 + E4 + E3 + E2) - (E1)]/R1
I3 = [(V2 + E4 + E3 + E2) - (E1)]/R1 + [(V2 + E3) - (V2 + E5)]/R4
I4 = [(V2 + E4) - (E1)]/R2 + [(V2 + E4)]/R8
I5 = [(V2 + E5) - (V2 + E4 + E3)]/R4 + [(V2 + E5 - E6) - (V1)]/R7
I6 = [(V2 + E5 - E6) - (V1)]/R7
Note that these can be simplified significantly by using the results of some as partial solutions to others. But even as they stand, the only two parameters in each equation are V1 and V2.
We already have two equations in the unknowns V1 and V2.
V1: V1(1/R6 + 1/R7 + 1/R10) - V2(1/R6 + 1/R5) = E5(1/R7) - E6(1/R7)
V2: -V1(1/R6 + 1/R5) + V2(1/R1 + 1/R2 + 1/R6 + 1/R7 + 1/R8 + 1/R9) = E1(1/R2 + 1/R4) - E2(1/R1) - E3(1/R1) - E4(1/R1 + 1/R2 + 1/R8) - E5(1/R7) + E6(1/R7)
These are of the form
V1: A·V1 - B·V2 = C
V2: -B·V1 + D·V2 = E
Where
A = (1/R6 + 1/R7 + 1/R10)
B = (1/R6 + 1/R5)
C = E5(1/R7) - E6(1/R7)
D = (1/R1 + 1/R2 + 1/R6 + 1/R7 + 1/R8 + 1/R9)
E = E1(1/R2 + 1/R4) - E2(1/R1) - E3(1/R1) - E4(1/R1 + 1/R2 + 1/R8) - E5(1/R7) + E6(1/R7)
Solving for V2:
AB·V1 - B²·V2 = BC
-AB·V1 + AD·V2 = AE
(AD - B²)V2 = (BC + AE)
V2 = (BC + AE) / (AD - B²)
Solving for V1 in terms of V2
V1 = (B·V2 + C) / A
Now it's just a matter of direct substitution of these back into the current equations.
Hi,Of course it can be done as you have shown, but I was looking for something different. What I was looking for is equations that give the currents as the solutions for the currents as unknowns, not just calculating individual currents in resistors entering a node by hand and adding them up, as MrAl suggested in post #27.
Since there's a lot of algebra to be done here, and most likely a computer math program will be used, there's no reason to try to minimize the equation set. When a computer is doing all the work we can make things more convenient for ourselves even if that means more work for the computer.
So we can set things up so we get all 8 node voltages directly, rather than just get two and derive the rest by adding and subtracting offsets. And since expanding the calculations are no more work for us, let's also calculate the 6 voltage source currents at the same time.
We don't need to use the supernode concept if we just use modified nodal analysis (MNA). This problem can be set up as 14 equations in 14 unknows; the coefficients of the equations are quite trivial. Then the system is solved directly for all unknowns. No need to add and subtract various combinations of offset voltages to get all node voltages and source currents:
View attachment 114997
The symbolic solution was the initial result of the LinearSolve command before I gave the resistors and sources numerical values, but it's very unwieldy; it would take many pages to print.