Meshing error for model generated from itk snap

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Shiyi Chen
Posts: 2
Joined: Thu May 23, 2024 7:17 am

Meshing error for model generated from itk snap

Post by Shiyi Chen » Mon Jun 24, 2024 8:47 am

Hi everyone,

I am trying to import the model generated from itk snap to simVascular by following this video:
https://www.youtube.com/watch?v=OHtAsqe ... imVascular

I did everything explained in the video: clip in paraview, smooth in open flipper, fill holes in the simVascular model. However, when I move on to generate mesh in simVascular, I encounter this error below:

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
MODULE MMGS: IMB-LJLL : 5.3.8 (Apr. 10, 2017)
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

-- PHASE 1 : ANALYSIS

-- MESH QUALITY 200754
BEST 1.000000 AVRG. 0.958875 WRST. 0.000000 (1359)

## Error: _MMG5_minQualCheck: too bad quality for the worst element: (elt 1359 -> 0.000000e+00)
NUMBER OF VERTICES 100379 CORNERS 340
NUMBER OF TRIANGLES 200754
NUMBER OF EDGES 942 RIDGES 942
Checking surface mesh
Regions: 1
Number of Free Edges on Surface: 0
Number of Non-Manifold Edges on Surface: 0
Array name ModelFaceID does not exist. Regions must be identified and named 'ModelFaceID' prior to this function call
Problem with name resetting on cap remeshing
OnSelectionChanged

I wonder how should I read this error and how can I fix it.

Thanks,
Shiyi

User avatar
David Parker
Posts: 1629
Joined: Tue Aug 23, 2005 2:43 pm

Re: Meshing error for model generated from itk snap

Post by David Parker » Mon Jun 24, 2024 12:56 pm

HI Shiyi,

The WRST. 0.000000 statement means that you have a triangle on your surface mesh that has zero area.

You will need to check your surface mesh to see which triangle is bad and then fix the mesh or process it differently (e.g. clip it at a different location).

Cheers,
Dave

User avatar
Shiyi Chen
Posts: 2
Joined: Thu May 23, 2024 7:17 am

Re: Meshing error for model generated from itk snap

Post by Shiyi Chen » Tue Jun 25, 2024 7:34 pm

Hi Dave,

I tried to clip the model multiple times but I still get the same error. I wonder if it possible to mesh it outside like ansys fluent. Then import the mesh into simVascular. If this is possible, is there any tutorial on this?

Best,
Shiyi

User avatar
David Parker
Posts: 1629
Joined: Tue Aug 23, 2005 2:43 pm

Re: Meshing error for model generated from itk snap

Post by David Parker » Wed Jun 26, 2024 1:16 pm

Hi Shiyi,

Email me (davep@stanford.edu) the model and let me have a look.

SV does not have import mesh functionality. You would need to create a VTK file from the ANSYS mesh, could be a bit complicated to do that.

Cheers,
Dave

POST REPLY