Input Parameter#

class pybamm.InputParameter(name: str, domain: list[str] | str | None = None, expected_size: int | None = None)[source]#

A node in the expression tree representing an input parameter.

This node’s value can be set at the point of solving, allowing parameter estimation and control

Parameters:
  • name (str) – name of the node

  • domain (iterable of str, or str) – list of domains over which the node is valid (empty list indicates the symbol is valid over all domains)

  • expected_size (int) – The size of the input parameter expected, defaults to 1 (scalar input)

Extends: pybamm.expression_tree.symbol.Symbol

create_copy() InputParameter[source]#

See pybamm.Symbol.new_copy().

to_json()[source]#

Method to serialise an InputParameter object into JSON.