From 333e5c0e8d7034e077a1257c86c05e87f2825fba Mon Sep 17 00:00:00 2001 From: martinjrobins Date: Wed, 6 Mar 2024 16:33:50 +0000 Subject: [PATCH] #63 events arn't final --- libraries/pybamm-developer/01_ode.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/pybamm-developer/01_ode.md b/libraries/pybamm-developer/01_ode.md index c3903d39..90287c6b 100644 --- a/libraries/pybamm-developer/01_ode.md +++ b/libraries/pybamm-developer/01_ode.md @@ -183,10 +183,8 @@ solve the model equations over time. ## PyBaMM events - -The final thing we need to define for the reservoir model is the events. An -event is a condition that can be used to stop the solver, for example when the -voltage reaches a certain value. In PyBaMM an event can be defined using the +An event is a condition that can be used to stop the solver, for example when +the voltage reaches a certain value. In PyBaMM an event can be defined using the [`pybamm.Event`](https://docs.pybamm.org/en/stable/source/api/events/event.html) class. For example, if you wanted to define an event that stops the solver when the time reaches 3, you would write