Logbook  (23-11-2026)
Static problems
3.2.3 Calculating capacitance by finite element method

Introduction

The finite element method can be used for computing capacitance of various structures such as capacitors, transmission lines, and capacitive sensors. On this page we will contemplate the theoretical background for such computations and consider a few illustrative numerical experiments. In doing so, we assume that all dielectric materials are linear, lossless, and isotropic such that the permittivity, \(\epsilon\), is a smooth real-valued function of spatial coordinates that exhibits discontinuities on interfaces between dissimilar materials.

Theoretical background

Field-based method

Single-conductor capacitors

We begin by considering the most simple three-dimensional configuration: an isolated conductor of an arbitrary shape immersed in an unbounded dielectric material of permittivity \(\epsilon\). This configuration is schematically depicted in the figure below.

If we place some charge, \(Q_f\) coulomb in total, on the conductor, the charge will instantly distribute itself over the surface of the conductor in such a way that the electric field will get canceled at all points inside the conductor. The exact pattern of the charge distribution on the surface of the conductor will depend on the shape of the conductor and the configuration of the dielectric materials in the vicinity of the conductor. The electric potential, however, will be the same at all points on the surface of the conductor as in static approximation a surface of any conductor is equipotential. We can always reference the electric potential such that it equals zero at infinity. Then the capacitance of the conductor is defined as a ratio between the total free charge \(Q_f\) and the electric potential \(\Phi\) on the surface of the conductor,

\[ C=\frac{Q_f}{\Phi}. \]

We can treat the capacitor as a black box. To measure its capacitance we do not need to know the exact geometry of the conductor or the configuration of the dielectric. We just need to measure the free charge on the conductor, the potential on its surface, and calculate the ratio between them. If we assume that the potential on the surface of the conductor equals unity, i.e., \(\Phi = 1\) volt, then the problem of computing the capacitance will be reduced to the problem of computing the total free charge on the surface of the capacitor,

\[ C=Q_f. \]

That is to say, we just need to find the total charge on the surface of the conductor that induces the potential of \(1\) volt on the surface of the conductor assuming that the potential is referenced such that \(\Phi=0\) volt at infinity.

To do so, we recall that according to Maxwell's equations the divergence of the displacement always equals the free-charge density,

\[ \vec{\nabla} \cdot \vec{D} = \rho_f. \]

Next, we draw a closed Gaussian surface of an arbitrary shape, \(\Gamma_G\), around the conductor as shown in the figure above and integrate the last equation over the volume enclosed by the Gaussian surface,

\[ \iiint \vec{\nabla} \cdot \vec{D} dV = \underbrace{\iiint \rho_f dV}_{Q_f}. \]

The volume integral on the right-hand side of the last equation equals the total free charge on the surface of the conductor, \(Q_f\). Application of the main theorem for divergence to the left-hand side of the last equation yields

\[ \iiint \vec{\nabla} \cdot \vec{D} dV = \iint_{\Gamma_G} \vec{D} \cdot d\vec{S}. \]

Then by combining the last two equations we deduce that

\begin{equation} Q_f = \iint_{\Gamma_G} \vec{D} \cdot d\vec{S}, \end{equation}

and, thus,

\begin{equation} \begin{aligned} C = \iint_{\Gamma_G} \vec{D} \cdot d\vec{S} = -\iint_{\Gamma_G} \epsilon \vec{\nabla} \Phi \cdot d\vec{S} \end{aligned} \end{equation}

if the conductor is at the potential of \(1\) volt. The electric scalar potential, in turn, can be computed by solving the div-grad partial differential equation. To do so, we remove the conductor from the problem domain and model it by applying the Dirichlet boundary condition \(\Phi = 1\) volt on the boundary that delineates it. Note, that removing the conductor removes all the free charge as well. Next, we adapt the static scalar boundary value problem problem as the following:

\begin{equation} \begin{array}{lrcll} &-\vec{\nabla} \cdot \big( \epsilon \vec{\nabla} \Phi \big) = 0 & \text{in} & \Omega & \text{(i)},\\ \text{(e)}&\Phi = 1 & \text{on} & \Gamma_{D1} & \text{(ii)}, \\ \text{(e)}&\Phi = 0 & \text{on} & \Gamma_{D0} & \text{(iii)}. \end{array} \end{equation}

