pybamm.
SubMesh1D
(edges, coord_sys, tabs=None)[source]¶1D submesh class. Contains the position of the nodes, the number of mesh points, and (optionally) information about the tab locations.
Parameters: |
|
---|
pybamm.
Uniform1DSubMesh
(lims, npts)[source]¶A class to generate a uniform submesh on a 1D domain
Parameters: |
|
---|
pybamm.
Exponential1DSubMesh
(lims, npts, side='symmetric', stretch=None)[source]¶A class to generate a submesh on a 1D domain in which the points are clustered close to one or both of boundaries using an exponential formula on the interval [a,b].
If side is “left”, the gridpoints are given by
for k = 1, …, N, where N is the number of nodes.
Is side is “right”, the gridpoints are given by
for k = 1, …, N.
If side is “symmetric”, the first half of the interval is meshed using the gridpoints
for k = 1, …, N. The grid spacing is then reflected to contruct the grid on the full interval [a,b].
In the above, alpha is a stretching factor. As the number of gridpoints tends to infinity, the ratio of the largest and smallest grid cells tends to exp(alpha).
Parameters: |
|
---|
pybamm.
Chebyshev1DSubMesh
(lims, npts, tabs=None)[source]¶A class to generate a submesh on a 1D domain using Chebyshev nodes on the interval (a, b), given by
for k = 1, …, N, where N is the number of nodes. Note: this mesh then appends the boundary edges, so that the mesh edges are given by
Parameters: |
|
---|
pybamm.
UserSupplied1DSubMesh
(lims, npts, edges=None)[source]¶A class to generate a submesh on a 1D domain from a user supplied array of edges.
Parameters: |
|
---|