pybamm.
Mesh
(geometry, submesh_types, var_pts)[source]¶Mesh contains a list of submeshes on each subdomain.
Extends: dict
Parameters: |
---|
add_ghost_meshes
()[source]¶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
(*submeshnames)[source]¶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).
Parameters: | submeshnames (list of str) – The names of the submeshes to be combined |
---|---|
Returns: | submesh – A new submesh with the class defined by self.submeshclass |
Return type: | self.submeshclass |