Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep getting "Linear Solver not converging" and "PCG Solver not converging" #226

Closed
Jenny-Huang-629 opened this issue Apr 9, 2024 · 7 comments
Labels
mesh Related to meshes and mesh generation question Further information is requested usage Related to usage

Comments

@Jenny-Huang-629
Copy link

Hi,
I am attempting to run simulation using Palace for the first time. However, I keep getting "Linear Solver not converging" and "PCG Solver not converging". I have been trying different possible ways to solve it, for example lowering convergence tolerance or increasing Maximum number of iterations, etc. But still got the same error.
Any suggestions on this issue?

@Jenny-Huang-629
Copy link
Author

gmsh_palace_example_2wb.pdf
gmsh_palace_example_2wb.json

These are the msh file and config file we are using. (Since .msh file can not be attached here, I converted into a pdf file)

@sebastiangrimberg
Copy link
Contributor

Hi @Jenny-Huang-629, thanks for sharing your mesh. I think there is a problem with the definition of your mesh and geometry. I am seeing that you have an inconsistent overlapping mesh at the outer boundary of your substrate and the outer box of your computational domain. Here is what I see when I open your mesh in Gmsh:

image

You probably need to fix your mesh generation code to avoid this and ensure your mesh is well formed. My suspicion is that is why Palace is giving warning messages.

@sebastiangrimberg sebastiangrimberg added question Further information is requested usage Related to usage labels Apr 9, 2024
@Jenny-Huang-629
Copy link
Author

Hi, thanks for replying!
Do you know if there is a way to remove the overlap in the mesh through Gmsh?

@sebastiangrimberg
Copy link
Contributor

This needs to be done at the geometry level before generating the mesh, since it would appear that the 3D geometry model doesn't know that these two surfaces are overlapping. How are you constructing your 3D geometry? Is it through the Gmsh API?

@Jenny-Huang-629
Copy link
Author

I am constructing the geometry using qiskit metal and exporting just the wireframe of the design (with no mesh) as a .msh file using the native GmshRenderer. Then, I add the mesh in using Gmsh and export it from Gmsh.

@sebastiangrimberg
Copy link
Contributor

I have not used the Qiskit Metal Gmsh renderer myself so am not sure how to fix the issue there unfortunately. There might also be a way to resolve the issue in Gmsh after you import it, but again I'm not sure. The problem is clear, though. Somehow your outer "vacuum_box" domain is being meshed without conformity to the inner "dielectric_(layer 3)" domain. In fact it looks like the "vacuum_box" domain might be misformed altogether, as visualizing just that mesh domain looks incorrect even outside of the substrate:

Screenshot 2024-04-09 at 3 56 12 PM

@sebastiangrimberg sebastiangrimberg added the mesh Related to meshes and mesh generation label Apr 16, 2024
@sebastiangrimberg
Copy link
Contributor

Hi @Jenny-Huang-629, did you ever get a chance to revisit this an investigate your geometry and mesh? I am inclined to close the issue for now as mesh related and not related to Palace, but let me know if there is reason to keep it open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mesh Related to meshes and mesh generation question Further information is requested usage Related to usage
Projects
None yet
Development

No branches or pull requests

2 participants