Gmsh_001_Example3: Physical Groups

 

In many cases when we create a geometry, it is often useful to name certain parts of the geometry using terminology that we are familiar with. This can already be done in ParaGeo work flow when we use Geometry_set. In Gmsh, this is done by using Physical groups.

Gmsh_001_Example3_Physical_groups

 

Using the cube geometry as an example, we aim to define physical groups as follow:

Gmsh_001_Example3_Physical_groups_descriptions

 

We start by selecting Geometry -> Physical Groups -> Add -> Surface.

Gmsh_001_Example3_Physical_groups_1

 

 

We first enter the name in the dialog box, choose the corresponding surface, and press e to end selection.

Gmsh_001_Example3_Physical_groups_2

 

 

The name in the dialog box will turn into red, indicating that this name is already registered and shall not be used. Repeat the same procedure to name all other surfaces (e.g. East, South, North, Bottom, and North). Finally, press “q” to abort.

 

We now check if the names are registered successfully by selecting Tools->Visibility.

Gmsh_001_Example3_Physical_groups_3

 

Now, if we want to show only East and South surfaces, we simply select them and hit “Apply” button.

 

Gmsh_001_Example3_Physical_groups_4