Anonymous user
Talk:Resistor mesh: Difference between revisions
non, wrong, these are equations between voltages, and V(A)=0, the current in B comes from V(B)=RI+V(A)=RI
(non, wrong, these are equations between voltages, and V(A)=0, the current in B comes from V(B)=RI+V(A)=RI) |
|||
Line 13:
:: Of course the interesting part is how to get the voltage values, and there are multiple ways to do it. The C code just give the circuit some arbitrary values initially, then at each iteration calculates how much voltage difference is needed on each node to locally sastisfy the current flow constraint on that node, and adds it onto the voltage. For this task it converges and pretty quickly at that. --[[User:Ledrug|Ledrug]] 15:45, 29 August 2011 (UTC)
:::Given the problem size, even Gauss pivoting will do. Now, for a larger circuit, you would simply use a sparse symmetric solver, and there are many good ones already written. Maybe conjugate gradient would be a nice starting point. See also Maxima solution for an exact value. At least it will help checking other methods ;-) [[User:Capra Hircus|Capra Hircus]] 11:11, 28 August 2012 (UTC)
|