Local parameters for boundaries

The mmgs and mmg3d applications allow to associate local Hausdorff, minimal edge size and maximal edge size to boundary references using a parameter file.

Note that a boundary reference refers to an integer value (a color) associated to a boundary element.

By default, mmg3d read the DEFAULT.mmg3d or the <meshname>.mmg3d parameter file and mmgs the DEFAULT.mmgs or the <meshname>.mmgs one (where <meshname> is the name of the input triangulation without extension).

We use the same file format for both applications (see the example below).

Example of parameter file:

parameters
3
38 Triangles 1.8     2.2   0.01
36 Triangles 0.098   0.12  0.1
37 Triangles 4.8     5.2   1

After the keyword “parameters”, give the number of boundary references over which you want to impose local parameters (3 in our example).

Then, for each reference, give : the reference , the type of elements on which you want to apply the parameters (for now, we just handle with the “Triangles” elements), the value of the minimal edge size, the value of the maximal one and the value of the Hausdorff parameter.

In our example, we impose:

  • a minimal edge size of 1.8, a maximal one of 2.2 and a Hausdorff parameter of 0.01 over all the boundary triangles of reference 38;
  • a minimal edge size of 0.098, a maximal one of 0.12 and a Hausdorff parameter of 0.1 over all the boundary triangles of reference 36;
  • a minimal edge size of 4.8, a maximal one of 5.2 and a Hausdorff parameter of 1 over all the boundary triangles of reference 37;

Note that the local parameters overwrite the global ones.

Comments are closed