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.

STL Geometry & Meshing

Please login with a confirmed email address before reporting spam

I have been working on importing a geometry from an STL file; it's a thing 3-D object, where the length and width are on the order of 10^5 m and the thickness is 10^3 m. I originally had problems where the finalized geometry contained strange overlaps that came from some interpolation within COMSOL. I have finally figured out how to import without these problems.* Now I have another concern.

The intent of this is to build a Java file that I can run within a Fortran model with a variety of geometries, so I ideally want something that is very general and not gui-based. The import geometries will always have a top surface, a bottom surface, and some side faces that are perpendicular to the y-axis.

If you look at the model, you can see that the imported geometry still contains all of the faces defined within the stl file. I cannot get rids of this segmentation, which is the problem now for meshing and for setting boundary conditions.

Is there a way to combine all of these segments together? They are all treated as one domain within the geometry. I have tried converting to solid and a variety of other processes dealing with the geometry. But it seems that when I go to mesh, the mesh is over each small unit and really takes quite a bit of time to get going.

Second question, is there a way to write in the face number when I create the geometry. Since I want something that can be generalized, but I will always know the number of faces/facets, numbering them would allow me to easily group them into the surface necessary for the boundary conditions that I want to apply.

Unfortunately, my file is too large. I'll try to figure this out so that i can attach it. Probably clearing the mesh will solve that problem.

*Just for your information, I have attempted a variety of other methods to bring in this geometry, including an interpolation function (from a file) with a block & parametric surfaces for the geometry. I never got this to work successfully to make something 3D, though it worked for either the top or bottom just fine (see the mention of the interpolation in the first paragraph). I've also gone through many, many permutations of stl files, and this seems to be the best.

2 Replies Last Post Feb 4, 2013, 10:00 a.m. EST
COMSOL Moderator

Hello Rachel Headley

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Feb 4, 2013, 5:53 a.m. EST
Dear Rachel, I also deal with a similar problem. I have a geometry which is composed of a domain generated in comsol (revolve function) and an imported stl file. Comsol fails to the difference of these two objects by complaining about the topology! Somehow the way that comsol deal with stl files are quite primitive.

As regarding to your problem: I think you can generate a final geometry and your problem is the boundary numbers...
Then, I suggest you to use selections. Maybe you can define a selection box, or some boolean operations on selections to group your boundary faces.
Dear Rachel, I also deal with a similar problem. I have a geometry which is composed of a domain generated in comsol (revolve function) and an imported stl file. Comsol fails to the difference of these two objects by complaining about the topology! Somehow the way that comsol deal with stl files are quite primitive. As regarding to your problem: I think you can generate a final geometry and your problem is the boundary numbers... Then, I suggest you to use selections. Maybe you can define a selection box, or some boolean operations on selections to group your boundary faces.

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 Feb 4, 2013, 10:00 a.m. EST
Hi

Are you sure STL is really a 3D file format in the sense true 3D topologies, correctly defined ?
For me STL is a quick workaround for 3D printing, by series of steps, no ?

Use another format

--
Good luck
Ivar
Hi Are you sure STL is really a 3D file format in the sense true 3D topologies, correctly defined ? For me STL is a quick workaround for 3D printing, by series of steps, no ? Use another format -- Good luck Ivar

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.