Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

convert imported *.stl into solid

Please login with a confirmed email address before reporting spam

I am importing a rather complex geometry into COMSOL from Solid Works. After some tinkering with the import controls, I managed to import the object but I do not think COMSOL recognizes it as a solid. When using the physics, I can only click on edges, not faces.

What do I need to do to 'knit to solid' or make the object into a solid as recognized by COMSOL. Any direction would help a lot.

Should I maybe open it in a different software and convert it into a solid there?


8 Replies Last Post 8 sept. 2017, 13:24 UTC−4
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 22 oct. 2012, 02:55 UTC−4
Hi

I mostly use Parasolid, or STEP, as STL is not a true 3D CAD coding, but a layered 2D coding

--
Good luck
Ivar
Hi I mostly use Parasolid, or STEP, as STL is not a true 3D CAD coding, but a layered 2D coding -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 28 janv. 2013, 22:37 UTC−5
Dear Alexander
What have you used finnaly? I have a 3d surface triangular mesh in a .stl file, but I don't know how to make a solid from it, in order to use it as a geometry for my model.
Dear Alexander What have you used finnaly? I have a 3d surface triangular mesh in a .stl file, but I don't know how to make a solid from it, in order to use it as a geometry for my model.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 4 févr. 2013, 05:57 UTC−5
I have the same problem as well. I can import the triangular surface mesh in geometry sequence. I can convert this to a solid (mostly when i am lucky) but always fail to combine this object with other geometry objects. Simple the difference or union or other operations fail! Do you have any suggestions?
I have the same problem as well. I can import the triangular surface mesh in geometry sequence. I can convert this to a solid (mostly when i am lucky) but always fail to combine this object with other geometry objects. Simple the difference or union or other operations fail! Do you have any suggestions?

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 20 mars 2013, 12:09 UTC−4
Hi!
I managed to find a solution. It is not trivial nor free. We can import the .stl file with +CAD (Simpleware), convert it to a mask and then save/export it as a +ScanIP (simpleware) file. Once in +ScanIP we open the file with the mask and we create a NURBS surface from the mask. We can export the mesh in different formats that Comsol accepts. I tried with .igs extension and it worked.

Some references here:
www.comsol.com/press/news/article/117/
www.comsol.com/products/interfaces/simpleware/

Good luck
Hi! I managed to find a solution. It is not trivial nor free. We can import the .stl file with +CAD (Simpleware), convert it to a mask and then save/export it as a +ScanIP (simpleware) file. Once in +ScanIP we open the file with the mask and we create a NURBS surface from the mask. We can export the mesh in different formats that Comsol accepts. I tried with .igs extension and it worked. Some references here: www.comsol.com/press/news/article/117/ www.comsol.com/products/interfaces/simpleware/ Good luck

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 30 juin 2015, 12:36 UTC−4
I use the free software Gmsh to convert .stl surfaces into solid meshes.
First create a volume by Modules->Geometry->Elementary entities->Add->Volume
Then mesh solid by Mesh->3D
Export as .bdf and import in COMSOL under mesh option.
I use the free software Gmsh to convert .stl surfaces into solid meshes. First create a volume by Modules->Geometry->Elementary entities->Add->Volume Then mesh solid by Mesh->3D Export as .bdf and import in COMSOL under mesh option.

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 24 oct. 2015, 07:10 UTC−4
Dear Marta,
I've checked your procedure and it worked fine.
Thanks for sharing it here.
Dear Marta, I've checked your procedure and it worked fine. Thanks for sharing it here.

Walter Frei COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 26 oct. 2015, 08:45 UTC−4
It is also worth adding to this discussion a brief comment about the upcoming 5.2 release: There will be some significant robustness improvements in STL and mesh import. Not only will these formats import more robustly, you will also be able to perform some further geometric operations on the imported part.
It is also worth adding to this discussion a brief comment about the upcoming 5.2 release: There will be some significant robustness improvements in STL and mesh import. Not only will these formats import more robustly, you will also be able to perform some further geometric operations on the imported part.

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 8 sept. 2017, 13:24 UTC−4
I did this step and imported my *.bdf file into Comsol. but still the error is there and cannot creat solid from it
I did this step and imported my *.bdf file into Comsol. but still the error is there and cannot creat solid from it

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.