thliebig / openEMS-Project

openEMS is a free and open electromagnetic field solver using the FDTD method.
356 stars 65 forks source link

Cannot import STL files #97

Closed nico-arnold closed 11 months ago

nico-arnold commented 11 months ago

Hello everybody,

I'm starting to use OpenEMS for the HF simulation of flexible circuit boards. Because those are bent, I definitely need to import geometries as STL data. Sadly, this feature doesn't seem to work as I get the following error:

image

The files are definitely there and get shown correctly in CSXCAD. Still, after starting OpenEMS, the error pops up and those messages are also output in Octave (I will change over to Python in the future using CSPrimPolyhedronReader):

CSPrimPolyhedronReader::ReadFile: file invalid or empty, skipping ... CSPrimPolyhedronReader::ReadFromXML: Failed to read file. CSPrimPolyhedronReader::ReadFile: file invalid or empty, skipping ... CSPrimPolyhedronReader::ReadFromXML: Failed to read file. CSPrimPolyhedronReader::ReadFile: file invalid or empty, skipping ... CSPrimPolyhedronReader::ReadFromXML: Failed to read file. Warning: Invalid primitive found in property: RO4350B! Warning: Invalid primitive found in property: CPW! Warning: Invalid primitive found in property: GND!

I would be very pleased if you could help me out. Thanks a lot in advance! (:

best wishes, Nico

PS: Project data can be found here

nico-arnold commented 11 months ago

All okay, my mistake. I forgot to copy the STL files to the "tmp_CPW" directory before writing the file and starting the simulation. (: This can be closed now. Thanks a lot for creating that awesome piece of software!