Mesh commands
entype, enid, dir, $c_1$, $c_2$
$x_c$, $y_c$, $z_c$
Parameter definition
coid Command ID
entype Entity type
options: G, P
enid Entity ID
dir Direction of redistribution
options: X, Y, Z, XY, YZ, ZX, XYZ
$c_1$ Parameter for polynomial redistribution
$c_2$ Parameter for exponential redistribution
$x_c$ x-coordinate with highest node density
$y_c$ y-coordinate with highest node density
$z_c$ z-coordinate with highest node density

Redistributes the elements within the entity domain using either a polynomial or an exponential function. Polynomial redistribution is selected by setting $c_1$ to a positive value and $c_2$ to zero. Exponential redistribution is achieved by setting $c_2$ to a positive value while letting $c_1$ be zero.

Polynomial and exponential mesh redistribution

Redistributed mesh in X-direction with parameter $c_1$ and $c_2$ individually set within the range of 1 to 3.

%c1 = 0, "Polynomial redistribution"
%c2 = 3, "Exponential redistribution"
# --- MESH ---
1, 1, 10, 1, 1
0, 0, 0, 1.0, 0.1, 0.1
1, 1
1, 1
# --- REDISTRIBUTE MESH, C1 or C2 ---
P, 1, X, [%c1], [%c2]
0.0, 0.0, 0.0