The Grid
class#
The Grid class is an object that stores all the details of the numerical grid, such as the number of grid points, grid spacings etc.
Constructing a Grid object
A Grid object is constructed using the constructor
|
An object representing the numerical grid. |
The parameter points represents the number of points in each spatial dimension. For 1D systems, this is simply an integer specifying the number of points. For dimensions equal to 2 or more, this is a tuple \((N_x, N_y)\) or \((N_x, N_y, N_z)\) representing the points in the \(x\), \(y\) and \(z\) directions, respectively.
Similarly, grid_spacings represents the numerical spacing between points for each spatial dimension.