I think you can get this with https://dealii.org/current/doxygen/deal.II/structCellData.html
https://dealii.org/current/doxygen/deal.II/classCellAccessor.html#ae4769702cd7ab67a61b25778ea3021b2 cell->material_id() This should give the physical tag you have set to each cell in your gmsh grid. https://dealii.org/current/doxygen/deal.II/classGridIn.html#a6a87000a17a31132729c23656ada559b best praveen > On 15 Oct 2024, at 1:10 PM, Kirill Romanov <[email protected]> wrote: > > In Neper you can output the mesh in different formats (like .msh, .inp and > others) and now I have a mesh in .msh format. My main question is, how can I > use deal.ii to read a simplex mesh where each element belongs to a certain > grain? I want to read the mesh as in the image, and assign different > properties to elements in different grains. -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/30B8D153-77C6-4EA9-B655-0B858F30F7CA%40gmail.com.
