**perturb_inside
#
Description#
This command is used to perturb a mesh geometry with a given uniform random law and a deformation factor
(works only for 3D mesh if mesh surface must be preserved, e.g. without command move_all
).
Syntax#
The command has the following syntax:
**perturb_inside
\(~\,\) *factor
moving-factor
\(~\,\) [*dir
num_dir ]
\(~\,\) [*move_all
]
\(~\,\) [*nset
nset_name ]
*factor
gives the moving factor distance.
*dir
the component of nodal positions to perturb (1,2 and 3). By default, all the three components are modified.
*move_all
imposes the perturbation to be applied also on the mesh surface (works for meshes in any dimension).
*nset
A node set to not perturb if
move_all
is true, and vice-versa.
Example#
This example shows how to perturb the third component of the nodal positions on the top surface of a cube.
****mesher
***mesh
**mesh_quad_cube
*size 1.
*ncut 10
**nset top
*func z>0.99;
**perturb_inside
*factor 0.04
*dir 3
*nset top
****retur