The boundaries \(\Gamma_{D0}\) and \(\Gamma_{D1}\) represent infinity and the surface of the conductor, respectively. This boundary value problem can be solved with a help of StaticScalarSolver::Solver.

Finally, we summarize the algorithm for computing capacitance of a single-conductor capacitor as the following.


The algorithm for computing capacitance of a single-conductor capacitor in a three-dimensional space.

  • Solve the following boundary value problem:

    \begin{equation} \begin{array}{lrcll} &-\vec{\nabla} \cdot \big( \epsilon \vec{\nabla} \Phi \big) = 0 & \text{in} & \Omega & \text{(i)},\\ \text{(e)}&\Phi = 1 & \text{on} & \Gamma_{D1} & \text{(ii)}, \\ \text{(e)}&\Phi = 0 & \text{on} & \Gamma_{D0} & \text{(iii)}. \end{array} \end{equation}

    where \(\Gamma_{D1}\) is the surface of the conductor and \(\Gamma_{D0}\) represents infinity.
  • Compute the capacitance by evaluating the following integral numerically:

    \begin{equation} \begin{aligned} C = -\iint_{\Gamma_G} \epsilon \vec{\nabla} \Phi \cdot d\vec{S} & \text{ [Equation 0]}. \end{aligned} \end{equation}

    The Gaussian closed surface \(\Gamma_G\) can be of arbitrary shape. It must, however, enclose the conductor.

In general, the first-order ABC provides superior results when compared to the homogeneous Dirichlet boundary condition. For this reason, it can be more efficient to choose the boundary \(\Gamma_{D0}\) to be a sphere of radius \(R_{\infty}\) centered at the origin and apply the first-order ABC instead of Dirichlet, i.e.,

\begin{equation} \begin{array}{lrcll} &-\vec{\nabla} \cdot \big( \epsilon \vec{\nabla} \Phi \big) = 0 & \text{in} & \Omega & \text{(i)},\\ \text{(e)}&\Phi = 1 & \text{on} & \Gamma_{D1} & \text{(ii)}, \\ \text{(n)}&\epsilon\hat{n}\cdot\vec{\nabla}\Phi+ \dfrac{\epsilon}{R_{\infty}} \Phi = 0&\text{on}&\Gamma_{D0}&\text{(iii)}. \end{array} \end{equation}

As mentioned above, the Gaussian surface \(\Gamma_{G}\) must enclose the conductor. This surface can be intentionally embedded into the mesh. Alternatively, one can mark some faces that already exist in the mesh as faces that belong to \(\Gamma_{G}\). The easiest is to choose the boundary that represents the surface of the conductor to be the Gaussian surface, i.e., \(\Gamma_{G} = \Gamma_{D1}\). It is important to remember, however, that computing the gradient of the electric potential, \(\vec{\nabla} \Phi\), on the boundary of the mesh yields less precise results. The same, of course, holds for computing \(\vec{D}\). The figure below, for example, presents the normalized \(L_2\) error norm of the displacement \(\vec{D}\) evaluated along the \(x\) axis in the three-dimensional version of the int/ experiment. Evidently, the error is higher at the boundary \(\Gamma_{D1}\) than in the middle of the mesh.

This could be a good incentive to place the Gaussian surface at a distance from the boundary that represents the surface of the conductor. If we do so, it can happen, at least in theory, that a section of \(\Gamma_{G}\) will coincide with an interface between dissimilar materials. In this case, we cannot invoke Equation 0 as the gradient of the electric potential is discontinuous on interfaces. In such cases it makes more sense to project the computed potential to the \(H(\text{div})\) function space, i.e.,

\[ \vec{D} = - \epsilon \vec{\nabla} \Phi, \]

and then compute the capacitance as

\[ C = \iint_{\Gamma_G} \vec{D} \cdot d\vec{S}. \]

Multiple-conductors capacitors

Next, let us consider the multiple-conductors capacitor depicted in the insert D) in the figure below. The capacitor consists of three arbitrary-shaped conductors surrounded by dielectric material of permittivity \(\epsilon\). The outer circle represents infinity. The three cubes represent conductors of arbitrary shapes. Inserts A)-C) illustrate the three orthonormal states of the capacitor. Insert D) illustrates the normal operation of the capacitor, i.e., a linear superposition of the three orthonormal states, see section 3.5 in [2].

