FEATool Multiphysics
v1.17.1
Finite Element Analysis Toolbox
|
CIRCGRID Generate 2d quadrilateral grid for a circle.
[ GRID ] = CIRCGRID( NS, NR, R, XP, TH_OFFSET ) Generates a quadrilateral grid for a circular domain with NS+NR cells in the radial direction. NS specifies the cell resolution of the inner square (default 4), and NR the number of cells in the radial direction of the outer layer (default 3). The optional arguments R and XP = [x0;y0] specify the radius and center coordinates of the circle (default R = 1 and XP = [0;0]). Furthermore, TH_OFFSET specifies a rotation of the whole grid in radians.
grid = circgrid();
grid = circgrid( 16, 12, 0.5, [1;1], 0 );