Scalar#
- class pybamm.Scalar(value: int | float | number, name: str | None = None)[source]#
A node in the expression tree representing a scalar value.
- Parameters:
value (numeric) – the value returned by the node when evaluated
name (str, optional) – the name of the node. Defaulted to
str(value)
if not provided
Extends:
pybamm.expression_tree.symbol.Symbol
- property value#
The value returned by the node when evaluated.