In general, a multiple-conductor capacitor is described by a capacitance matrix. The capacitance matrix relates electric potentials to total charges on the surfaces of the conductors. In the case of the capacitor depicted in the figure above the capacitance matrix can be defined as the following:

\begin{equation} \begin{aligned} \begin{bmatrix} Q_{f1} \\ Q_{f2} \\ Q_{f3} \end{bmatrix} = \begin{bmatrix} C_{11} & C_{12} & C_{13}\\ C_{21} & C_{22} & C_{23}\\ C_{31} & C_{32} & C_{33} \end{bmatrix} \begin{bmatrix} \Phi^{*}_{1} \\ \Phi^{*}_{2} \\ \Phi^{*}_{3} \end{bmatrix}, \end{aligned} \label{eq_Cmatrix} \end{equation}

where \(Q_{fi}\) and \(\Phi^{*}_{i}\) are the total free charge and the electric potential on the surface \(\Gamma_{Di}\) of the \(i\)-th conductor. That is,

\[ \Phi^{*}_{i}(\vec{r}) = \Phi(\vec{r})\bigg|_{\Gamma_{Di}}. \]

Let us express the components of the capacitance matrix.

To do so, we assume that the conductors \(i=2\) and \(i=3\) are at zero potential, and the conductor \(i=1\) is at a potential of 1 volt as shown in the insert A) in the figure above. Then the last equation can be rewritten as

\begin{equation} \begin{aligned} \begin{bmatrix} Q_{f1} \\ Q_{f2} \\ Q_{f3} \end{bmatrix} = \begin{bmatrix} C_{11} & C_{12} & C_{13}\\ C_{21} & C_{22} & C_{23}\\ C_{31} & C_{32} & C_{33} \end{bmatrix} \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix} = \begin{bmatrix} C_{11} \\ C_{21} \\ C_{31} \end{bmatrix}. \end{aligned} \end{equation}

Therefore,

\begin{equation} \begin{aligned} C_{11}=Q_{f1},\\ C_{21}=Q_{f2},\\ C_{31}=Q_{f3}, \end{aligned} \end{equation}

if \( \Phi^{*}_{2} = \Phi^{*}_{3} = 0\) and \(\Phi^{*}_{1} = 1\). The components of the second and the third columns of the capacitance matrix can be expressed by setting the boundary conditions as depicted in inserts B) and C), respectively. The conditions illustrated in the inserts A), B), and C) can be considered to be three orthonormal states of the capacitor as the corresponding potential vectors,

\begin{equation} \begin{aligned} \boldsymbol{\phi}_{i} = \begin{bmatrix} \Phi^{*}_{1} \\ \Phi^{*}_{2} \\ \Phi^{*}_{3} \end{bmatrix}, \end{aligned} \end{equation}

form the standard orthonormal basis,

\begin{equation} \begin{aligned} \boldsymbol{\phi_1} = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}, \text{ } \text{ } \boldsymbol{\phi_2} = \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix}, \text{ } \text{ } \boldsymbol{\phi_3} = \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}. \end{aligned} \end{equation}

Any state of the capacitor is a linear superposition of these three states.

That is, we can compute the components of the \(i\)-th column of the capacitance matrix by computing the total charges on the conductors in the \(i\)-th orthonormal state. A total charge on a surface of a conductor can be computed as discussed in the section on single-conductor capacitors above. It is easy to generalize the discussion on the three-conductor capacitor to the capacitors with \(N\) conductors - just assume the \(N \times N\) capacitance matrix.

Finally, we summarize the algorithm for computing components of a capacitance matrix of a multiple-conductors capacitor as the following.


