Previous topic

Scikit Finite Elements

Next topic

Solvers

This Page

Zero Dimensional Spatial Method

class pybamm.ZeroDimensionalMethod(options=None)[source]

A discretisation class for the zero dimensional mesh

Parameters:
boundary_value_or_flux(symbol, discretised_child, bcs=None)[source]

In 0D, the boundary value is the identity operator. See SpatialMethod.boundary_value_or_flux()

mass_matrix(symbol, boundary_conditions)[source]

Calculates the mass matrix for a spatial method. Since the spatial method is zero dimensional, this is simply the number 1.