Previous topic

Geometry

Next topic

Battery Geometry

This Page

Geometry

class pybamm.Geometry(geometry)[source]

A geometry class to store the details features of the cell geometry.

The values assigned to each domain are dictionaries containing the spatial variables in that domain, along with expression trees giving their min and maximum extents. For example, the following dictionary structure would represent a Geometry with a single domain “negative electrode”, defined using the variable x_n which has a range from 0 to the pre-defined parameter l_n.

{"negative electrode": {x_n: {"min": pybamm.Scalar(0), "max": l_n}}}

Extends: dict

Parameters:geometries (dict) – The dictionary to create the geometry with
parameters

Returns all the parameters in the geometry