Nodal analysis algorithm applied to a circuit without voltage sources

Click For Summary

Discussion Overview

The discussion revolves around the application of the nodal analysis algorithm to a circuit that does not include voltage sources. Participants explore the challenges of calculating equivalent resistance in a specific circuit configuration, particularly focusing on the construction of the G matrix and the implications of grounding nodes.

Discussion Character

  • Homework-related
  • Technical explanation
  • Exploratory

Main Points Raised

  • The original poster (OP) describes their attempt to use nodal analysis to find the equivalent resistance between two nodes in a circuit without voltage sources, noting that their G matrix is singular.
  • Another participant suggests that the OP has not correctly represented the grounding of certain nodes, which may lead to the singularity of the G matrix.
  • This participant advises the OP to include small resistors between the grounded nodes and ground to resolve the singular matrix issue.
  • The participant provides an example of how to modify the G matrix by eliminating certain rows and columns, which allows for a solvable system.
  • The OP acknowledges the guidance and reports success in calculating the resistance after making the suggested adjustments.
  • A later post expresses a request for further assistance, indicating ongoing uncertainty or challenges.

Areas of Agreement / Disagreement

Participants generally agree on the importance of correctly grounding nodes in the circuit analysis. However, the discussion contains unresolved elements regarding the specific configurations and calculations, as indicated by the OP's request for further help.

Contextual Notes

The discussion highlights limitations in the initial circuit representation, particularly the absence of clear schematics showing the placement of resistors and nodes, which complicates the analysis.

Who May Find This Useful

This discussion may be useful for individuals interested in circuit analysis, particularly those learning about nodal analysis and its application in circuits without voltage sources.

oswald2323
Messages
5
Reaction score
0

Homework Statement



I am having some trouble with the nodal analysis algorithm explained in this web page http://www.swarthmore.edu/NatSci/echeeve1/Ref/mna/MNA3.html

My electrical circuits knowledge is very basic, and I need to get the equivalent resistance of a circuit for a non related task (I am building an automated Hex player, see http://home.earthlink.net/~vanshel/VAnshelevich-01.pdf if you are interested).

The most basic circuit would be (excuse the ugly drawing):
fm6m14.png


Homework Equations



I set 1 Ampere for the generator, all resistors to 1 ohm and all wires 0.01 ohm (except the ones from the generator to A and B, which should have resistance 0). I want to get equivalent resistance from A to B. As you can see, there are no voltage sources so this is the most basic case of nodal analysis: I want to solve G*v = I, so I can get the voltage at node A and finally use it to calculate the circuit resistance (which should be equal to [voltage at node A] Ohms).

The Attempt at a Solution


I have coded a little program that solves the thing. The problem is that following the algorithm, it comes up with this G matrix:

Code:
     200.00     -100.00     -100.00        0.00        0.00
    -100.00      103.00       -1.00       -1.00       -1.00
    -100.00       -1.00      102.00        0.00       -1.00
       0.00       -1.00        0.00        2.00       -1.00
       0.00       -1.00       -1.00       -1.00        3.00

which is singular, and thus I cannot solve the linear system. The I vector is set as:

Code:
       1.00
       0.00
       0.00
       0.00
       0.00
Do you have any clues as to what I am doing wrong? Should node B be represented in the G matrix? (I tried it and the same thing happens, G matrix is singular).

PD: even though this is not a homework or coursework assignment, I am posting here because I got a warning when I posted in the electrical engineering forum.
 
Physics news on Phys.org
I see that this question is a follow-on from your earlier thread.

You have followed my advice to replace wires with small resistors, but you have not provided a new schematic where the little .01 ohm resistors are shown. This puts those who might help you in a difficult position. We have to guess where the .01 ohm resistors are.

You should also show in your schematic the numbering of the nodes that you used when you created your matrix.

However, I can tell that you have a couple of .01 ohm resistors between node A and each of V1 and V2, and that node A is node 1, and nodes V1, V2, V3 and V4 are numbered 2, 3, 4 and 5.

Your problem is that you have treated nodes V3 and V4 as though they weren't grounded. Unless you insert .01 resistors between V3 and ground, and between V4 and ground, your matrix will be singular.

But if you eliminate rows 4 and 5, and columns 4 and 5 in the matrix shown in your post #1 (this is what you should get by taking into account the fact that V3 and V4 are at ground potential), and shorten your I vector to only have 3 elements, then you can solve the system.

If I do this, I get a result of .338870967742 ohms.

If you don't insert the .01 ohm resistors, the resistance from A to B is .333333333333 ohms.

The .01 ohm resistors don't make much difference.

If you insert .01 ohm resistors between V3 and ground, and between V4 and ground, then you will have a matrix which won't be singular.

If I do this, I get a result of .344415584416 ohms.
 
Great! Now I get what I was doing wrong. I have fixed that and the resistance calculation is working perfectly, even for a larger circuit =)

Thanks again!
 
Please Help With This .. how to resolve ..
 

Attachments

  • untitled.JPG
    untitled.JPG
    13.5 KB · Views: 650

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
15
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K