Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 15, 2024
1 parent 3f5ee7a commit 344069e
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def get_coupled_variables(self, variables):
l_cr = variables[f"{Domain} {self.phase_name}particle crack length [m]"]
# # compressive stress will not lead to crack propagation
dK_SIF = stress_t_surf * b_cr * pybamm.sqrt(np.pi * l_cr) * (stress_t_surf >= 0)
#Eac_cr = self.phase_param.Eac_cr # Mark Ruihe Add arrhenius on 230617
#arrhenius = pybamm.exp(Eac_cr / pybamm.constants.R * (1 / T - 1 / 298.15))
# Eac_cr = self.phase_param.Eac_cr # Mark Ruihe Add arrhenius on 230617
# arrhenius = pybamm.exp(Eac_cr / pybamm.constants.R * (1 / T - 1 / 298.15))
dl_cr = k_cr * (dK_SIF**m_cr) / 3600 # divide by 3600 to replace t0_cr
variables.update(
{
Expand Down Expand Up @@ -106,7 +106,9 @@ def set_initial_conditions(self, variables):

l_cr_0 = self.phase_param.l_cr_0
if self.x_average is True:
l_cr = variables[f"X-averaged {domain} {self.phase_name}particle crack length [m]"]
l_cr = variables[
f"X-averaged {domain} {self.phase_name}particle crack length [m]"
]
else:
l_cr = variables[
f"X-averaged {domain} {self.phase_name}particle crack length [m]"
Expand All @@ -118,7 +120,9 @@ def add_events_from(self, variables):
domain, Domain = self.domain_Domain

if self.x_average is True:
l_cr = variables[f"X-averaged {domain} {self.phase_name}particle crack length [m]"]
l_cr = variables[
f"X-averaged {domain} {self.phase_name}particle crack length [m]"
]
else:
l_cr = variables[
f"X-averaged {domain} {self.phase_name}particle crack length [m]"
Expand Down

0 comments on commit 344069e

Please sign in to comment.