pybamm.
ScikitSubMesh2D
(edges, coord_sys, tabs)[source]¶2D submesh class. Contains information about the 2D finite element mesh. Note: This class only allows for the use of piecewise-linear triangular finite elements.
Parameters: |
|
---|
pybamm.
ScikitUniform2DSubMesh
(lims, npts)[source]¶Contains information about the 2D finite element mesh with uniform grid spacing (can be different spacing in y and z). Note: This class only allows for the use of piecewise-linear triangular finite elements.
Parameters: |
|
---|
pybamm.
ScikitExponential2DSubMesh
(lims, npts, side='top', stretch=2.3)[source]¶Contains information about the 2D finite element mesh generated by taking the tensor product of a uniformly spaced grid in the y direction, and a unequally spaced grid in the z direction in which the points are clustered close to the top boundary using an exponential formula on the interval [a,b]. The gridpoints in the z direction are given by
for k = 1, …, N, where N is the number of nodes. Here 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).
Note: in the future this will be extended to allow points to be clustered near any of the boundaries.
Parameters: |
|
---|
pybamm.
ScikitChebyshev2DSubMesh
(lims, npts)[source]¶Contains information about the 2D finite element mesh generated by taking the tensor product of two 1D meshes which use 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 edgess, so that the 1D mesh edges are given by
Note: This class only allows for the use of piecewise-linear triangular finite elements.
Parameters: |
|
---|
pybamm.
UserSupplied2DSubMesh
(lims, npts, y_edges=None, z_edges=None)[source]¶A class to generate a tensor product submesh on a 2D domain by using two user
supplied vectors of edges: one for the y-direction and one for the z-direction.
Note: this mesh should be created using UserSupplied2DSubMeshGenerator
.
Parameters: |
|
---|