#### REFINE

###### Mesh commands
*REFINE
entype, enid, level, gid, thick, $d_{min}$, $\alpha_{max}$, deactivate
##### Parameter definition
VariableDescription
entype Entity type
options: P, PS
enid Entity identification number
level Level of refinement
gid ID of a GEOMETRY that defines a sub-space for refinement
default: all elements in the selected part/part set will be refined
thick Optional special refinement level in through thickness direction. The option only works for structures that are modeled with one element in thickness direction.
default: same as level
$d_{min}$ Minimum element dimension for refinement
default: all elements are refined
$\alpha_{max}$ External element face smoothing angle
default: no surface smoothing
deactivate Deactivated refine directions
options: 0, X, Y, Z, XY, YZ, ZX, XYZ
##### Description

This command is used to refine the grid in a selected region of a part or part set. Tetrahedra elements can currently only handle refinement level = 2. For pentahedra elements the in-plane refine level must be an even number.

The surface of the refined region is smoothed if the angle between two adjacent element faces is smaller than or equal to $\alpha_{\mathrm{max}}$.

##### Example
###### Mesh refinement

Local mesh refinement of a thin walled structure using the thick option.

*COMPONENT_BOX
1, 1, 20, 10, 1
-0.25, 0, -0.005, 0.25, 0.25, 0
*COMPONENT_BOX
2, 2, 1, 10, 10
-0.0025, 0, 0, 0.0025, 0.25, 0.25
*CHANGE_P-ORDER
P, 1, 3
*MAT_RIGID
1, 7800
*PART
1, 1
2, 1
#
# --- REFINE ---
#
*REFINE
PS, 12, 2, 10, 1
*GEOMETRY_SPHERE
10
0.0, 0.0, 0.0, 0.1
*SET_PART
12
1, 2
*END