Assigning different physical groups to different color in gmsh and mark them as different material in fenics

See:

Which writes the data to a function, Which you can write to xdmf