- class pybamm.Mesh(geometry, submesh_types, var_pts)#
Mesh contains a list of submeshes on each subdomain.
Create meshes for potential ghost nodes on either side of each submesh, using self.submeshclass This will be useful for calculating the gradient with Dirichlet BCs.
Combine submeshes into a new submesh, using self.submeshclass Raises pybamm.DomainError if submeshes to be combined do not match up (edges are not aligned).
- class pybamm.SubMesh#
Base submesh class. Contains the position of the nodes, the number of mesh points, and (optionally) information about the tab locations.
- class pybamm.MeshGenerator(submesh_type, submesh_params=None)#
Base class for mesh generator objects that are used to generate submeshes.