**hexa_refinement#

Description#

This command refines a zone, given by node set, of a hexahedral mesh. See the 2D version in **quad_refinement.

Syntax#

**hexa_refinement \(~\,\) *nset nset_name \(~\,\) *nb_layers nb_layer \(~\,\) *conserve_nsets \(~\,\) *refinement_direction dir \(~\,\) *orthoradial_refinement

*nset

The name of the nset defining the refinement zone.

*nb_layers

Number of transition layers between refined/not refined zones. Accordingly, the mesh size in the refined zone is given by original size/3nb_layers.

*refinement_direction

Direction of refinement. By default, it is allowed to refine the mesh along all directions.

*orthoradial_refinement

Orthoradial refinement using as axis the direction provided in *refinement_direction.

*conserve_nsets

A flag to conserve pre-existing node sets.

*create_elsets

Create elsets for the refined part of the mesh.

Examples#

Example 1#

../../_images/hexa_refine_cube.svg
****mesher
 ***mesh cube_4.geof
  **mesh_quad_cube
   *ncut 4
   *size 1.
 ***mesh refine_x0x1.geof
  **open cube_4.geof
  **nset x0x1
   *use_nsets x0 x1
  **hexa_refinement
   *nset x0x1
   *nb_layers 2
****return

Another example can be found in ContactFlow_test/INP/create_mesh.inp.

Example 2#

../../_images/orthorad_refine.svg
***mesh plate_w_hole_refine.geof
 **open plate_w_hole.geof
 **extension
  *distance 1.
  *num 1
 **hexa_refinement
  *nset layer_0-ext
  *nb_layers 2
  *refinement_direction (0. 0. 1.)
  *orthoradial_refinement

See **mesh_quarter_plate_hole to create plate_w_hole.geof file.