Transfering complex multidomain geometry from 3DS Max to gmsh

Hi,

I have this geometry on Autodesk 3DS Max and need to transfer it to gmsh, define my subdomains, there are two subdomains, one for the airways and one for the rest of the lung, and then transfer all of that to FEniCS. My question is not about transferring my mesh from gmsh to FEniCS and is more about how to do all that comes before that. How can I export this geometry to gmsh, and when I do it, how can I define all my subdomains on gmsh? I also want to know how I can set different boundary domains? Should I export this as an STL file to gmsh, or should I export two different STLs for each subdomain? Are there any better file type that I can define all the different subdomains and subsurfaces, for boundary conditions, before exporting to gmsh?

Thank you all,

Amir

See the Gmsh tutorials, for instance t13

Oh yeah, I have seen that, so you are saying the best way to deal with it is using the STL file format? But I still do not how to define two different subdomains on complex geometry. Should I create two different STL files for each of the two subdomains and perform the boolean operations inside gmsh? Do you know of any other, more comprehensive gmsh tutorials? Btw, are there any gmsh discourse groups or anything?

Hi,
Indeed, STL file format could be appropriate. You can also take a look to STEP format (I am not familiar with Autodesk but I guess exporting to STEP format might be an option since it is pretty standard). If you have labels in your STEP file for your subdomains/boundary, you may be able to import it into Gmsh (see this post).
Regarding support, Gmsh has a mailing list

2 Likes