zwicker-group / py-pde

Python package for solving partial differential equations using finite differences.

Home Page:https://py-pde.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Separate geometry from grid definition

david-zwicker opened this issue · comments

It would be great to separate the definition of the coordinates (and the accompanying coordinate transforms and other details) from the definition of the grid. In particular, the coordinate classes would not need to deal with symmetries, which would be implemented in the grid instead. Different grids using the same coordinate system (like a spherical or polar grid) could use the same coordinate classes then, reducing definitions. It would also clear up how points are specified (with all coordinate values in the coordinate class, but only the with the non-symmetric coordinates in the grid classes). For convenience, the coordinates should probably be available from the grid classes using a convenient, short attribute, like grid.c.

Closed by #527