I have been trying to mesh a cylindrical geometry with a notch. To generate the geometry i use the following command.
<< NDSolve`FEM`
reg1 = Disk[{0, 0}, 0.25];
Region[reg1];
reg2 = RegionProduct[reg1, Line[{{0}, {2}}]];
Region[reg2];
reg3 = Cuboid[{-0.25, -0.1, 0.9}, {-0.15, 0.1, 1.1}];
Region[reg3];
reg4 = RegionDifference[reg2, reg3];
RegionPlot3D[reg4, PlotPoints -> 100]
I am trying to mesh this geometry using linear Tetrahederal elements using the script
ToElementMesh[reg4, MaxCellMeasure -> {"Volume" -> 0.001},"MeshOrder" -> 1]
I get the following error
ToElementMesh::femtemnbb: The bounds for BooleanRegion[#1&&!#2&,
{Cylinder[{{0,0,0},{0,0,2}},0.25],Cuboid[{-0.25,-0.1,0.9},{-0.15,0.1,1.1}]}]
are {{-\[Infinity],\[Infinity]},{-\[Infinity],\[Infinity]},{-\[Infinity],\
[Infinity]}}. Unless finite numeric bounds are specified, the mesh generation
will constrain the region to have finite bounds.
I will grateful if i could get any help on this issue or if there is a another way to do it? Thanks