The algorithm for computing a capacitance matrix of N arbitrary-shaped conductors in a three-dimensional space.

  • Solve the following boundary value problem assuming \( j=1 \):

    \[ \begin{array}{rcll} -\vec{\nabla} \cdot \big( \epsilon \vec{\nabla} \Phi \big) = 0 & \text{in} & \Omega & \text{(i)},\\ \Phi = 0 & \text{on} & \Gamma_{D0} & \text{(ii),}\\ \Phi = 1 & \text{on} & \Gamma_{Dj} & \text{(iii),} \\ \Phi = 0 & \text{on} & \Gamma_{Dn} & \text{(iv),} \\ \text{...}, & & & \\ \Phi = 0 & \text{on} & \Gamma_{Dm} & \text{(N+2),} \\ \end{array} \]

    where \(\Gamma_{Dj}\) is the surface of a \(j\)-th conductor; \(\Gamma_{Dn}\), ..., \(\Gamma_{Dm}\) are the surfaces of all the other conductors except of \(j\)-th conductor; \(\Gamma_{D0}\) represents infinity.
  • Calculate components of the \(j\)-th column of the capacitance matrix as

    \begin{equation} \begin{aligned} C_{ij} = - \iint_{\Gamma_{Gi}} \epsilon \vec{\nabla} \Phi \cdot d\vec{S} & \text{ [Equation 1]}, \end{aligned} \end{equation}

    where \(\Gamma_{Gi}\) is a Gaussian surface that encloses the \(i\)-th conductor, \(i = 1..N\).
  • Repeat the two steps above for all values of \(j\) in the range \([2...N]\). Note that the capacitance matrix is symmetric, see, for instance [3] and [4]. Consequently, there is no need to compute all components of the capacitance matrix as \(C_{ij} = C_{ji}\).

Keep in mind that the first-order ABC provides superior results when compared to the homogeneous Dirichlet boundary condition. It can be useful to replace the Dirichlet boundary condition on \(\Gamma_{D0}\) with ABC.


It follows from the discussion above that a regular two-lead capacitor must be characterized by a \(2 \times 2\) capacitance matrix. Yet, two-lead capacitors are normally characterized by a single scalar capacitance, not by a \(2 \times 2\) capacitance matrix. The capacitor on the figure below, for example, is characterized by a capacitance of \(0.33 \mu F \). No \(2 \times 2\) capacitance matrix is inscribed on it.

A good question is: have \(2 \times 2\) capacitance matrices anything to do with two-lead capacitors? We will attempt to answer this question by computing the capacitance matrix of the parallel-plate capacitor depicted in the figure below. To simplify the calculations we assume that: (i) the electric field exists only between the plates (that is, the capacitance due to fringing electric fields is ignored), (ii) the electric field is perpendicular to the plates, (iii) the magnitude of the electric field between the plates is uniform, (iv) the dielectric material fills all the space between the plates, (v) the dielectric is homogeneous, so the permittivity is a real-valued constant.

The first orthonormal state of the capacitor is depicted in the insert A) in the figure above. In this state the first conductor is at a potential of \(1\) volt and the second conductor is at the potential of \(0\) volt (is grounded). We draw a Gaussian box around the first conductor and rewrite Equation 0, see above, as

\[ Q_{f1} = \epsilon A E = \epsilon A \frac{\Phi^{*}_{1}}{d} = \epsilon \frac{A}{d}, \]

where \(A\) is the area of one plate and \(d\) is the distance between the plates. Consequently, the first component of the capacitance matrix can be expressed as

\[ C_{11} = Q_{f1} = \epsilon \frac{A}{d}. \]

Similarly, by drawing a Gaussian box around the second conductor we deduce that

\[ Q_{f2} = -\epsilon A E = -\epsilon A \frac{\Phi^{*}_{1}}{d}=- \epsilon \frac{A}{d}. \]

Therefore,

\[ C_{21} = Q_{f2} = -\epsilon \frac{A}{d}. \]

The second orthonormal state of the capacitor is depicted in the insert B) in the figure above. By applying the same procedure to the second orthonormal state we deduce the components of the second column of the capacitance matrix,

\[ \begin{aligned} C_{12} = Q_{f1} = -\epsilon \frac{A}{d} \\ C_{22} = Q_{f2} = \epsilon \frac{A}{d}. \end{aligned} \]

Consequently, the parallel-plate capacitor can be described by the following system of linear equations

\[ \begin{aligned} \begin{bmatrix} Q_{f1} \\ Q_{f2} \end{bmatrix} = C \begin{bmatrix} 1 & -1 \\ -1 & 1 \end{bmatrix} \begin{bmatrix} \Phi^{*}_{1} \\ \Phi^{*}_{2} \end{bmatrix}, \end{aligned} \]

