Previous topic

Parameter

Next topic

Independent Variable

This Page

Variable

class pybamm.Variable(name, domain=None, auxiliary_domains=None)[source]

A node in the expression tree represending a dependent variable

This node will be discretised by Discretisation and converted to a Vector node.

Parameters:
  • name (str) – name of the node
  • domain (iterable of str) – list of domains that this variable is valid over
  • auxiliary_domains (dict) – dictionary of auxiliary domains ({‘secondary’: …, ‘tertiary’: …}). For example, for the single particle model, the particle concentration would be a Variable with domain ‘negative partilce’ and secondary auxiliary domain ‘current collector’. For the DFN, the particle concentration would be a Variable with domain ‘negative particle’, secondary domain ‘negative electrode’ and tertiary domain ‘current collector’
  • *Extends
evaluate_for_shape()[source]

See pybamm.Symbol.evaluate_for_shape_using_domain()

new_copy()[source]

See pybamm.Symbol.new_copy().