This repository implements a generalized version of the electrostaticFoam solver to model linear dielectrics. The solver is restricted so that there are no free charges in the volume.
Contributors: Cristian & David
The solver solves the equation
where:
-
$\textbf{k}$ is the dielectric constant of the medium, i.e., a scalar field -
$\phi$ is the electric potential
The primary boundary conditions of the problem are set on the
The electric field can then be obtained as
For a linear dielectric, the electric displacement
where:
-
$\epsilon_0$ is the vacuum permittivity -
$\vec{\textbf{E}}$ is the electric field -
$\vec{\textbf{P}}$ is the polarization
The polarization density is related to the bound charge density (
We can rearrange the displacement equation:
Thus obtaining the bound charge density field.
Boundary conditions must also be imposed on the electric field. The tangential electric field is zero at the surface of all conductors. The dielectric constant is zeroGradient at all boundaries.
A simple two plate capacitor is used to verify the solver. I have stumbled across an excellent Feynman lecture that covers the relevant analytical theory.
As shown in the lecture (10.6):
Furthermore (10.9):
Thus,
But, for an 'infinite' pair of parallel plates at potential difference
Logically this makes sense. If
So, we can check the result of the simulation against this analytical result by looking at the bound charge density on the plates and confirming that the result is accurate.
For the test case, two 100x100mm plates, 1mm thick are spaced 4mm apart. A 1kV potential difference is applied to the plates. The dielectric comprises the 100x100x4mm volume within the two plates and is set to have a dielectric constant of 13. The entire setup is enclosed within a 200x60x200mm void. Approximately 30 million cells are used.
- Mesh Closeup

- Electric Potential Plot

- Potential Plot with Field Lines

- Electric Field Magnitude Plot

- Bound Volume Charge Density Plot

The mean