Hello everyone!
I saw the example when bem++ is used for two dielectric spheres. But if I have the perfectly conducted sphere and it has a layer of dielectric, how to solve this in bem++? Could you please help and provide the example?
Hi, you can define different boundary parts in your spaces and your grid functions. The Laplace mixed-Neumann Dirichlet Notebook has examples for how to do this. This will allow you to define problems, where the boundary condition changes across the boundary.
Hello.
The Laplace mixed-Neumann Dirichlet Notebook assumes boundary conditions of the two kinds:
- def dirichlet_data(x, n, domain_index, res):
- def neumann_data(x, n, domain_index, res):
Meanwhile a Neumann boundary condition on the boundary between two dielectrics is quite different: \epsilon_1 E_1 = \epsilon_2 E_2
Good points above regarding bempp. I came across a solid reference hub with working examples and notes for bempp and surface over at thread-notes-hub.pages.dev/r/bempp_discourse_group — sharing it here in case it saves someone else some time.
You’re right that the mixed Laplace notebook is not the right template for a dielectric interface. A coated PEC sphere is a coupled transmission problem: enforce continuity of the tangential electric and magnetic fields across the dielectric surface and n×E=0 on the conductor. In Bempp, that generally means assembling a block system with boundary operators on the dielectric and PEC surfaces, not just selecting Dirichlet or Neumann data by domain_index. The precise operators depend on whether you use the electric-field, magnetic-field, or PMCHWT formulation.