Michel,
You should comment/explain your code a little bit more.
Yes you are correct the commenting is scarse - I shall improve on this!
Concerning variables "potential_1_sig_1" and the like, explain you notation, are these the kij matrix from equation (40) in Eriksson? If your answer is "yes", then, could you explain your first relation:
potential_1_sig_1 = (k*((4*log(1 + sqrt(2))/h) + (1/(3*(sqrt(2)*h))) + (2/(3*h))))
Yes. This is based upon the kij matrix in equation(40) but more directly equation(45). I have separated each potential 1, 2, 6, 17, 18 and 22 and then further each charge associated with that potential 1, 2, 6, 17,18 and 22.
Thus, potential 1 and charge 1 has the notation 'potential_1_sig_1' and is equated to the terms made up from the kij matrix previously discussed.
I would expect only one term, not three terms. What is your explanation?
Why?
Next, what is then the meaning of your next equation:
charges = [potential_1_sig_1 ... potential_22_sig_22]
This is a method in MATLAB to create a matrix, there are six unknowns i.e sigma1, sigma2, sigma6, sigma17, sigma18 and sigma22 therefore there are six equations in the matrix potential1 through to poential22.
And the meaning of this one:
charge = charges\v
This again is a MATLAB operation. Basically it performs a simultaneous equation using the matrices charges and v (the potential vector).
My other comments:
You did not describe the geometry you considered, square, circular, ... .
This was the parallel plate arrangement as described in Ericksons document. It consists of two sqaure parallel plates 16m^2 by 10m separation.
You did not give the coordinates of the surface elements. It could help you a lot to put that in variables.
These are described in the document, is that what you meant?
You should make more use of vectors, for storing coordinates of surface elements, for automating the building of equation (39), ...
I like the sound of that!
With more automation, you will be able to handle more elements and be more realistic.
Try to solve the problem with -say- 2*100 elements, once you finished this small one
Yes this is my goal - I would like to be able to simple modify some standard code for different geometries. The more realistic the better. However I am only requiring a resolution to that of my capacitance meter i.e 0.1pF.
Is the 200 elements? - If so why have you written in such an interesting way?
once you finished this small one
Don't you consider this finished?
Then, try to understand a few questions of you own. My own main question would be: the role of the log terms (equ 40). What would be yours?
I haven't thought that far in advance yet - although I presume that the log terms have something to do with the 'self' capacitance or the mutual capacitance. I am not 100% sure what these are when they are described by Erickson. Do you?
Calculate similarly the electric fields (write your equation).
Do you think this technique lends itself to field distribution instead of charge distribution?
How would you define the effect of the fringing on the capacity and calculate it.
I was presuming that the charge and the fringe were related? and once I knew the charge at a point I could figure out information about the fringing field, such as, the 'strenth', its reach and by knowing these two its overall significance on the capacitance?
Thank you for your time to this discussion.
Regards
Tom