CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > ANSYS Meshing & Geometry

BioMedical STL Repair, Any Suggestions?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2010, 14:35
Default BioMedical STL Repair, Any Suggestions?
  #1
Member
 
Brian Henry
Join Date: Aug 2010
Posts: 42
Rep Power: 15
EphemeralMemory is on a distinguished road
Hey, all, thanks for reading this post.

I have a problem with STL file repair. I work with biomedical applications, so repairing STL files is a mess, especially when it comes to Brain and Spinal CSF representations, where you have 50K to 200K surface elements in a complex geometry.

I use ICEM CFD, and although the autofixing tool is great, I can't really use it. Every time I use it, it considers some of the complex geometry bad elements and tries to "fix" it, leaving me with a STL file I can no longer use (because its no longer physiologically consistent). When I try to mesh it right from the go (right after registration from MRI images), I get hundreds of created elements. Should I just merge these volumes, and be done with it?

Thanks again for your advice, this forum is exactly what I needed for CFD analysis.
EphemeralMemory is offline   Reply With Quote

Old   November 24, 2010, 11:45
Default Check the geometry...
  #2
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
I usually start with the surface and check it out to see how bad it is...

Use the top menus; Edit => Facets to Mesh. We just need it as mesh to run the diagnostics. Then run the Edit Mesh Tab Diagnostic to check for single edges (holes or tabs), multiple edges, triangle boxes, etc. Put each of these into a subset as you go thru. Then investigate each subset (under the mesh branch, turn on the subset and turn off all the other mesh types).

For each subset, right click and add layers (twice). Then look at what you have on the screen. Do you have a lot of holes? Many Triangle boxes? If you don't have too many problems, you can fix them manually (not the autofixing tool). Even a hundred problems can be fixed pretty quickly (you get faster with practice), but if you have thousands, you should at least adjust your expectations or perhaps consider the effort required to get better data...

When you are done editing the mesh, you can convert it back to facets (replace the geometry and then delete the mesh).
PSYMN is offline   Reply With Quote

Old   November 24, 2010, 11:46
Default Some Meshing tips...
  #3
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
Are you meshing around the brain or inside the brain or both?

If around the brain and it is fairly water tight... You can put a material point in the space around the brain and run octree to get a single volume...

If you are meshing inside the brain, and want to keep all the surfaces (even those surfaces that have the same volume material on both sides), you will need to go to Mesh (tab)=> Params by Parts and turn on the Internal Wall option for the Brain Part. You would need a material point inside each closed volume of the brain...

If you have a lot of triangle boxes and don't fix them, each one would end up creating its own closed volume... If you create even 1 material point, all those triangle boxes will be empty (fluid deleted by the flood fill). If you want each of those volumes filled with fluid, you must not create any material points while you are meshing... You can create them after, such as 1 for the area in the brain an one for outside, then Edit Mesh => Repair => FloodFill. Then Right click on the Brain Material in the tree, Add to Part. Then use the Selection Toolbar to Select elements By Part. Select all the "CREATED_MATERIAL" Parts and apply.

Start with these two posts and let me know where you are...
PSYMN is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Using STL Data with ICEM CFD/AI-Environment Shawn Givler ANSYS Meshing & Geometry 18 March 11, 2019 13:03
[surface handling] How to make boundary patches in STL file nzy102 OpenFOAM Meshing & Mesh Conversion 4 January 22, 2018 15:03
[snappyHexMesh] External mesh crawls into car model. Holes in STL model? MadsR OpenFOAM Meshing & Mesh Conversion 8 October 26, 2013 10:21
[Netgen] Netgen mesh settings for STL geometries lucchini OpenFOAM Meshing & Mesh Conversion 3 March 7, 2011 01:02
[snappyHexMesh] SnappyHexMesh meshes inside and outside of an STL geometry villier OpenFOAM Meshing & Mesh Conversion 17 June 15, 2010 19:51


All times are GMT -4. The time now is 10:35.