FEMDocumentation`
FEMDocumentation`

# ToNumericalRegion

ToNumericalRegion[r]

generates a NumericalRegion object from a region r.

ToNumericalRegion[r,{{xmin,xmax},}]

generates a NumericalRegion object from a region r restricted to the bounding box .

ToNumericalRegion[emesh]

generates a NumericalRegion object from an ElementMesh object.

# Details

• ToNumericalRegion[r] generates a NumericalRegion object that keeps the original representation of the region r together with ElementMesh approximations that may be computed later.
• The specification for region r is similar to the one given for ToElementMesh.
• The region r should be a constant region for which ConstantRegionQ gives True.
• ToNumericalRegion has the following options:
•  "MessageHead" Automatic symbol for messages

# Examples

open all close all

## Basic Examples(7)

 In:= Create a numerical region of a disk:

 In:= Out= Extract the bounding box:

 In:= Out= Create a numerical region of a full region in two dimensions with a bounding box:

 In:= Out= Create a numerical region of an empty region in two dimensions:

 In:= Out= Create a numerical region of a disk and extract the predicates and the predicate variables:

 In:= Out= Out= Out= Create a numerical region of a full region in two dimensions:

 In:= Out= Extract the ElementMesh:

 In:= Out= Create an ElementMesh with ToElementMesh:

 In:= Out= The ElementMesh field is now populated:

 In:= Out= The boundary ElementMesh is now also populated:

 In:= Out= Clear the meshes and constraints:

 In:= In:= Out= Create a numerical region of a full region in two dimensions:

 In:= Out= Initially, boundary and element meshes are not populated:

 In:= Out= Create a boundary mesh:

 In:= Out= The boundary mesh is now populated:

 In:= Out= Create a mesh:

 In:= Out= Define a NumericalRegion based on the mesh:

 In:= Out= Retrieve the predicate and the symbolic region of the NumericalRegion:

 In:= Out= Retrieve the bounding box and variables:

 In:= Out= The meshes are the same:

 In:= Out= There is no boundary mesh associated:

 In:= Out= 