Publisher review:MESHND - creation and nested dissection of regular 2D and 3D meshes MESHND is an M-file toolbox for creating 2D and 3D meshes and ordering them with nested dissection. It can also create a sparse matrix from a regular mesh using an abitrary stencil.Examples:A = meshsparse (meshnd (7,5,2))creates a 7-by-5-by-2 mesh, and then computes the sparse matrix A that represents the mesh (using a 7-point stencil). You can specify other stencils (5, 7, 9, and 27-point) or create your own to pass to meshsparse.This example creates the same mesh but also finds the nested dissected ordering of that mesh:[G p] = meshnd (7,5,2) ;A = meshsparse (G) ;subplot (1,2,1) ; spy (A) ;subplot (1,2,2) ; spy (A (p,p)) ;Here is a simple view of small mesh.[G p pinv Gnew] = meshnd (4,5) returnsGnew =1 2 17 9 107 8 18 15 163 5 19 11 134 6 20 12 14G =1 2 3 4 56 7 8 9 1011 12 13 14 1516 17 18 19 20Note that the left 2 columns in Gnew are ordered first (numbers in the range 1 to 8), followed by the right 2 columns (numbered 9 to 16) followed by the node seperator in column 3 of the mesh (numbered 17 to 20). This process repeats recursively, where the cut is taken along the largest dimension of the mesh.See also the nested.m function in the MATLAB Demo directory, by Cleve Moler, and the numgrid.m function.The meshnd example optionally uses cspy from the CSparse package. The meshnd_quality test optionally uses the METIS interface in CHOLMOD. These examples work fine without the optional packages. They are available in SuiteSparse on MATLAB Central. Requirements: ยท MATLAB Release: R2007a
MESHND is a Matlab script for Mathematics scripts design by Tim Davis.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
MESHND - creation and nested dissection of regular 2D and 3D meshes
Operating system:Windows / Linux / Mac OS / BSD / Solaris