Difference between revisions of "Grid polar.m"
m (Add missing Version/authors metadata and remove raw author emails) |
m (Normalise preformatted blank lines in function documentation blocks) |
||
| Line 12: | Line 12: | ||
ncircles - number of radial circles | ncircles - number of radial circles | ||
in the grid, an integer | in the grid, an integer | ||
| − | + | ||
rmax - maximum radius that the | rmax - maximum radius that the | ||
grid must reach | grid must reach | ||
| Line 20: | Line 20: | ||
phi - a column vector of polar | phi - a column vector of polar | ||
phi angles, radians | phi angles, radians | ||
| − | + | ||
rmax - a coluim vector of radii | rmax - a coluim vector of radii | ||
| − | + | ||
L - sparse Laplacian operator | L - sparse Laplacian operator | ||
acting on functions defined | acting on functions defined | ||
Revision as of 17:41, 5 June 2026
Generates a balanced polar grid in which the density of
points does not increase towards the centre.
Syntax
[phi,r,L]=grid_polar(ncircles,rmax)
Arguments
ncircles - number of radial circles
in the grid, an integer
rmax - maximum radius that the
grid must reach
Outputs
phi - a column vector of polar
phi angles, radians
rmax - a coluim vector of radii
L - sparse Laplacian operator
acting on functions defined
as vector of values in the
same order as the grid
See also
grid_igloo.m, grid_fibon.m, grid_plot.m, Integration grids
Version 2.11, authors: Chadwick Brett, Ilya Kuprov