Previous topic

Operations on expression trees

Next topic

Jacobian

This Page

EvaluatorPython

class pybamm.EvaluatorPython(symbol)[source]

Converts a pybamm expression tree into pure python code that will calculate the result of calling evaluate(t, y) on the given expression tree.

Parameters

symbol (pybamm.Symbol) – The symbol to convert to python code