Meshing a model with two separate parts
- Mohammadali Alidoost
- Posts: 5
- Joined: Thu Nov 08, 2018 3:13 pm
Meshing a model with two separate parts
Dear Simvascular Developers,
I have been using a geometry including 2 separate cylinders. When I import them one by one, there is no problem and I can mesh them; therefore, I have two mesh files. However, when I import just one model containing both cylinders (to have just one mesh file), I cannot create a mesh!
I was wondering if you could tell me whether it is possible in Simvascular to mesh a model including 2 separate parts.
Best,
Mohammad
I have been using a geometry including 2 separate cylinders. When I import them one by one, there is no problem and I can mesh them; therefore, I have two mesh files. However, when I import just one model containing both cylinders (to have just one mesh file), I cannot create a mesh!
I was wondering if you could tell me whether it is possible in Simvascular to mesh a model including 2 separate parts.
Best,
Mohammad
- David Parker
- Posts: 1705
- Joined: Tue Aug 23, 2005 2:43 pm
Re: Meshing a model with two separate parts
Hi Mohammad,
I believe the mesh generator assumes a model with a single connected closed surface. Do you get an error message when you try to mesh the model containing two cylinders?
Cheers,
Dave
I believe the mesh generator assumes a model with a single connected closed surface. Do you get an error message when you try to mesh the model containing two cylinders?
Cheers,
Dave
- Mohammadali Alidoost
- Posts: 5
- Joined: Thu Nov 08, 2018 3:13 pm
Re: Meshing a model with two separate parts
Dear Dave,
Thanks for your response.
Actually, when I imported the cylinders one by one using "Global Max Edge Size" of 0.1, I could mesh them separately (the quality is not important for me in this step).
For the model containing two cylinders, I have tried many "Global Max Edge Sizes" including 0.1, 0.01 and I got this error: "Failed in generating Mesh"!
Moreover, when I use a finer "Global Max Edge Size", say 0.001, my laptop runs out of memory. Therefore, I do not know whether it is the problem of the software package or I can mesh the geometry with a more powerful computer.
Best,
Mohammad
Thanks for your response.
Actually, when I imported the cylinders one by one using "Global Max Edge Size" of 0.1, I could mesh them separately (the quality is not important for me in this step).
For the model containing two cylinders, I have tried many "Global Max Edge Sizes" including 0.1, 0.01 and I got this error: "Failed in generating Mesh"!
Moreover, when I use a finer "Global Max Edge Size", say 0.001, my laptop runs out of memory. Therefore, I do not know whether it is the problem of the software package or I can mesh the geometry with a more powerful computer.
Best,
Mohammad
- David Parker
- Posts: 1705
- Joined: Tue Aug 23, 2005 2:43 pm
Re: Meshing a model with two separate parts
Hi Mohammad,
I created a model of two cylinders using polydata. When I try to mesh it I get an error from the mesher stating that it can't mesh a model with two regions (i.e. disjoint geometry).
How are you creating the cylinders? Are you importing them?
Cheers,
Dave
I created a model of two cylinders using polydata. When I try to mesh it I get an error from the mesher stating that it can't mesh a model with two regions (i.e. disjoint geometry).
How are you creating the cylinders? Are you importing them?
Cheers,
Dave
- Mohammadali Alidoost
- Posts: 5
- Joined: Thu Nov 08, 2018 3:13 pm
Re: Meshing a model with two separate parts
Hi Dave,
Thanks again!
First, I drew the geometry in CATIA. Then, I am importing the STL file format.
Best,
Mohammad
Thanks again!
First, I drew the geometry in CATIA. Then, I am importing the STL file format.
Best,
Mohammad
- David Parker
- Posts: 1705
- Joined: Tue Aug 23, 2005 2:43 pm
Re: Meshing a model with two separate parts
Hi Mohammad,
Could you post the STL files here so I can have a look?
Thanks,
Dave
Could you post the STL files here so I can have a look?
Thanks,
Dave
- Mohammadali Alidoost
- Posts: 5
- Joined: Thu Nov 08, 2018 3:13 pm
Re: Meshing a model with two separate parts
Hi Dave,
I have attached the geometry below.
Best,
Mohammad
I have attached the geometry below.
Best,
Mohammad
- David Parker
- Posts: 1705
- Joined: Tue Aug 23, 2005 2:43 pm
Re: Meshing a model with two separate parts
Hi Mohammad,
Thanks for the STL file, just want to understand if there is a problem with SimVascular or if there is a limitation in the TetGen meshing software we integrate into SimVascular.
When trying to mesh the two cylinders I get an error just like you did, and see 'There are too many regions here!' in the SimVascular output, this is coming from the SimVascular code. I disabled this check and was able to mesh the two cylinders but the mesh was really poor, very long tetrahedra. When I meshed a single cylinder from the STL I get the same poor mesh so I think there is a problem meshing STL files. I will find out if that is a known limitation with our mesher.
Cheers,
Dave
Thanks for the STL file, just want to understand if there is a problem with SimVascular or if there is a limitation in the TetGen meshing software we integrate into SimVascular.
When trying to mesh the two cylinders I get an error just like you did, and see 'There are too many regions here!' in the SimVascular output, this is coming from the SimVascular code. I disabled this check and was able to mesh the two cylinders but the mesh was really poor, very long tetrahedra. When I meshed a single cylinder from the STL I get the same poor mesh so I think there is a problem meshing STL files. I will find out if that is a known limitation with our mesher.
Cheers,
Dave
- David Parker
- Posts: 1705
- Joined: Tue Aug 23, 2005 2:43 pm
Re: Meshing a model with two separate parts
Hi Mohammad,
I did some further tests with the meshing and there is no problem meshing STL files in general, it was that the STL file you provided had a very high resolution so the the mesher created very fine small tetrahedra for it.
I am going to add a check box to the SimVascular Meshing Tool GUI to allow models with multiple regions. A new SimVascular installer will be available around mid-week next week with this functionality.
Cheers,
Dave
I did some further tests with the meshing and there is no problem meshing STL files in general, it was that the STL file you provided had a very high resolution so the the mesher created very fine small tetrahedra for it.
I am going to add a check box to the SimVascular Meshing Tool GUI to allow models with multiple regions. A new SimVascular installer will be available around mid-week next week with this functionality.
Cheers,
Dave
- Mohammadali Alidoost
- Posts: 5
- Joined: Thu Nov 08, 2018 3:13 pm
Re: Meshing a model with two separate parts
Hi Dave,
Thanks a lot for taking the time to solve this issue!
Best,
Mohammad
Thanks a lot for taking the time to solve this issue!
Best,
Mohammad