I am computing the electric potential distribution in a relatively complex domain with embed solids and an spatial variable permittivity. (attached the code)
Using uniform grid the solver works faultlessly (see attached) but if I want to refine (or unrefine) a portion of the computational domain, the solver does not converge doing the solver very weird things.
Has anyone experienced this problem and knows what I am doing wrong? It is a bug?