Ejemplo n.º 1
0
 def to_casadi(self,
               t=None,
               y=None,
               y_dot=None,
               inputs=None,
               casadi_symbols=None):
     """
     Convert the expression tree to a CasADi expression tree.
     See :class:`pybamm.CasadiConverter`.
     """
     return pybamm.CasadiConverter(casadi_symbols).convert(
         self, t, y, y_dot, inputs)
Ejemplo n.º 2
0
 def test_Andersson_2019(self):
     citations = pybamm.citations
     citations._reset()
     self.assertNotIn("Andersson2019", citations._papers_to_cite)
     pybamm.CasadiConverter()
     self.assertIn("Andersson2019", citations._papers_to_cite)