Skip to content

Commit

Permalink
#1082 remove particle events
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinsulzer committed Mar 27, 2021
1 parent 05c091d commit c2fd8a5
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions pybamm/models/submodels/particle/base_particle.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,22 +143,3 @@ def _get_standard_flux_variables(self, N_s, N_s_xav):
}

return variables

def set_events(self, variables):
c_s_surf = variables[self.domain + " particle surface concentration"]

self.events.append(
pybamm.Event(
"Minumum " + self.domain.lower() + " particle surface concentration",
pybamm.min(c_s_surf),
pybamm.EventType.TERMINATION,
)
)

self.events.append(
pybamm.Event(
"Maximum " + self.domain.lower() + " particle surface concentration",
pybamm.max(c_s_surf),
pybamm.EventType.TERMINATION,
)
)

0 comments on commit c2fd8a5

Please sign in to comment.