Gmsh - Element separation based on physical groups
Hi,
I would like to ask for some help with my 3D meshing task. I have attached a picture below to explain my meshing problem. I would like to create it with the script language of Gmsh (In a '.geo' file).
My question:
- I would like to separate the elements (based on finite element numbers) in this cube. I created a hollow spherical shell in the cube (its elements are colored yellow) and the other part of the cube is green. I created these two separate volumes and I put them in different physical groups. My goal was to separate the elements which are based on the physical groups and create a ".m" file that contains these two groups with element numbers but this information wasn't added to the file. Is there any method of how can I separate elements based on volumes in the ".m" file, or any other methods to do it? (I would like to use the created file in MATLAB)
I hope I could explain my problem clearly.
Thank you so much for your help.