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 |
---|
evaluate
(t=None, y=None, known_evals=None)[source]¶Acts as a drop-in replacement for pybamm.Symbol.evaluate()