Hello,
Given a square mesh in two dimensions, I can successfully generate it assign a tag (say, 1) to its left edge (A). Now I want to tag also the whole boundary (left, right, top and bottom edges) (B) with a different tag (say 2).
Is it possible to do this and export the mesh to XDMF file? I have read that XDMF format does not allow for the same entity to appear in two separate tagged objects, A and B in this case.
Of course, I can provide a minimal working example if needed.
Quite sure you’ll need to create and export two different meshtag objects. A meshtag object is little more than one array of facet id’s and one array of associated tags (and some logic and functionaliy wrapped around).
EDIT: Of course Jorgen beat me to it and supplied a nice MWE