where coefficient

\[ C = \epsilon \frac{A}{d} \]

is known as the capacitance of a parallel-plate capacitor.

Similarly, a capacitance matrix of any two-lead capacitor can be expressed as

\[ \boldsymbol{M} = C \begin{bmatrix} 1 & -1 \\ -1 & 1 \end{bmatrix} = C \boldsymbol{M_0}, \]

where \(C\) is the capacitance of the two-lead capacitor. We can answer the question posted above as the following. A two-lead capacitor is indeed described by a \(2 \times 2\) capacitance matrix. However, there is no need to specify all components of the capacitance matrix as the matrix \(\boldsymbol{M_0}\) is the same for all two-lead capacitors, see [5], for example. Specification of the scalar multiplayer \(C\) in the last equation is good enough. This scalar multiplier is what normally inscribed on a two-lead capacitor.

Energy-based method

Single-conductor capacitors

The algorithm for computing capacitance of a single-conductor capacitor described above involves evaluation of the surface integral given by Equation 0. This integral over a Gaussian surface can be replaced with a volume integral over the entire problem domain, i.e., Equation 2 below. We can justify the replacement as the following.

The work required for charging a single-conductor capacitor to a potential \(\Phi = 1\) volt reads

\[ W = \frac{1}{2} C \Phi^2 = \frac{1}{2} C, \]

see page 150 in [2].

On the other hand, the energy stored in the electric field can be evaluated as

\[ W = \frac{1}{2}\iint_{\Omega} \vec{D} \cdot \vec{E} dV, \]

where \(\Omega\) is all the space in the universe, see page 198 in [1]. As soon as all work done for charging capacitor is stored in the field, we can equate the last to equations and deduce that

\[ C = \iiint_{\Omega} \vec{D} \cdot \vec{E} dV = \iiint_{\Omega} \epsilon \vec{\nabla} \Phi \cdot \vec{\nabla} \Phi dV = \iiint_{\Omega} \epsilon |\vec{\nabla} \Phi|^2 dV. \]

Therefore,

\begin{equation} \begin{aligned} C = \iiint_{\Omega} \epsilon |\vec{\nabla} \Phi|^2 dV & \text{ } &\text{ [Equation 2]}. \end{aligned} \end{equation}

The surface integral given by Equation 0 can be replaced by the volume integral given by Equation 2.

The same result can be deduced by means of vector calculus. The first scalar Green's identity reads

\[ \iiint_{\Omega}\bigg[\Psi\vec{\nabla}\cdot\big(\epsilon\vec{\nabla}\Phi\big) +\big(\epsilon\vec{\nabla}\Psi\big)\cdot\vec{\nabla}\Phi\bigg]dV = \iint_{\Gamma}\big(\Psi \epsilon\vec{\nabla}\Phi\big)\cdot d\vec{S}, \]

see Section 1.1.6. Green's identities in the book. The following substitution into the last equation:

\[ \Psi \rightarrow \Phi \]

results in

\[ \iiint_{\Omega}\bigg[\Phi\underbrace{\vec{\nabla}\cdot\big(\epsilon\vec{\nabla}\Phi\big)}_{=0} +\big(\epsilon\vec{\nabla}\Phi\big)\cdot\vec{\nabla}\Phi\bigg]dV = \iint_{\Gamma}\big(\underbrace{\Phi}_{=0 \text{ } \text{or} \text{ } 1}\epsilon\vec{\nabla}\Phi\big)\cdot d\vec{S}. \]

The partial differential equation (i) in the boundary value problem above, i.e., \(-\vec{\nabla} \cdot \big( \epsilon \vec{\nabla} \Phi \big) = 0\), implies that the first term of the integrand on the left-hand side of the last equation equals zero. Next, the potential \(\Phi\) on right-hand side of the last equation equals zero on all boundaries except for one boundary where it equals \(\Phi=1\) volt. Therefore, we can rewrite the last equation as

\[ \iint_{\Gamma}\big(\epsilon\vec{\nabla}\Phi\big)\cdot d\vec{S}_1 = \iiint_{\Omega}\epsilon |\vec{\nabla}\Phi|^2 dV, \]

