ToElementMesh::femtemnbb
Details
Examples
Basic Examples
See Also
NDSolve`FEM`
ToElementMesh::femtemnbb
Examples
Basic Examples (3)
For an infinite region, no region bounds can be computed:
Needs["NDSolve`FEM`"]ToElementMesh[ImplicitRegion[x > y, {x, y}]]Default values for the bounding box will be used. The issue is best addressed by specifying explicit numerical bounds:
mesh = ToElementMesh[ImplicitRegion[x > y, {x, y}], {{-2, -1}, {-2, -1}}]mesh["Bounds"]This message can be generated by other functions:
NIntegrate[1, {x, y}∈ImplicitRegion[x > y, {x, y}], Method -> "FiniteElement"]The result is based on a region with the default bounds. Specifying region bounds addresses the issue:
NIntegrate[1, {x, y}∈ImplicitRegion[x > y, {{x, -2, -1}, {y, -2, -1}}], Method -> "FiniteElement"]If the region's bounds cannot be computed, system default values specified through the "DefaultBounds" option will be used:
default = SystemOptions["FiniteElementOptions"]The default values can be modified with a system option:
SetSystemOptions["FiniteElementOptions" -> {"DefaultBounds" -> {-2, -1}}]mesh = ToElementMesh[ImplicitRegion[x > y, {x, y}]]mesh["Bounds"]Restore the original default values:
SetSystemOptions[default]