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.
https://comphysblog.wordpress.com/2018/08/26/3d-electrostatics-using-fenics/
Please let me know if you have comments or corrections!