where \(d\vec{S}_1\) is a surface element of the boundary to which the Dirichlet boundary condition \(\Phi=1\) volt is applied. Next, let us assume that the Gaussian surface \(\Gamma_G\) in Equation 0 coincides with the surface of the conductor enclosed by it. Recall that by convention the area element, \(d \vec{S}\), always points outside the volume enclosed by the surface it belongs to. Then the area element \(d\vec{S}\) in Equation 0 points inside the problem domain. The surface element \(d\vec{S}_1\) in the last equation points outside the problem domain. As soon as \(\Gamma\) in the last equation and \(\Gamma_G\) in Equation 0 represent the same surface, we can conclude that \(d\vec{S} = -d\vec{S}_1\). Consequently, we can rewrite the last equation as

\[ -\iint_{\Gamma_G}\big(\epsilon\vec{\nabla}\Phi\big)\cdot d\vec{S} = \iiint_{\Omega}\epsilon |\vec{\nabla}\Phi|^2 dV. \]

The left-hand side in the last equation is the same as the right-hand side in Equation 1. Therefore,

\[ C = \iiint_{\Omega}\epsilon |\vec{\nabla}\Phi|^2 dV. \]

The last equation is identical to Equation 2.

Multiple-conductors capacitors

Similarly, the surface integral given by Equation 1 in the algorithm for computing the capacitance of a multiple-conductors capacitor can be replaced by a volume integral. Let us derive this volume integral.

To do so, we introduce a new notation. Let us denote the electric potential in the \(i\)-th orthonormal state of the capacitor as

\[ \Phi_i = \Phi_i(\vec{r}). \]

That is to say, \(\Phi_i\), is the solution to the div-grad equation assuming 1 volt potential on the surface of the \(i\)-th conductor and a potential of 0 volt on all other surfaces. With such notation we can rewrite Equation 1 as

\[ C_{ij} = - \iint_{\Gamma_{Gi}} \epsilon \vec{\nabla} \Phi_j \cdot d\vec{S}. \]

The potential \(\Phi_i\) on the surface \(\Gamma_{Gi}\) equals 1 volt per definition. Then we can rewrite the last equation as

\begin{equation} \begin{aligned} C_{ij} = - \iint_{\Gamma_{Gi}} \big( \underbrace{\Phi_i}_{ = 1} \epsilon \vec{\nabla} \Phi_j \big)\cdot d\vec{S} & \text{ } & \text{ [Equation 3]}. \end{aligned} \end{equation}

Next, let us make the following substitution into the Green's identity given above,

\begin{equation} \begin{aligned} \Psi \rightarrow \Phi_i & \text{ , } & \Phi \rightarrow \Phi_j \end{aligned} \end{equation}

The result reads

\[ \iiint_{\Omega}\bigg[\Phi_i \underbrace{\vec{\nabla}\cdot\big(\epsilon\vec{\nabla}\Phi_j\big)}_{=0} +\big(\epsilon\vec{\nabla}\Phi_i\big)\cdot\vec{\nabla}\Phi_j\bigg]dV = \iint_{\Gamma}\big(\Phi_i \epsilon\vec{\nabla}\Phi_j\big)\cdot d\vec{S}, \]

The first term on the left is forced to zero by the div-grad equation, \( - \vec{\nabla}\cdot\big(\epsilon\vec{\nabla}\Phi_j\big) = 0 \). The integral on the right equals zero everywhere except for the surface \(\Gamma_{Gi}\). Furthermore, the area element \(d\vec{S}\) on the right-hand side points outside the problem domain. On the contrary, the area element of the closed Gaussian surface \(\Gamma_{Gi} \) points outside the volume bounded by \(\Gamma_{Gi} \), i.e., inside the problem domain. For this reason, we have to add the minus sign when switching from \(\Gamma\) to \(\Gamma_{Gi}\),

\[ \iint_{\Gamma}\big(\Phi_i \epsilon\vec{\nabla}\Phi_j\big)\cdot d\vec{S} = - \iint_{\Gamma_{Gi}}\big(\Phi_i \epsilon\vec{\nabla}\Phi_j\big)\cdot d\vec{S}. \]

The last is identical to Equation 3. Therefore, we can rewrite the Green's identity above as

