pybamm.Variable(name, domain=None, auxiliary_domains=None, bounds=None)[source]¶A node in the expression tree represending a dependent variable
This node will be discretised by Discretisation and converted
to a pybamm.StateVector node.
| Parameters: |
|
|---|
diff(variable)[source]¶Differentiate a symbol with respect to a variable. For any symbol that can be differentiated, return 1 if differentiating with respect to yourself, self._diff(variable) if variable is in the expression tree of the symbol, and zero otherwise.
| Parameters: | variable (pybamm.Symbol) – The variable with respect to which to differentiate |
|---|
pybamm.VariableDot(name, domain=None, auxiliary_domains=None, bounds=None)[source]¶A node in the expression tree represending the time derviative of a dependent variable
This node will be discretised by Discretisation and converted
to a pybamm.StateVectorDot node.
| Parameters: |
|
|---|
diff(variable)[source]¶Differentiate a symbol with respect to a variable. For any symbol that can be differentiated, return 1 if differentiating with respect to yourself, self._diff(variable) if variable is in the expression tree of the symbol, and zero otherwise.
| Parameters: | variable (pybamm.Symbol) – The variable with respect to which to differentiate |
|---|
pybamm.ExternalVariable(name, size, domain=None, auxiliary_domains=None)[source]¶A node in the expression tree representing an external variable variable
This node will be discretised by Discretisation and converted
to a Vector node.
| Parameters: |
|
|---|
diff(variable)[source]¶Differentiate a symbol with respect to a variable. For any symbol that can be differentiated, return 1 if differentiating with respect to yourself, self._diff(variable) if variable is in the expression tree of the symbol, and zero otherwise.
| Parameters: | variable (pybamm.Symbol) – The variable with respect to which to differentiate |
|---|
size¶Size of an object, found by evaluating it with appropriate t and y