2026-10-28
In this example, two concentric spherical shells with different
dielectric behaviors are considered. Moreover, on the innermost and
outermost spheres fixed potentials are applied. This constellation gives
rise to a simple analytic expression for the potential. In order to see
how to generate the concentricSpheres.yaml input file with
the preprocessor of POLARIS, check the
Preprocessor Tutorial.
| Parameter | Symbol | Value |
|---|---|---|
| Inner sphere radius | ||
| Middle sphere radius | ||
| Outer sphere radius | ||
| Inner dielectric permittivity | ||
| Outer dielectric permittivity | ||
| Inner sphere potential | ||
| Outer sphere potential |
In order to compute the surface density and potential, run the command
polaris -i concentricSpheres.mesh -s concentricSpheres.yamlin order to obtain the result file
concentricSpheres.vtkhdf.
With
polaris.post -i concentricSpheres.vtkhdf -p concentricSpheres.xyz -s concentricSpheres.yaml the potential and E-field along a radial line are calculated and
tabulated in the file concentricSpheres.csv
This problem with spherical symmetry can be reduced to two second-order ODEs in the radial direction. Their respective integration leads to solutions of the form
for the inner shell and
for the outer shell. The integration constants , , and can be obtained from the boundary conditions at and , that is the prescribed potentials and and from the transmission conditions at . The final result of these constants can be found in the provided gnuplot script.
With the following commands
gnuplot
gnuplot> load 'concentricSpheres.gp'one obtains a plot of the computed results along the radial line and the corresponding values of the analytic solution.
Below are screenshots from ParaView and the gnuplot image
![]() |
|---|
| Surface mesh |
![]() |
|---|
| Potential along radial line |