\begin{equation} \begin{aligned} C_{ij} = \iiint_{\Omega} \big(\epsilon\vec{\nabla}\Phi_i\big)\cdot\vec{\nabla}\Phi_j dV & \text{ } & \text{ [Equation 4]}. \end{aligned} \end{equation}

This volume integral can replace the surface integral given by Equation 1 in the algorithm for computing components of a capacitance matrix. This integral can be simplified for the diagonal components of the capacitance matrix as

\[ C_{ii} = \iiint_{\Omega} \epsilon |\vec{\nabla} \Phi_i|^2 dV. \]

Evidently, computing the off-diagonal components, \( i \ne j \), by invoking Equation 4 requires two field functions, \(\Phi_i\) and \( \Phi_j\), to be stored in the computer memory at the same time. On the contrary, Equation 1 requires computer memory for only one field function.

Computing capacitance in two dimensions

The two algorithms discussed above, one for single-conductor capacitors and one for multiple-conductors capacitors, can be adapted for the use in two spatial dimensions. The boundary value problems in the two algorithms are specified in geometrical terms and, thus, are valid in two-dimensional spaces as well. That is to say, the boundary value problems need no modification. The integrals that convert the numerically computed electric scalar potential into capacitance, i.e., Equation 0, Equation 1, Equation 2, and Equation 4 need to be modified. Let us do this next.

Translation symmetry

Firstly, let us consider an infinitely long cable-like structure that exhibits translation symmetry and no rotation symmetry. The rod with a square profile depicted in the insert A) in the figure below is an example of such structure. The rod is embedded into a dielectric material of permittivity \(\epsilon\). In this configuration we can reduce the initial three-dimensional problem to two dimensions by exploiting the translation symmetry. The two-dimensional planar domain of the reduced problem is depicted in the insert B).

The capacitance of such infinitely long rod is infinite as the amount of energy needed to induce electric field is infinite. For this reason, it does not make much sense to speak about capacitance in this configuration. It makes more sense to speak about capacitance per unit length. To express it, we assume that the axis of the rod coincides with the \(z\) coordinate axis of the Cartesian coordinate system, draw a Gaussian cylinder of a length \(L\) concentric with the rod, and integrate Equation 0 with respect to the \(z\) coordinate,

\[ \begin{aligned} C = -\int_0^L dz \int_{\Gamma_G} \epsilon \hat{n} \cdot \vec{\nabla} \Phi dl = - L \int_{\Gamma_G} \epsilon \hat{n} \cdot \vec{\nabla} \Phi dl, \end{aligned} \]

where \( dl \) is the arc length element of the cross section of the Gaussian cylinder and \(\hat{n}\) is a unit vector normal to the cross section. Therefore, the capacitance per unit length can be expressed as

\begin{equation} \begin{aligned} \frac{C}{L} = - \int_{\Gamma_G} \epsilon \hat{n} \cdot \vec{\nabla} \Phi dl & \text{ } &\text{ [Equation 5]}. \end{aligned} \end{equation}

Similarly, by integrating over the \(z\)-coordinate we express the two-dimensional version of Equation 2 as

\begin{equation} \begin{aligned} \frac{C}{L} = \iint_{\Omega} \epsilon | \vec{\nabla} \Phi |^2 dS & \text{ } & \text{ [Equation 6]}. \end{aligned} \end{equation}

We can envision a two-dimensional multiple-conductor capacitor with translation symmetry as a some kind of cable-like structure with a number of conductors embedded into dielectric. Then Equation 1 and Equation 4 can be reduced to two spatial dimensions by integrating over the \(z\) coordinate. The results read

\begin{equation} \begin{aligned} \frac{C_{ij}}{L} = - \int_{\Gamma_{Gi}} \epsilon \hat{n} \cdot \vec{\nabla} \Phi dl & \text{ } & \text{ [Equation 7]}, \end{aligned} \end{equation}

and

\begin{equation} \begin{aligned} \frac{C_{ij}}{L} = \iint_{\Omega} \big(\epsilon\vec{\nabla}\Phi_i\big)\cdot\vec{\nabla}\Phi_j dS & \text{ } & \text{ [Equation 8]}. \end{aligned} \end{equation}

