How to Save and Visualize Different Domains Separately in ParaView

I am working on a simulation in FEniCS that involves different domains, and I’m having trouble visualizing these domains separately in ParaView. I tried to save the results with XDMF, but even with this, the “Extract Subset” option is not active in ParaView. It seems that the tags should be saved as well, but I am not sure how to do this.

How can I correctly save and visualize the results for each domain separately in ParaView?

Any guidance or suggestions would be greatly appreciated. Thank you!

You can export the tags to xdmf, in a separate file. Then, read the solution and the tags, and merge them in paraview (there are a couple of filters called “Append datasets” or “Merge datasets”, or a similar name)