Hello Thomas Ales
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:
9 years ago
Mar 4, 2016, 6:06 a.m. EST
Hello Thomas,
The first thing you should make sure is that the stl is well-defined: no intersections, no holes, all triangles nicely attached to each other... Most programs that generate stl surfaces have functions to check these. I have no experience with Autodesk so cannot help you specifically with that.
The next important thing to realize is that Comsol applies a 'boundary partitioning' algorithm when importing STL's. This algorithm fits smooth, curved surfaces through the STL triangles, reducing the number of boundaries in the geometry. This algorithm is (as far as I know) rather blackbox and not very reliable for complicated STL's. My solution for this is to omit this step. How this is done depends on the Comsol version you use. If you use 5.2, importing an STL happens in a Mesh Part node. In the Import node, select 'Detect faces' for the option 'Boundary partitioning'. Then, set 'Maximum boundary naighbor angle' to 0 and disable 'Detect planar faces'. If your version is older than 5.2, these settings are in the import node of Geometry.
This is the safest way to import stl's. The (big) drawback here is that the Comsol mesher is then bounded to preserve the triangle edges, which could results in a mesh that is finer than necessary and possibly in worse element qualities. Therefore, I suggesd to make the STL as coarse as you are comfortable with before importing it in Comsol.
Hope this helps! If you have other insights on this topic in the meantime, please share because I have struggled in the past with importing stl's and have not yet found a perfectly satisfying solution.
Kind regards,
Daniel
Hello Thomas,
The first thing you should make sure is that the stl is well-defined: no intersections, no holes, all triangles nicely attached to each other... Most programs that generate stl surfaces have functions to check these. I have no experience with Autodesk so cannot help you specifically with that.
The next important thing to realize is that Comsol applies a 'boundary partitioning' algorithm when importing STL's. This algorithm fits smooth, curved surfaces through the STL triangles, reducing the number of boundaries in the geometry. This algorithm is (as far as I know) rather blackbox and not very reliable for complicated STL's. My solution for this is to omit this step. How this is done depends on the Comsol version you use. If you use 5.2, importing an STL happens in a Mesh Part node. In the Import node, select 'Detect faces' for the option 'Boundary partitioning'. Then, set 'Maximum boundary naighbor angle' to 0 and disable 'Detect planar faces'. If your version is older than 5.2, these settings are in the import node of Geometry.
This is the safest way to import stl's. The (big) drawback here is that the Comsol mesher is then bounded to preserve the triangle edges, which could results in a mesh that is finer than necessary and possibly in worse element qualities. Therefore, I suggesd to make the STL as coarse as you are comfortable with before importing it in Comsol.
Hope this helps! If you have other insights on this topic in the meantime, please share because I have struggled in the past with importing stl's and have not yet found a perfectly satisfying solution.
Kind regards,
Daniel