3D electrostatics example using #FEniCS. In this example I solve the Laplace equation for two concentric spheres to obtain an electric potential and take the gradient to find the electric field. The results are then compared with an analytical solution.
The geometry is produced in FreeCAD and the mesh/ boundaries produced with Gmsh.
Please let me know if you have comments or corrections!