awslabs / palace

3D finite element solver for computational electromagnetics
https://awslabs.github.io/palace/dev
Apache License 2.0
224 stars 50 forks source link

MFEM abort error when trying to run simulation #230

Closed andrekuo closed 1 day ago

andrekuo commented 2 months ago

I am getting the following error when trying to run a simulation using a .msh file generated using Qiskit Metal's QGmshRenderer.

image

I modified the default QGmshRenderer provided by Qiskit Metal to create a larger vacuum box (sample_holder in Qiskit Metal) around the metal+silicon substrate object. This was done to avoid overlapping in my .msh file: default QGmshRenderer creates a vacuum box that is exactly the size of the substrate and overlaps with the substrate sidewalls, thus creating overlapping mesh elements. Then, I export the design wireframe (without any meshing) into Gmsh, create a 3D mesh using Gmsh, and export as .msh from Gmsh. However, using this mesh file gives me the error shown above when trying to run an Eigenmode simulation with this .msh file. For reference, I am running PALACE locally on Windows 10, and I have attached both the config JSON and mesh file as a text file below:

QGMSH_500um_thin_v1.json quarterwave_500um_thin.txt

Any thoughts on this would be greatly appreciated. I am positive that there is something wrong with the mesh file itself, rather than the config file, but I have exhausted all ideas for what could be wrong.

sebastiangrimberg commented 2 months ago

Hi @andrekuo, this is an error encountered during parsing of the mesh that almost certainly results from your mesh being invalid. Given the similarities, this might be related to the problems in https://github.com/awslabs/palace/issues/226, and even though you extended the outer domain boundary to get around the overlapping element issue you might still have an invalid mesh. I will take a look at your mesh file when I get a chance.

sebastiangrimberg commented 2 months ago

I also notice you are using the build of Palace from the WelSim fork (https://github.com/WelSimLLC/palace) instead of this repo. It seems like that version is quite outdated and many commits behind our main. I understand that we don't natively support Windows builds but would recommend using Windows Subsystem for Linux to build and run Palace from this repo.

sebastiangrimberg commented 1 week ago

Hi @andrekuo, did you ever get a chance to make progress here? I am inclined to close the issue as mesh related but let me know if there is something else you'd like to investigate as a potential Palace issue.