Rotation symmetry

Secondly, let us consider a structure that exhibits rotation symmetry and no translation symmetry. The ball depicted in the insert A) in the figure below is an example of such structure. The ball is embedded into a dielectric material of permittivity \(\epsilon\). In this configuration we can reduce the initial three-dimensional problem to two dimensions by exploiting the rotation symmetry. The two-dimensional axisymmetric domain of the reduced problem is depicted in the insert B).

The capacitance in this configuration is finite. We can express it by integrating Equations 1 and 2 with respect to the azimuth, \(\phi\), of the cylindrical coordinate stem in the interval \((0, 2 \pi)\), i.e.,

\begin{equation} \begin{aligned} C = - 2 \pi \int_{\Gamma_G} \epsilon \hat{n} \cdot \vec{\nabla} \Phi dl & \text{ } &\text{ [Equation 5]} \end{aligned} \end{equation}

and

\begin{equation} \begin{aligned} C = 2 \pi \iint_{\Omega} \epsilon | \vec{\nabla} \Phi |^2 dS & \text{ } &\text{ [Equation 6]}. \end{aligned} \end{equation}

In the last two equations \(dl\) and \(\hat{n}\) are the arc length and the normal unit vector on the \(rz\) half-plane as shown in the insert B) in the figure above.

Rotation and translation symmetry

Finally, let us consider an infinitely long cable-like structure that exhibits both translation and rotation symmetry. In this configuration all boundaries and interfaces between dissimilar dielectric materials are concentric cylinders. The rod with a round profile depicted in the insert A) in the figure below is an example of such structure. The rod is embedded into a dielectric material of permittivity \(\epsilon\). In this configuration we can reduce the initial three-dimensional problem to two dimensions by exploiting the translation symmetry. In this case, this rod can be treated in the exact same way as the rod with the square profile described above. However, it can be beneficial to exploit the rotation symmetry as this will allow exact approximation of the boundaries and interfaces by the mesh. In this case, the initial three-dimensional problem domain can be reduced to the two-dimensional axisymmetric domain shown in the insert B).

The capacitance in this configuration is infinite, so we need to express the capacitance per unit length. This time around we can evaluate both integrals in Equation 1, i.e.,

\[ C = -\int_0^L dz \int_0^{2\pi} d\phi(\epsilon \hat{r}\cdot \vec{\nabla} \Phi)\bigg|_{r=R_G} = - L 2\pi (\epsilon \hat{r}\cdot \vec{\nabla}\Phi)\bigg|_{r=R_G}. \]

Therefore,

\begin{equation} \begin{aligned} \frac{C}{L} = - 2\pi (\epsilon \hat{r}\cdot \vec{\nabla}\Phi)\bigg|_{r=R_G} & \text{ } &\text{ [Equation 7]}. \end{aligned} \end{equation}

Similarly, we can integrate Equation 2 over the \(z\) and \(\phi\) coordinates and deduce that

\begin{equation} \begin{aligned} \frac{C}{L} = 2\pi \int_0^{\infty} \epsilon |\vec{\nabla} \Phi|^2 dr & \text{ } &\text{ [Equation 8]}. \end{aligned} \end{equation}

Funct. space Finite elements
$H(\text{grad})$ FE_Q
$H(\text{curl})$ FE_Nedelec
$H(\text{div})$ FE_RaviartThomas
$L^2$ FE_DGQ

Numerical experiments


References

[1] Griffiths, D. J. Introduction to electrodynamics, 4 ed. Cambridge University Press, 2017.

[2] Purcell E. M., Morin D. J. Electricity and Magnetism, 3 ed. Cambridge University Press, 2013.

[3] Rodolfo A. Diaz, William J. Herrera The positivity and other properties of the matrix of capacitance: Physical and mathematical implications, Journal of Electrostatics, Vol. 69, pp. 587-595, 2009.

[4] Ivica Smolic, Bruno Klajn Capacitance matrix revisited, Progress in Electromagnetics Research B, Vol. 92, pp. 1-18, 2020.

[5] William J. Herrera, Rodolfo A. Diaz, The geometrical nature and some properties of the capacitance coefficients based on the Laplace’s equation, American Journal of Physics, Vol. 76, pp. 55-59, 2007.