FEATool  v1.7.1
Finite Element Analysis Toolbox
 All Files Functions Pages
gridgen.m File Reference


GRIDGEN Generate unstructured grid for geometry objects.

[ GRID ] = GRIDGEN( SIN, VARARGIN ) Function to generate a grid for geometry objects by calling the exernal DISTMESH library. SIN is a valid fea problem struct or cell array or geometry objects. Accepts the following property/value pairs.

Property    Value/{Default}           Description
hmax        scalar {0.1}              Target grid size
itmax       scalar {1000}             Maximium number of iterations
nsm         scalar {0}                Number of (post) grid smoothing steps
iplot       scalar 0-2/{1}            Flag to output mesh statistics (>0) and
                                      plot and display the grid (=2)
merge       scalar {1}                Flag to merge geometry objects
fixpnt      array  [n_p,n_sdim]       Array of points that must be in the grid
hdfcn       function handle           Grid point distribution function (DistMesh)
sortbdr     scalar/{1}                Perform boundary sorting/renumbering
waitbar     scalar/{0}                Show waitbar
fid         scalar/{1}                File identifier for output ([]=no output)
See also
distmesh2d, distmesh3d