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 [x_(min),x_(max)]x....

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"Automaticsymbol for messages

Examples

open all close all

Basic Examples  (7)

Load the package:

In[1]:=
Click for copyable input

Create a numerical region of a disk:

In[2]:=
Click for copyable input
Out[2]=

Extract the bounding box:

In[3]:=
Click for copyable input
Out[3]=

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

In[1]:=
Click for copyable input
Out[1]=

Create a numerical region of an empty region in two dimensions:

In[1]:=
Click for copyable input
Out[1]=

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

In[1]:=
Click for copyable input
Out[1]=
Out[1]=
Out[1]=

Create a numerical region of a full region in two dimensions:

In[1]:=
Click for copyable input
Out[1]=

Extract the ElementMesh:

In[2]:=
Click for copyable input
Out[2]=

Create an ElementMesh with ToElementMesh:

In[3]:=
Click for copyable input
Out[3]=

The ElementMesh field is now populated:

In[4]:=
Click for copyable input
Out[4]=

The boundary ElementMesh is now also populated:

In[5]:=
Click for copyable input
Out[5]=

Clear the meshes and constraints:

In[6]:=
Click for copyable input
In[7]:=
Click for copyable input
Out[7]=

Create a numerical region of a full region in two dimensions:

In[1]:=
Click for copyable input
Out[1]=

Initially, boundary and element meshes are not populated:

In[2]:=
Click for copyable input
Out[2]=

Create a boundary mesh:

In[3]:=
Click for copyable input
Out[3]=

The boundary mesh is now populated:

In[4]:=
Click for copyable input
Out[4]=

Create a mesh:

In[1]:=
Click for copyable input
Out[1]=

Define a NumericalRegion based on the mesh:

In[2]:=
Click for copyable input
Out[2]=

Retrieve the predicate and the symbolic region of the NumericalRegion:

In[3]:=
Click for copyable input
Out[3]=

Retrieve the bounding box and variables:

In[4]:=
Click for copyable input
Out[4]=

The meshes are the same:

In[5]:=
Click for copyable input
Out[5]=

There is no boundary mesh associated:

In[6]:=
Click for copyable input
Out[6]=

Generalizations & Extensions  (1)