**refine_mesh_based_on_element_domains#

Description#

This command allows to generate a master file (.mast) suitable to build a refined mesh. Each element of the initial mesh provides the vertices and the edges of the new mesh. A Delaunay domain is generated for each element of the initial mesh. The following figure shows an initial mesh and the new mesh that was built with the generated master file:

../../_images/rmbeeg.fig.svg

Syntax#

**refine_mesh_based_on_element_domains \(~\,\) [ *edges no_edges ] \(~\,\) [ *master_file filename ]

*edges no_edges

gives the number of nodes to use for each edge of the refined mesh (default 2).

*master_file filename

is the filename for the master file of the refined mesh (default refine.mast).

Note

This command currently (version 8.3) does not conserve the original elsets, and that it is implemented only for 2D linear elements.

If the ***mesh do_not_save option is omitted, a .geof file will be generated. However, this new .geof file is identical to the one that was loaded with the **open command (if no other meshing operations have been carried out), and it does not contain the refined mesh.

Example#

An example use follows:

****mesher
 ***mesh do_not_save
  **open base.geof
  **refine_mesh_based_on_element_domains
   *edges 6
   *master_file fine.mast
****return