HomerReid / scuff-em

A comprehensive and full-featured computational physics suite for boundary-element analysis of electromagnetic scattering, fluctuation-induced phenomena (Casimir forces and radiative heat transfer), nanophotonics, RF device engineering, electrostatics, and more. Includes a core library with C++ and python APIs as well as many command-line applications.
http://www.homerreid.com/scuff-em
GNU General Public License v2.0
128 stars 51 forks source link

GMSH formating error: invalid node specification (aborting) #216

Closed twhughes closed 4 years ago

twhughes commented 4 years ago

I am having issues running any of the demos using the most recent version of gmsh (4.5.1 at the time of writing).

When running scuff-analyze, I get the following error

invalid node specification (aborting)

twhughes commented 4 years ago

This error is because scuff-em is not compatible with the .msh files generated by the current version of gmsh.

To fix this issue, one needs to add the following flag to commands involving gmsh listed in the documentation:

-format gmsh2

For example, in the diffraction pattern demo, one would need to replace the line

gmsh -2 -clscale 1 HoleyScreenUnitCell.geo

with

gmsh -2 -format msh2 -clscale 1 HoleyScreenUnitCell.geo

which will generate .msh files that are in the format of version 2.2 of gmsh.

Hopefully this will help anyone else struggling with this error.