fixed in 10.1 (windows)
I'm trying to build an ElementMesh
for a simple 1-D problem.
First, I build the boundary ElementMesh
:
Needs["NDSolve`FEM`"]
bmesh = ToBoundaryMesh[
"Coordinates" -> {{0}, {5}, {10}},
"BoundaryElements" -> {PointElement[List /@ #, #] &@Range@3}
]
bmesh["Wireframe"["MeshElementMarkerStyle" -> Blue]]
and this apparently works as expected:
Then I try to build the full ElementMesh
:
mesh = ToElementMesh[bmesh,
"RegionMarker" -> {{{2.5}, 1, 0.1}, {{7.5}, 2, 0.2}}
]
and this doesn't works:
If I don't add markers in the first step:
bmesh = ToBoundaryMesh[
"Coordinates" -> {{0}, {5}, {10}},
"BoundaryElements" -> {PointElement[List /@ Range@3]}
]
mesh = ToElementMesh[bmesh,
"RegionMarker" -> {{{2.5}, 1}, {{7.5}, 2}}
]
the full ElementMesh is built:
but the region markers are not assigned:
Show[
bmesh["Wireframe"],
mesh["Wireframe"["MeshElementMarkerStyle" -> Blue]],
mesh["Wireframe"["MeshElement" -> "BoundaryElements",
"MeshElementMarkerStyle" -> Red]]
]
I also tried using "BoundaryMarkerFunction" option but I was unsuccessfull.