Skip to content

Commit

Permalink
pybamm-team#1117 still needs debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
brosaplanella committed Jul 30, 2020
1 parent 1849f63 commit 7567a25
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,17 @@ def _get_standard_concentration_variables(self, c_e_n, c_e_s, c_e_p):
c_e_s_av = pybamm.x_average(c_e_s)
c_e_p_av = pybamm.x_average(c_e_p)

# eps_n = self.param.epsilon_n
# eps_s = self.param.epsilon_s
# eps_p = self.param.epsilon_p
# eps = pybamm.Concatenation(eps_n, eps_s, eps_p)
# if "epsilon_n" in vars(self.param).values():
# eps_n = self.param.epsilon_n
# eps_s = self.param.epsilon_s
# eps_p = self.param.epsilon_p
# eps = pybamm.Concatenation(eps_n, eps_s, eps_p)

# c_e_total = pybamm.x_average(eps * c_e)
# c_e_total = pybamm.x_average(eps * c_e)

# raise NotImplementedError("I entered the if statement!!!!")
# else:
# c_e_total = pybamm.x_average(c_e)
c_e_total = c_e

variables = {
Expand Down
2 changes: 1 addition & 1 deletion pybamm/models/submodels/particle/base_particle.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _get_standard_concentration_variables(self, c_s, c_s_xav):
+ " electrode "
+ "volume-averaged concentration [mol.m-3]": c_s_vol_av * c_scale,
self.domain + " electrode average extent of lithiation": c_s_rav,
"Total lithium concentration in "
"Total lithium in "
+ self.domain.lower()
+ " electrode [mol.m-2]": c_s_vol_av * c_scale * L,
}
Expand Down

0 comments on commit 7567a25

Please sign in to comment.