Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Importing ASCII Geometry

Please login with a confirmed email address before reporting spam

I am completely new to Comsol so I really am struggling.

Can anybody explain how I can import some flat panel polygons I have defined as a series of x, y, z position vectors in ASCII into a Comsol file geometry.

I have used Matlab to create some CAD dfx files and tried doing an import. Everything looks like it is going fine then just get a "no geometry imported" error message. (See attached screenshot)

I also have Matlab LiveLink.

Any suggestions would be greatly appreciated,



5 Replies Last Post Mar 24, 2017, 6:24 a.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 8 years ago Mar 16, 2017, 9:06 p.m. EDT
Do you have the ECAD module? For some reason I can't import .dxf files either, but as a workaround I open them in KLayout (www.klayout.de/build.html) and save it as .gds which I can import into COMSOL.
Do you have the ECAD module? For some reason I can't import .dxf files either, but as a workaround I open them in KLayout (http://www.klayout.de/build.html) and save it as .gds which I can import into COMSOL.

Please login with a confirmed email address before reporting spam

Posted: 8 years ago Mar 23, 2017, 5:36 a.m. EDT
Sadly I don't have any ECAD software, only Matlab. Thanks for your reply anyway.
Sadly I don't have any ECAD software, only Matlab. Thanks for your reply anyway.

Lorant Olasz COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 8 years ago Mar 23, 2017, 8:46 a.m. EDT
Hi David,

From the error message it seems that you have not selected the check box for importing Curves and points in the Settings window for the Import feature.

Another approach, which will not require a CAD format such as DXF, would be to export the point coordinates to a text file, and in the COMSOL Multiphysics model use the Polygon feature with the Data source set to File.

Best regards,
Lorant
Hi David, From the error message it seems that you have not selected the check box for importing Curves and points in the Settings window for the Import feature. Another approach, which will not require a CAD format such as DXF, would be to export the point coordinates to a text file, and in the COMSOL Multiphysics model use the Polygon feature with the Data source set to File. Best regards, Lorant

Please login with a confirmed email address before reporting spam

Posted: 8 years ago Mar 23, 2017, 9:31 a.m. EDT
Thanks.
Thanks.

Please login with a confirmed email address before reporting spam

Posted: 8 years ago Mar 24, 2017, 6:24 a.m. EDT
That seems to have done the trick, never would have spotted that without your help.
That seems to have done the trick, never would have spotted that without your help.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.