**Versions:**All versions

## Problem Description

I am setting up a model where I want to include a region of infinite extent. How should such situations be modeled and meshed?

## Solution

### Overview

There are three options for modeling a domain that is meant to represent a region of infinite extent. They each have different areas of applicability:

The

**Infinite Element**domain functionality is meant for governing equations that are*diffusion-like*in nature. The*Heat Transfer in Solids*physics interface is one such case. Infinite Elements represent a region that is stretched along certain coordinate axes with the effect of approximating an infinitely large domain.The

**Perfectly Matched Layer**(PML) domain functionality is meant for stationary governing equations that are*wave-like*in nature, wherein the fields describe a radiation of energy. The*Electromagnetic Waves, Frequency Domain*interface is one such case. The PML acts as a domain that is a nearly ideal absorber or radiation.The

**Absorbing Layer**functionality is the time-domain analogue of the PML. It is also meant for governing equations that are*wave-like*in nature but are solved via a time-explicit approach. The*Electromagnetic Waves, Time Explicit*interface is one such case.

*Schematic of a situation where a region of interest (green) is within a region of infinite extent (blue).*

The most typical usage of these features is to model the case of a *region of interest* that is fully encapsulated within an *region of infinite extent*, as described in the image above. To accurately capture the behavior in the region of interest one must solve the relevant governing equations in that region, as well as the region of infinite extent. However, solving for the fields in an infinitely large region is computationally impossible, so various strategies are used to truncate the model to a reasonable size. The Infinite Elements, PML's, and Absorbing Layers are one such truncation strategy that share similar setup, usage, and (with the exception of Absorbing Layers) similar meshing requirements. This article addresses the geometry and meshing requirements of these three features.

To determine if the physics you are using supports any of the above options, first add the physics to your model, then right-click on the **Component > Definitions** branch, or go to the **Definitions** toolbar. Depending upon which physics are present in your model, one, some, or none of the above options will be present.

### Geometry Setup

Regardless of which of the three (Infinite Elements, PML's, Absorbing Layers) are being used, the geometry setup is the same. If modeling in 2D, then the geometry should be set up as one of the two cases shown below, describing a **Cartesian** or **Cylindrical** infinite domain.

*Visualization of geometry of the Cartesian (left) and Cylindrical (right) infinite domains in 2D.*

If modeling in 2D axisymmetry, the geometry should be set up as one of these two cases, describing a **Spherical** or **Cylindrical** infinite domain:

*Visualization of geometry of the Spherical (left) and Cylindrical (right) infinite domains in 2D axisymmetry.*

If modeling in 3D, the geometry should be set up as one of these three cases, representing a **Spherical**, **Cartesian**, or **Cylindrical** domain:

*Visualization of geometry of the Spherical (left) Cartesian (middle) and Cylindrical (right) infinite domains in 3D. Some of the Infinite Domains, and the interior domain of interest, are omitted for visualization.*

Note that in 2D the **Rectangle**, **Circle**, and in 3D the **Sphere**, **Block**, and **Cylinder** geometry features all include the option to introduce **Layers** which will simplify the setup of the above cases. It is typical to make the thickness of these domains about one-tenth of the overall dimensions of the modeling space. The distance from the region of interest to the infinite domain is a parameter that does need to be studied. It is important that there be separate corner domains for the Cartesian and Cylindrical cases.

### Meshing Considerations

For the case of the Infinite Element and Perfectly Matched Layers, it is important the the mesh match the coordinate stretching direction, the direction of absorption. Meshes should look similar to the plots below. Use **Mapped** meshes in 2D, and **Swept** meshes in 3D, to produce these types of meshes. For numerical reasons it is good for the elements in these domains to not be too distorted or stretched. Start with at least five elements through these domains and always perform a Mesh Refinement Study.

*Visualization of appropriate Infinite Element or Perfectly Matched Layer meshes for the 2D Cartesian (left) and Cylindrical (right) cases.*

*Visualization of appropriate Infinite Element or Perfectly Matched Layer meshes for the 2D Axisymmetric Spherical (left) and Cylindrical (right) cases.*

*Visualization of appropriate Infinite Element or Perfectly Matched Layer meshes for the 3D Spherical (left) Cartesian (middle) and Cylindrical (right) cases. Meshes on other domains are not shown.*

Note that the Absorbing Layer, used in the Time Explicit approach, should be meshed with triangular (in 2D) or tetrahedral (in 3D) elements, and not with a swept mesh.

### Further Resources

- The COMSOL Multiphysics Reference Manual chapter on Infinite Elements, Perfectly Matched Layers, and Absorbing Layers.
- Automated Meshing for Electromagnetic Waves, Frequency Domain Simulations
- Automated Meshing for Infinite Element Domains

### Browse by Category

Error Messages (62)Import (10)

Installation (38)

Physics (10)

Geometry (13)

Solver (33)

Mesh (14)

General (21)

Structural Mechanics (3)

Fluid Dynamics (1)

ALE / Parameterized Geometry (1)

Postprocessing (4)

Export (1)

Product Information (1)

Drawing (1)

Multiphysics (1)

User Models (1)

COMSOL makes every reasonable effort to verify the information you view on this page. Resources and documents are provided for your information only, and COMSOL makes no explicit or implied claims to their validity. COMSOL does not assume any legal liability for the accuracy of the data disclosed. Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark details.