How to Export Elements with tags
Hello, I want to export the boundary elements and volume of concentric sphere. Both the sphere inner and outer have different materials. I try to find from tutorials but I could not find any example like this. Please help me to export these elements so that I can easily parse elements.
// Gmsh project created on Fri Nov 29 14:29:54 2019
SetFactory("OpenCASCADE");
//+
Sphere(1) = {0.0, 0.0, 0.0, 0.5, -Pi/2, Pi/2, 2*Pi};
//+
Sphere(2) = {0, 0.0, 0, 0.1, -Pi/2, Pi/2, 2*Pi};
//+
BooleanFragments{ Volume{1,2}; Delete; }{}
//+
Physical Surface("outerboundary", 5) = {1};
//+
Physical Surface("innerboundary", 10) = {2};
//+
Physical Volume("domain", 15) = {1};
//+
Physical Volume("target", 20) = {2};
//+
Show "*";
When I export the mesh boundary elements and volume are mixed up in the file. I do not know how to export separately with different tags. I do not know what I am missing due to which elements are mixed up. As I defined the physical surface for the bouondaries and physical volumes for the target and domain.
Edited by Christophe Geuzaine