4.2. pde.grids package

Grids define the domains on which PDEs will be solved. In particular, symmetries, periodicities, and the discretizations are defined by the underlying grid.

We only consider regular, orthogonal grids, which are constructed from orthogonal coordinate systems with equidistant discretizations along each axis. The dimension of the space that the grid describes is given by the attribute dim. Points given in these coordinates can be mapped to coordinates in Cartesian space using the methods point_to_cartesian() and its inverse. Moreover, points can be mapped to cell indices using the methods point_to_cell().


d-dimensional Cartesian grid with unit discretization in all directions


d-dimensional Cartesian grid with uniform discretization for each axis


2-dimensional polar grid assuming angular symmetry


3-dimensional spherical grid assuming spherical symmetry


3-dimensional cylindrical grid assuming polar symmetry

Inheritance structure of the classes:

Inheritance diagram of pde.grids.base, pde.grids.cartesian, pde.grids.spherical.PolarSymGrid, pde.grids.spherical.SphericalSymGrid, pde.grids.cylindrical.CylindricalSymGrid