Capcalc Moreirao
Capcalc Moreirao
Capacitance Calculations
Antonio Carlos M. de Queiroz
Copen hemisphere = 40a(1/2+1/) = 91.049254a pF (4) From [2] (the same formula appears in [3], that is
probably the origin of this formula, but in a somewhat
A closed (with a flat disk) hemisphere with radius a different notation) the capacitance of a toroid with
[2]: major diameter D and minor diameter d, d<D/2, (fig. 1)
( )
Cclosed hemisphere = 8 0 a 1 − 1 / 3 = 94.052249 pF (5) is:
i = 1 +
n
+ (i − 1), i = 1...n
(15)
2
They can be quickly and precisely evaluated using the ri = A + a cos i
arithmetic-geometric mean method, below
zi = a sin i
implemented in a Pascal routine:
Each of these rings has a uniform charge distribution,
{
Complete elliptic integrals of first
with a total charge qi. The potential due to each ring
and second classes - AGM method. i at any given position r0, z0 is given by:
Returns the global variables:
Ek=E(c) and Fk=F(c) (E and K)
qi 2 q i
i (r0 , z0 ) = Q−1/ 2 2 − 1 = 2 i K Ei = (22)
4 0
2
r0 ri k 2 0 R1 0
develops a better expression for the case of spheres at IX. POTENTIAL AND ELECTRIC FIELD AROUND A TOROID
small distance too. The choice of appears to work
correctly too when the other root is used. The formula The solution of this problem can be traced to [3]. The
works for any choice of v1 and v2, but always calculates formula for the potential also appears in [2]. The
the electric field at the point of the sphere with radius a potential around an isolated toroid in free space, with
closest to the other sphere, even when this is not the central radius A and tube radius a, at a radial distance r
point of maximum electric field (as when v1 and v2 and axial distance z from the center, is found as:
have the same sign). Note that at that point the
2V Qn −1 2 ( x)
calculation using rings, as formulated, calculates an (, ) = 2(cosh − cos ) n Pn −1/ 2 (cosh ) cos n;
Pn −1 2 ( x)
electric field slightly smaller than the correct value. n =0
n = 1 2 for n = 0, 1 for n 0;
A
VIII. CAPACITANCES OF TWO SPHERES x= ; c = A2 − a 2 ;
a
1 z 2 + (r + c) 2
Similar formulas, due to Kirchhoff, lead to the = ln 2 ;
2 z + (r − c) 2
capacitance matrix of two spheres [5]. For two spheres z c
with radii a and b and distance between centers c: sin = sinh ; cos = cosh − sinh
r r
sin 2cz
2 = tan −1 = tan −1 2 ;
k11 = 8 0 + + + ; cos r + z 2 − c2
1 + 2
1 +
2 2
1 +
4 2
(38)
2
k22 = 8 0 + + + ; The surface electric field can be found by the
1 + 1+ 1+
2 2 2 4 2
(34) differentiation of (38). The maximum occurs when
2 3 cosh = x =A/a (toroid surface) and =0 (major
k12 = −8 0 + + + ;
1 + 2
1 + 4
1 + 6
diameter). The result, hinted in [3] but not developed,
is the series:
2 c − a
= 1+ − ; = ; = ;
4 2V (x − cos )
Pcos n(x)
3/ 2
a 2
a b E= (39)
(c + a + b )(c − a − b )(c + a − b )(c − a + b ) (
d x 2 − 1 ) n =0
n
n −1 2
=
2c The ideal exact breakdown voltage can then be
These formulas also converge slowly when the spheres obtained as in (24). This series converges somewhat
are at small distance. [5] shows better formulas for more slowly than (9) but still can achieve high
small distances. [11][12] have the exact solution when precision. The series (38) may lose precision due to
the spheres are touching, eq. (49). errors in the evaluation of Qn+1/2(x) by the recursion
(13).
The coefficients of the capacitance matrix represent the
ratio between the induced charges and the voltages. k11 X. OTHER CAPACITANCES
and k12 represent capacitances to ground from a sphere
with the other sphere grounded, and –k12 is the floating Other capacitances, of shapes without circular
capacitance between the spheres. The differential symmetry, are known from numerical analysis.
capacitance between the spheres is obtained by Classical cases are the capacitances of the square [13]
assuming opposite charges q on them: and triangular [6] flat plates, the cube [7] and the
2
tetrahedron [6], all with side a:
v1 − v2 k k −k
Cdiff = = 11 22 12 (35)
q k11 + k22 + 2k12 Csquare = 40a 0.3667896 = 40.81085a pF (40)
The capacitances to ground with the other sphere
floating can also be calculated, by assuming zero Ctriangle = 40a 0.25096 = 27.293a pF (41)
charge in the floating sphere:
2 2
Ccube = 40a 0.6606782 = 73.51036a pF (42)
k k −k k k −k
C10 = 11 22 12 ; C20 = 11 22 12 (36)
k22 k11 Ctetrahedron = 40a 0.35688 = 39.708a pF (43)
The capacitance of both spheres to ground is simply the
sum of the four coefficients, because both are at the XI. FORCES BETWEEN RINGS
same potential and the total charge appears in the ratio
C = Q/V. This capacitance can be used to find the The force between thin coaxial filaments can be
relation between total charge and voltage in a pith-ball calculated by an integration of the Coulomb force
electroscope. For equal spheres it varies between (6) between them. For two rings with radii A and a and
when the spheres are touching and two times (2) when separation b, containing charges q1 and q2, the force is
they are far apart: given by the double integral (44). The term cos
projects the force along the axis:
C pair = k11 + k22 + 2k12 (37)
q
dq = 1 d; To calculate the forces in conductors decomposed in
2
q rings, the charges in the rings are first calculated using
dq ' = 2 d' ; q=CV and then the forces in each ring can be obtained
2
qq
22
bdd'
by (46), by adding the values obtained between a given
F12 = 1 32
16 0 0 0 ( A + a + b 2 − 2 Aa cos ( − ')
2 2
)
3 ring and all the others. Finally, the forces in all the
rings belonging to each conductor are added. The
This integral can be exactly solved in terms of the calculations for rings belonging to a single conductor
complete elliptic integral of the third kind (45), which can be omitted, because they add to zero (and this is a
is also easy to evaluate. The code below computes in good test of the algorithm).
few iterations the three complete elliptic integrals E(k),
F(k), and (k,c): The same result can be obtained by computing the
forces multiplying the total axial electric field seen by a
/ 2
ring by its charge, using (29):
(
d
(k , c) = (45)
0
2
)
1 − c sin 1 − k 2sin 2
2
F12 =
q1q2b
3
(
2 2 0 r1 1 − k 2
E (k )
)
{ 2 Aa (48)
Complete elliptic integrals of first, second, k=
and third kinds - AGM r1
Returns the global variables Ek=E(k), Fk=F(k),
and IIkc=II(k,c) r1 = ( A + a )2 + b 2
Reference: Garrett, Journal of Applied
Physics, 34, 9, 1963, p. 2571 XII. EXAMPLES
}
procedure EFII(k,c:real); Some toroids analyzed by the methods above. Vmax was
var
a,b,d,e,f,a1,b1,d1,e1,f1,S,i:real; obtained from (39) and (24), except for the “holeless”
begin toroid, where (23) and (24) were used. All the
a:=1;
b:=sqrt(1-sqr(k)); capacitances (in this and the other examples) in pF:
d:=(1-sqr(c))/b;
e:=sqr(c)/(1-sqr(c)); Dxd Cexact 20 rings 200 rings Vmax (kV)
f:=0; 0.2x0.1 9.6877342 9.6862459 9.6877328 226.2
i:=1/2; 0.3x0.1 13.527991 13.526517 13.527990 282.9485
S:=i*sqr(a-b); 0.4x0.1 17.200315 17.198812 17.200313 328.9148
repeat
a1:=(a+b)/2; 0.5x0.1 20.738038 20.736480 20.738037 367.4999
b1:=sqrt(a*b);
i:=2*i; Open hemispheres (D = diameter):
S:=S+i*sqr(a1-b1);
d1:=b1/(4*a1)*(2+d+1/d);
e1:=(d*e+f)/(1+d); D Cexact 20 rings 200 rings
f1:=(e+f)/2; 0.2 9.1049254 9.0451871 9.0989244
a:=a1; 0.3 13.657388 13.567781 13.648387
b:=b1; 0.4 18.209851 18.090374 18.197849
d:=d1; 0.5 22.762314 22.612968 22.747311
e:=e1;
f:=f1;
until (abs(a-b)<1e-15) and (abs(d-1)<1e-15); Flat disks (D = diameter):
Fk:=pi/(2*a);
Ek:=Fk-Fk*(sqr(k)+S)/2;
IIkc:=Fk*f+Fk; D Cexact 20 rings 200 rings
end; 0.2 7.0833502 7.0067052 7.0757027
0.3 10.625025 10.510058 10.613554
0.4 14.166701 14.013411 14.151405
The solution for the force is: 0.5 17.708376 17.516763 17.689257
q1q2b
F12 = (k , c )
2 2 0 r1
3 Hollow cylinders (D = diameter, h = height):
2 Aa (46) D h 20 rings 200 rings
k =c=
r1 0.2 1 27.2508153 27.5562772
0.3 1 32.7125753 33.0502066
r1 = ( A + a )2 + b 2 0.4 1 37.6883716 38.0515957
0.5 1 42.3659124 42.7508210
Hollow cones (D = diameter, h = height): Dxd 20 rings 200 rings 400 rings
0.3x0.1 13.5176679 13.5296046 13.5296149
D h 20 rings 200 rings 0.4x0.1 17.2225678 17.2348074 17.2348180
0.2 1 20.6332474 20.8219907 0.5x0.1 20.8623320 20.8748605 20.8748714
0.3 1 24.3200548 24.5554254
0.4 1 27.7305014 28.0027331 Maximum electric field between spheres with opposite
0.5 1 30.9951485 31.3004301
voltages. Half of the rings to each sphere. Dimensions
as in (33). Fields in V/m/V:
In the last two cases no explicit formulas were found in
the literature, although very probably they are known. a, b, c Exact 40 rings 400 rings
0.1, 0.1, 0.5 14.7654541 14.654655 14.762658
The general algorithm for objects with axial symmetry 0.1, 0.2, 0.5 20.7165237 20.434842 20.711307
was implemented in the Inca program and used to 0.1, 0.3, 0.5 32.2318226 31.394734 32.219293
generate the next examples:
Capacitance matrix for two spheres. Half of the rings to
A closed hemisphere can be generated by the each sphere. Dimensions as in (33):
combination of an open hemisphere and a flat disk (half
of the rings for each element, D = diameter): k11 (radius a)
a, b, c Exact 40 rings 400 rings
D Cexact 20 rings 200 rings 0.1, 0.1, 0.5 11.6112177 11.6108704 11.6112174
0.2 9.4052249 9.3751321 9.4038325 0.1, 0.2, 0.5 12.3051750 12.3047650 12.3051745
0.3 14.1078374 14.0626982 14.1057488 0.1, 0.3, 0.5 13.7605384 13.7603742 13.7605373
0.4 18.8104499 18.7502642 18.8076651 k22 (radius b)
0.5 23.5130623 23.4378303 23.5095813 a, b, c Exact (pF) 40 rings 400 rings
0.1, 0.1, 0.5 11.6112177 11.6108704 11.6112174
Two spheres in contact (D = diameter, half of the rings 0.1, 0.2, 0.5 24.3154312 24.3146700 24.3154303
0.1, 0.3, 0.5 38.6334041 38.6326963 38.6334025
for each sphere):
k12
D Cexact 20 rings 200 rings a, b, c Exact (pF) 40 rings 400 rings
0.1 7.7123025 7.7105894 7.7123007 0.1, 0.1, 0.5 -2.3264588 -2.3263316 -2.3264587
0.2 15.4246050 15.4211788 15.4246014 0.1, 0.2, 0.5 -4.9456676 -4.9454137 -4.9456673
0.3 23.1369075 23.1317682 23.1369021 0.1, 0.3, 0.5 -8.3626059 -8.3626805 -8.3626051
0.4 30.8492100 30.8423576 30.8492028
0.5 38.5615125 38.5529470 38.5615035 Force between the two halves of a charged sphere. The
exact value is simply F = 0v 2 / 2 , independent of the
Two different spheres in contact. Some cases are listed radius of the sphere. The approximate calculation is
in [11][12]. For spheres of radii a and b, when a = 2b also independent of it. Values for 1 V at the sphere.
C = 4 0 a Ln 3 , and when a = 3b C = 4 0 a3 / 4 Ln 4 .
Radius (m) Exact (pN) 40 rings 400 rings
a, b Exact 40 rings 400 rings 1 13.90813 13.56727 13.87342
0.1, 0.05 12.2237103 12.2233396 12.2237099
0.1, 0.0333... 11.5684538 11.5680790 11.5684534 Force between two equal spheres at the same potential,
0.1,0.025 11.3481786 11.3477839 11.3481782 of 1 V. The exact values were computed by the
approximations in [8] and [9]. The exact value for
The last case, a = 4b, is more complicated, spheres in contact is F = 4 0v 2 (Ln 2 − 1 / 4) / 6 [10].
( (( ) ))
C = 4 0 a 1 / 2 Ln 5 + 2 5 / 10 Ln 1 + 5 / 2 . The general
case can be computed by the formula in [11] (in a a, b, c Exact (pN) 40 rings 400 rings
different form) and [12]: 0.1, 0.1, 0.2 8.217796 8.218122 8.217796
0.1, 0.1, 0.5 ~2.996884 2.996774 2.996872
ab b a
C = 4 0 − − − 2 (49) 0.1, 0.1, 1.0 ~0.915993 0.915949 0.915993
a + b a + b a + b
where (x) is the digamma function (x) = ’(x)/(x), Force between the two halves of a horned toroid at 1 V.
derivative of the logarithm of the gamma function, and This case apparently has no known exact solution. The
is Euler’s constant, 0.577215665. force doesn’t depend on the size of the device and is
proportional to the square of the potential, as happens
A toroid with the central hole closed by a thin disk. in all cases of objects in contact. Forces in pN
Note the small difference to a regular toroid. A toroid
D (m) 40 rings 200 rings 400 rings
where the closure of the central hole doubles the
1 15.55986 16.02683 16.08724
capacitance would have an aspect ratio of about
10.0004. Half of the rings for each element, D = Force between two stacked horned toroids in contact, at
major diameter, d = diameter of the tube: 1V. The exact solution is unknown, but in this case the
numerical analysis is expected to be precise. Forces in [8] A. Russel, “The mutual attractions and repulsions
pN. of two electrified spherical conductors,” Journal of
D (m) 40 rings 200 rings 400 rings the IEE, Vol. 48, 211, pp. 257-268, 1912.
1 10.53158 10.53005 10.53003 [9] A. Russel, “The electrostatic problem of two
conducting spheres, Journal of the IEE, Vol. 65,
The force increases as the aspect ratio of the toroids 365, pp. 517-535, May 1927.
increase. It doubles for a 12.68741 toroid. [10] W. Thomsom (Lord Kelvin), “On the mutual
attraction and repulsion between two electrified
The problem with this approach is that as the number spherical conductors,” Philosophical Magazine,
of rings increases it becomes more and more difficult to Vol. 5, 32, pp. 287-297, 1853.
invert the matrix P with precision and in reasonable [11] A. Russell, "The coefficients of capacity and the
time. The examples show that the method is not very mutual attractions or repulsions of two electrified
precise for objects with edges. The precision can be spherical conductors when close together,"
enhanced by adding more rings to the regions close to Proceedings of the Royal Society of London. Series
edges. For example, in the example of force between A, Vol. 82, No. 557, pp. 524-531, July 1909,
the two halves of a sphere, if the ±10 degrees around [12] A. Russell, “The electrostatic capacity of two
the equator of the sphere are modeled with 300 rings, spheres when touching one another,” Proc. Phys.
with 100 rings for the remaining surface, the obtained Soc. London 37 pp. 282-286, 1924.
force is of 13.90274 pN, with 4 correct digits. For the [13] F.H. Read, “Capacitances and singularities of the
horned toroid, the same distribution produces 16.14268 unit triangle, square, tetrahedron and cube,”
pN, or 40 0.1450832 N, possibly with similar COMPEL, 23, 2, pp. 572-578, 2004.
precision.
CHANGES
In the last page is a table of exact toroid capacitances
calculated by (9). Note that it would be enough to have 9/2/2011: Corrected eq. 9 and small corrections in the
a single column with normalized aspect ratios, since for text.
a fixed aspect ratio the capacitance is directly 6/1/2012: Corrected eq. 33.
proportional to the major (or minor) diameter. 9/1/2012: Added section IX.
10/2/2012: Added eq. 37.
Acknowledgments: Thanks to Paul Nicholson for 15/2/2012: Added section about forces.
discussions and verifications, and to Godfrey Loudner 24/2/2012: Added formula for the capacitance of two
for several papers and the derivation of (39). different spheres in contact.
25/2/2012: Added more examples of forces, small
This document is not a published paper. corrections.
7/7/2018: Better values for the capacitances of the
REFERENCES square plate and others.