Skip to content

Commit

Permalink
#1070 add length scales
Browse files Browse the repository at this point in the history
  • Loading branch information
rtimms committed Jun 23, 2020
1 parent 6c7a06e commit 5a0f56e
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 24 deletions.
46 changes: 24 additions & 22 deletions examples/notebooks/models/pouch-cell-model.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ def __init__(
self.options = options
self.param = pybamm.standard_parameters_lithium_ion

# Set default length scales
self.length_scales = {
"current collector y": self.param.L_y,
"current collector z": self.param.L_z,
}

self.variables = self.get_fundamental_variables()
self.set_algebraic(self.variables)
self.set_boundary_conditions(self.variables)
Expand Down
3 changes: 2 additions & 1 deletion pybamm/parameters/standard_parameters_lead_acid.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@ def j0_p_Ox_dimensional(c_e, T):
rho_cp = pybamm.thermal_parameters.rho_cp

rho_k = pybamm.thermal_parameters.rho_k
rho = rho_n * l_n + rho_s * l_s + rho_p * l_p
# effective volumetric heat capacity
rho = (rho_cn * l_cn + rho_n * l_n + rho_s * l_s + rho_p * l_p + rho_cp * l_cp) / l

lambda_cn = pybamm.thermal_parameters.lambda_cn
lambda_n = pybamm.thermal_parameters.lambda_n
Expand Down
3 changes: 2 additions & 1 deletion pybamm/parameters/standard_parameters_lithium_ion.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ def chi(c_e):
rho_cp = pybamm.thermal_parameters.rho_cp

rho_k = pybamm.thermal_parameters.rho_k
rho = rho_n * l_n + rho_s * l_s + rho_p * l_p
# effective volumetric heat capacity
rho = (rho_cn * l_cn + rho_n * l_n + rho_s * l_s + rho_p * l_p + rho_cp * l_cp) / l

lambda_cn = pybamm.thermal_parameters.lambda_cn
lambda_n = pybamm.thermal_parameters.lambda_n
Expand Down

0 comments on commit 5a0f56e

Please sign in to comment.