@lost110
@againtry is right: according to point 3 you would READ those resistances from file.
It's not point 3 that looks odd - it's point 4. Usually your network (electrical or fluid flow) is specified by saying which NODES you connect, not which wires.
You can solve it by varying the voltages at the nodes until you satisfy Kirchoff's laws:
net current out of a junction is 0. (In the fluid-flow analogue you can vary the pressure at the nodes until net flow out of each junction is 0).
For each node a,
net signed current out = external source current in
sum
b( V
a-V
b ) / R
ab = I
a
where:
V
a is voltage at node a
R
ab is resistance in wire a-b
I
a is (signed) external current
into node a
Just solve for the {V
a} - e.g. by Gauss-Seidel or Gaussian elimination. (Note that voltages are all relative: you can solve only up to a constant. You have to earth your circuit somewhere.)
Recover the currents from I
ab = ( V
a-V
b ) / R
ab
You can do a similar thing for fluid flow in pipe networks, but the resistance law tends to be quadratic, not linear as in Ohm's law.
@markyrocks
Here's a bridge network for you to try. (Input current I=3A into node 0 and out of node 3; resistance R values for wires are in ohms):
Network: 1
/ | \
R=10/ | \R=30
/ | \
/ | \
I=3 / | \ I=3
-------- 0 R=50| 3 ---------
\ | /
\ | /
\ | /
R=20 \ | /R=40
\ | /
2 |
I think the solution is as follows. (Note that I have, arbitrarily, earthed voltages at node 3).
Voltages (node : volts):
0 : 71.831
1 : 53.2394
2 : 49.0141
3 : 0
Currents (node a : node b : amperes):
0 : 1 : 1.85915
0 : 2 : 1.14085
1 : 2 : 0.084507
1 : 3 : 1.77465
2 : 3 : 1.22535 |