The tutorial of Finite Element Generation gives a example on the useage of RegionMark
sh = 0.2;
sh2 = 0.02;
sw = 0.3;
bmesh = ToBoundaryMesh[
"Coordinates" -> {{0., 0.}, {1., 0.}, {1., sh}, {1., 1.}, {0.,
1.}, {0., sh + sh2}, {sw, sh + sh2}, {sw, sh}, {0., sh}},
"BoundaryElements" -> {LineElement[{{1, 2}, {2, 3}, {3, 4}, {4,
5}, {5, 6}, {6, 7}, {7, 8}, {8, 9}, {9, 1}, {3,
8}}]}];
bmesh["Wireframe"]
mesh = ToElementMesh[bmesh,
"RegionMarker" -> {{{0.1, sh/2}, 1, 0.001}, {{0.1, sh*2},
2}}];
mesh[
"Wireframe"[
"MeshElementStyle" -> {Directive[FaceForm[Green]],
Directive[FaceForm[Red]]}]]
The boundary element of mesh can be obtained by using mesh["BoundaryElements"]. I want to know can I obtain the boundary element of the region with the prescribed RegionMark. For example, for the figure shown above, I want to only obtain the boundary element of the bottom green region.



εgreen . Eygreen = εred . Eyred– Navid Rajil Feb 02 '18 at 21:24