Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 718 cooling area #1022

Merged
merged 67 commits into from
May 28, 2020
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
c5f9555
added geometry option
brosaplanella May 26, 2020
597eeb3
added cell surface area and volume
brosaplanella May 26, 2020
e6b60f0
started to implement arbitrary geometry, not finished
brosaplanella May 26, 2020
a78e169
#718 added arbitrary geometry lumped model
brosaplanella May 26, 2020
de548fb
#718 added thermal parameters arbitrary geometry
brosaplanella May 26, 2020
91e0bac
removed images from notebook testing
brosaplanella May 26, 2020
71d0b51
#718 added tests for li-ion lumped
brosaplanella May 26, 2020
ac08088
#1006 process t_sol length 1
rtimms May 26, 2020
9d4c5a4
#1006 add tests
rtimms May 26, 2020
9697530
#1006 process constant variables
rtimms May 26, 2020
612a7e0
Merge branch 'develop' into issue-1006-process-space-var
rtimms May 26, 2020
b597e1b
#718 implemented parameters arbitrary geometry lumped model
brosaplanella May 26, 2020
2e35319
#718 added parameter values for arbitrary geometry
brosaplanella May 26, 2020
716f0df
flake8
brosaplanella May 26, 2020
c052205
#1006 update error message
rtimms May 26, 2020
af5728a
fix typo
brosaplanella May 26, 2020
d261522
fixed typo
brosaplanella May 26, 2020
4b63b26
Merge branch 'develop' into issue-1006-process-space-var
rtimms May 26, 2020
6df3f12
#718 added parameters for arbitrary lumped model, assuming pouch
brosaplanella May 26, 2020
44ffd45
#718 x-lumped test runs pouch geometry
brosaplanella May 26, 2020
b4b802e
#718 fixed cooling surface areas (pouch geometry assumed)
brosaplanella May 26, 2020
fda5342
added geometry option
brosaplanella May 26, 2020
9232fe4
added cell surface area and volume
brosaplanella May 26, 2020
3d7dcb7
started to implement arbitrary geometry, not finished
brosaplanella May 26, 2020
cdbfba4
#718 added arbitrary geometry lumped model
brosaplanella May 26, 2020
22895f5
#718 added thermal parameters arbitrary geometry
brosaplanella May 26, 2020
f2b4567
removed images from notebook testing
brosaplanella May 26, 2020
be4375e
#718 added tests for li-ion lumped
brosaplanella May 26, 2020
5a361de
#718 implemented parameters arbitrary geometry lumped model
brosaplanella May 26, 2020
443e18c
#718 added parameter values for arbitrary geometry
brosaplanella May 26, 2020
004a9a2
flake8
brosaplanella May 26, 2020
2f51773
fix typo
brosaplanella May 26, 2020
0b9ef04
fixed typo
brosaplanella May 26, 2020
d1f3624
#718 added parameters for arbitrary lumped model, assuming pouch
brosaplanella May 26, 2020
5edc980
#718 x-lumped test runs pouch geometry
brosaplanella May 26, 2020
0e7d96a
#718 fixed cooling surface areas (pouch geometry assumed)
brosaplanella May 26, 2020
b18e92c
Merge branch 'issue-718-cooling-area' of https://github.com/ferranbro…
brosaplanella May 26, 2020
147d706
added #718 arbitrary geometry
brosaplanella May 26, 2020
4b9870c
#1023 add case for already discretised model
valentinsulzer May 26, 2020
7e68470
#1024 fix external variables
valentinsulzer May 26, 2020
e86523e
#1006 changelog
rtimms May 27, 2020
bb5f204
Merge pull request #1020 from pybamm-team/issue-1006-process-space-var
rtimms May 27, 2020
665f6c0
Merge pull request #1025 from pybamm-team/issue-1023-sim-disc-model
valentinsulzer May 27, 2020
c6932c0
#1024 merge develop and changelog
valentinsulzer May 27, 2020
2eb29a0
#1024 codacy
valentinsulzer May 27, 2020
8863c25
Merge pull request #1026 from pybamm-team/issue-1024-plot-external-va…
valentinsulzer May 27, 2020
3051d9e
#718 changed default geometry depending on the thermal model and adde…
brosaplanella May 28, 2020
28f7547
#718 fixed bug due to renaming geometry -> cell_geometry
brosaplanella May 28, 2020
01ca60d
added geometry option
brosaplanella May 26, 2020
f7a4109
added cell surface area and volume
brosaplanella May 26, 2020
6cc1bcb
started to implement arbitrary geometry, not finished
brosaplanella May 26, 2020
dc2de5e
#718 added arbitrary geometry lumped model
brosaplanella May 26, 2020
4946aec
#718 added thermal parameters arbitrary geometry
brosaplanella May 26, 2020
9344095
removed images from notebook testing
brosaplanella May 26, 2020
34fc27c
#718 added tests for li-ion lumped
brosaplanella May 26, 2020
b98db62
#718 implemented parameters arbitrary geometry lumped model
brosaplanella May 26, 2020
baedf2b
#718 added parameter values for arbitrary geometry
brosaplanella May 26, 2020
64a3e21
flake8
brosaplanella May 26, 2020
e002e08
fix typo
brosaplanella May 26, 2020
1434d85
fixed typo
brosaplanella May 26, 2020
4f01fba
#718 added parameters for arbitrary lumped model, assuming pouch
brosaplanella May 26, 2020
6e4b3ad
#718 x-lumped test runs pouch geometry
brosaplanella May 26, 2020
81959e6
#718 fixed cooling surface areas (pouch geometry assumed)
brosaplanella May 26, 2020
bf33460
added #718 arbitrary geometry
brosaplanella May 26, 2020
5afdbd1
#718 changed default geometry depending on the thermal model and adde…
brosaplanella May 28, 2020
1418521
#718 fixed bug due to renaming geometry -> cell_geometry
brosaplanella May 28, 2020
3c68bd0
resolved merge conflict
brosaplanella May 28, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Features

- Added arbitrary geometry to the lumped thermal model ([#718](https://github.com/pybamm-team/PyBaMM/issues/718))
- Added `BackwardIndefiniteIntegral` symbol ([#1014](https://github.com/pybamm-team/PyBaMM/pull/1014))
- Added `plot` and `plot2D` to enable easy plotting of `pybamm.Array` objects ([#1008](https://github.com/pybamm-team/PyBaMM/pull/1008))
- Updated effective current collector models and added example notebook ([#1007](https://github.com/pybamm-team/PyBaMM/pull/1007))
Expand Down
Binary file removed examples/notebooks/models/spm1.png
Binary file not shown.
Binary file removed examples/notebooks/models/spm2.png
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ Negative tab centre z-coordinate [m],0.114,Tab at top,
Positive tab width [m],0.04,,Estimated value
Positive tab centre y-coordinate [m],0.147,,Estimated value
Positive tab centre z-coordinate [m],0.114,Tab at top,
Cell cooling surface area [m2],1.54E-1,,
Cell volume [m3],2.70E-4,,
,,,
# Electrical,,,
Cell capacity [A.h],17,Manufacturer,
Typical current [A],1,,
Current function [A],1,default current function,
,,,
# Density,,,
Negative current collector density [kg.m-3],11300, same as electrode,
Negative current collector density [kg.m-3],11300," same as electrode",
Positive current collector density [kg.m-3],9375,same as electrode,

,,,
# Specific heat capacity,,,
Negative current collector specific heat capacity [J.kg-1.K-1],130,CRC Handbook of Chemistry and Physics,
Positive current collector specific heat capacity [J.kg-1.K-1],256,NIST Chemistry WebBook SRD69,
,,,
# Thermal conductivity,,,
Negative current collector thermal conductivity [W.m-1.K-1],35,CRC Handbook of Chemistry and Physics,
Positive current collector thermal conductivity [W.m-1.K-1],35,assume same as lead,

Positive current collector thermal conductivity [W.m-1.K-1],35,assume same as lead,
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Negative current collector surface heat transfer coefficient [W.m-2.K-1],0,,
Positive current collector surface heat transfer coefficient [W.m-2.K-1],0,,
Negative tab heat transfer coefficient [W.m-2.K-1],10,,
Positive tab heat transfer coefficient [W.m-2.K-1],10,,
Total heat transfer coefficient [W.m-2.K-1],10,,
Edge heat transfer coefficient [W.m-2.K-1],0.3,,

,,,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Negative tab centre z-coordinate [m],0.2, At top,
Positive tab width [m],0.044,,
Positive tab centre y-coordinate [m],0.137,,
Positive tab centre z-coordinate [m],0.2,At top,
Cell cooling surface area [m2],5.61E-2,,pouch
Cell volume [m3],4.62E-6,,pouch
,,,
# Current collector properties ,,,
Negative current collector conductivity [S.m-1],59.6E6,,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Positive electrode thickness [m],75.6E-6,Chen 2020,
Positive current collector thickness [m],16E-6,Chen 2020,
Electrode height [m],6.5E-2,Chen 2020,Not needed for 1D
Electrode width [m],1.58,Chen 2020,Not needed for 1D
Cell cooling surface area [m2],5.31E-3,Chen 2020,cylindrical
Cell volume [m3],2.42E-5,Chen 2020,cylindrical
,,,
# Current collector properties ,,,
Negative current collector conductivity [S.m-1],58411000,CRC Handbook,copper
Expand All @@ -29,4 +31,4 @@ Positive current collector thermal conductivity [W.m-1.K-1],237,CRC Handbook,alu
# Electrical,,,
Cell capacity [A.h],5,Chen 2020,
Typical current [A],5,Chen 2020,
Current function [A],5,default current function,
Current function [A],5,default current function,
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Positive electrode thickness [m],67E-06,Peyman MPM,
Positive current collector thickness [m],2.5E-05,Scott Moura FastDFN,no info from Peyman MPM
Electrode height [m],1,KOKAM SLPB78205130H,Not needed for 1D
Electrode width [m],0.2050,KOKAM SLPB78205130H,Not needed for 1D
Cell cooling surface area [m2],0.41,,pouch
Cell volume [m3]3.92E-5,,pouch
,,,
# Current collector properties ,,,
Negative current collector conductivity [S.m-1],59600000,LIONSIMBA,carbon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Positive electrode thickness [m],5.4E-05,,
Positive current collector thickness [m],2.5E-05,,
Electrode height [m],1.01E-01,,
Electrode width [m],8.50E-02,,
Cell cooling surface area [m2],1.72E-2,,pouch (single layer)
Cell volume [m3],1.61E-6,,pouch (single layer)
,,,
# Electrical,,,
Cell capacity [A.h], 0.15625, 7.5/48 (parameter set for a single layer cell),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Negative tab centre z-coordinate [m],0.137,,Need to find actual value for KOKAM
Positive tab width [m],0.04,,Need to find actual value for KOKAM cell
Positive tab centre y-coordinate [m],0.147,,Need to find actual value for KOKAM cell
Positive tab centre z-coordinate [m],0.137,,Need to find actual value for KOKAM cell
Cell cooling surface area [m2],5.69E-2,,pouch
Cell volume [m3],7.80E-6,,pouch
,,,
# Current collector properties ,,,
Negative current collector conductivity [S.m-1],59600000,LIONSIMBA,carbon
Expand All @@ -35,4 +37,4 @@ Positive current collector thermal conductivity [W.m-1.K-1],237,,
# Electrical,,,
Cell capacity [A.h],0.680616,,24 Ah/m2 * 0.137m * 0.207m
Typical current [A],0.680616,,1C current
Current function [A],0.680616,default current function,
Current function [A],0.680616,default current function,
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Positive current collector surface heat transfer coefficient [W.m-2.K-1],0,,
Negative tab heat transfer coefficient [W.m-2.K-1],0,,
Positive tab heat transfer coefficient [W.m-2.K-1],0,,
Edge heat transfer coefficient [W.m-2.K-1],5,Peyman MPM,
Total heat transfer coefficient [W.m-2.K-1],5,Peyman MPM,
Ambient temperature [K], 298.15,,
,,,
# Electrical
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ Name [units],Value,Reference,Notes
,,,
# Temperature
Reference temperature [K],298.15,25C,
Negative current collector surface heat transfer coefficient [W.m-2.K-1],0,default,
Positive current collector surface heat transfer coefficient [W.m-2.K-1],0,default,
Negative tab heat transfer coefficient [W.m-2.K-1],10,default,
Positive tab heat transfer coefficient [W.m-2.K-1],10,default,
Edge heat transfer coefficient [W.m-2.K-1],0.3,default,
Ambient temperature [K]," 298.15",,
Total heat transfer coefficient [W.m-2.K-1],10,default,
Ambient temperature [K],298.15,,
,,,
# Electrical
Number of electrodes connected in parallel to make a cell,1,,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Positive current collector surface heat transfer coefficient [W.m-2.K-1],0,Paper
Negative tab heat transfer coefficient [W.m-2.K-1],10,Paper does not consider thermal effects,
Positive tab heat transfer coefficient [W.m-2.K-1],10,Paper does not consider thermal effects,
Edge heat transfer coefficient [W.m-2.K-1],0.3,Paper does not consider thermal effects,
Ambient temperature [K], 298.15,,
Total heat transfer coefficient [W.m-2.K-1],10,Paper does not consider thermal effects,
Ambient temperature [K],298.15,,

,,,
# Electrical
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Positive current collector surface heat transfer coefficient [W.m-2.K-1],0,,
Negative tab heat transfer coefficient [W.m-2.K-1],25,,
Positive tab heat transfer coefficient [W.m-2.K-1],25,,
Edge heat transfer coefficient [W.m-2.K-1],0.3,,
Ambient temperature [K], 298.15,,
Total heat transfer coefficient [W.m-2.K-1],25,,
Ambient temperature [K],298.15,,

,,,
# Electrical
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ Name [units],Value,Reference,Notes
,,,
# Temperature
Reference temperature [K],298.15,25C,
Ambient temperature [K], 298.15,,
Ambient temperature [K],298.15,,
Negative current collector surface heat transfer coefficient [W.m-2.K-1],0,,
Positive current collector surface heat transfer coefficient [W.m-2.K-1],0,,
Negative tab heat transfer coefficient [W.m-2.K-1],10,,
Positive tab heat transfer coefficient [W.m-2.K-1],10,,
Edge heat transfer coefficient [W.m-2.K-1],0.3,,
Total heat transfer coefficient [W.m-2.K-1],10,,
,,,
# Electrical
Number of electrodes connected in parallel to make a cell,1,,
Expand Down
11 changes: 8 additions & 3 deletions pybamm/models/full_battery_models/base_battery_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def options(self, extra_options):
"current collector": "uniform",
"particle": "Fickian diffusion",
"thermal": "isothermal",
"geometry": "arbitrary",
"external submodels": [],
"sei": None,
}
Expand Down Expand Up @@ -273,6 +274,10 @@ def options(self, extra_options):
raise pybamm.OptionError(
"Unknown thermal model '{}'".format(options["thermal"])
)
if options["geometry"] not in ["arbitrary", "pouch"]:
raise pybamm.OptionError(
"Unknown geometry '{}'".format(options["geometry"])
)
if options["sei"] not in [
None,
"constant",
Expand Down Expand Up @@ -548,13 +553,13 @@ def set_thermal_submodel(self):

elif self.options["thermal"] == "lumped":
thermal_submodel = pybamm.thermal.Lumped(
self.param, self.options["dimensionality"]
self.param, self.options["dimensionality"], self.options["geometry"]
)

elif self.options["thermal"] == "x-lumped":
if self.options["dimensionality"] == 0:
# With 0D current collectors x-lumped is equivalent to lumped
thermal_submodel = pybamm.thermal.Lumped(self.param)
# With 0D current collectors x-lumped is equivalent to lumped pouch
thermal_submodel = pybamm.thermal.Lumped(self.param, geometry="pouch")
elif self.options["dimensionality"] == 1:
thermal_submodel = pybamm.thermal.pouch_cell.CurrentCollector1D(
self.param
Expand Down
85 changes: 48 additions & 37 deletions pybamm/models/submodels/thermal/lumped.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ class Lumped(BaseThermal):
The parameters to use for this submodel
cc_dimension: int, optional
The dimension of the current collectors. Can be 0 (default), 1 or 2.
geometry: string, optional
The geometry for the lumped thermal submodel. Can be "arbitrary" (default) or
pouch.

**Extends:** :class:`pybamm.thermal.BaseThermal`
"""

def __init__(self, param, cc_dimension=0):
def __init__(self, param, cc_dimension=0, geometry="arbitrary"):
self.geometry = geometry
super().__init__(param, cc_dimension)

def get_fundamental_variables(self):
Expand Down Expand Up @@ -49,46 +53,53 @@ def set_rhs(self, variables):
T_amb = variables["Ambient temperature"]

# Account for surface area to volume ratio in cooling coefficient
# Note: assumes pouch cell geometry. The factor 1/delta^2 comes from
# the choice of non-dimensionalisation.
# TODO: allow for arbitrary surface area to volume ratio in order to model
# different cell geometries (see #718)
cell_volume = self.param.l * self.param.l_y * self.param.l_z

yz_cell_surface_area = self.param.l_y * self.param.l_z
yz_surface_cooling_coefficient = (
-(self.param.h_cn + self.param.h_cp)
* yz_cell_surface_area
/ cell_volume
/ (self.param.delta ** 2)
)
# The factor 1/delta^2 comes from the choice of non-dimensionalisation.
if self.geometry == "pouch":
cell_volume = self.param.l * self.param.l_y * self.param.l_z

yz_cell_surface_area = self.param.l_y * self.param.l_z
yz_surface_cooling_coefficient = (
-(self.param.h_cn + self.param.h_cp)
* yz_cell_surface_area
/ cell_volume
/ (self.param.delta ** 2)
)

negative_tab_area = self.param.l_tab_n * self.param.l_cn
negative_tab_cooling_coefficient = (
-self.param.h_tab_n * negative_tab_area / cell_volume / self.param.delta
)
negative_tab_area = self.param.l_tab_n * self.param.l_cn
negative_tab_cooling_coefficient = (
-self.param.h_tab_n * negative_tab_area / cell_volume / self.param.delta
)

positive_tab_area = self.param.l_tab_p * self.param.l_cp
positive_tab_cooling_coefficient = (
-self.param.h_tab_p * positive_tab_area / cell_volume / self.param.delta
)
positive_tab_area = self.param.l_tab_p * self.param.l_cp
positive_tab_cooling_coefficient = (
-self.param.h_tab_p * positive_tab_area / cell_volume / self.param.delta
)

edge_area = (
2 * self.param.l_y * self.param.l
+ 2 * self.param.l_z * self.param.l
- negative_tab_area
- positive_tab_area
)
edge_cooling_coefficient = (
-self.param.h_edge * edge_area / cell_volume / self.param.delta
)
edge_area = (
2 * self.param.l_y * self.param.l
+ 2 * self.param.l_z * self.param.l
- negative_tab_area
- positive_tab_area
)
edge_cooling_coefficient = (
-self.param.h_edge * edge_area / cell_volume / self.param.delta
)

total_cooling_coefficient = (
yz_surface_cooling_coefficient
+ negative_tab_cooling_coefficient
+ positive_tab_cooling_coefficient
+ edge_cooling_coefficient
)
total_cooling_coefficient = (
yz_surface_cooling_coefficient
+ negative_tab_cooling_coefficient
+ positive_tab_cooling_coefficient
+ edge_cooling_coefficient
)
elif self.geometry == "arbitrary":
cell_surface_area = self.param.a_cooling
cell_volume = self.param.v_cell
total_cooling_coefficient = (
-self.param.h_total
* cell_surface_area
/ cell_volume
/ (self.param.delta ** 2)
)

self.rhs = {
T_vol_av: (
Expand Down
4 changes: 4 additions & 0 deletions pybamm/parameters/geometric_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
L_y = pybamm.Parameter("Electrode width [m]")
L_z = pybamm.Parameter("Electrode height [m]")
A_cc = L_y * L_z # Area of current collector
A_cooling = pybamm.Parameter("Cell cooling surface area [m2]")
V_cell = pybamm.Parameter("Cell volume [m3]")

# Tab geometry
L_tab_n = pybamm.Parameter("Negative tab width [m]")
Expand Down Expand Up @@ -55,6 +57,8 @@
l_y = L_y / L_z
l_z = L_z / L_z
a_cc = l_y * l_z
a_cooling = A_cooling / (L_z ** 2)
v_cell = V_cell / (L_x * L_z ** 2)

l = L / L_x
delta = L_x / L_z # Aspect ratio
Expand Down
5 changes: 5 additions & 0 deletions pybamm/parameters/standard_parameters_lead_acid.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
L_y = pybamm.geometric_parameters.L_y
L_z = pybamm.geometric_parameters.L_z
A_cc = pybamm.geometric_parameters.A_cc
A_cooling = pybamm.geometric_parameters.A_cooling
V_cell = pybamm.geometric_parameters.V_cell
W = L_y
H = L_z
A_cs = A_cc
Expand Down Expand Up @@ -315,6 +317,8 @@ def j0_p_Ox_dimensional(c_e, T):
l_y = pybamm.geometric_parameters.l_y
l_z = pybamm.geometric_parameters.l_z
a_cc = pybamm.geometric_parameters.a_cc
a_cooling = pybamm.geometric_parameters.a_cooling
v_cell = pybamm.geometric_parameters.v_cell
l = pybamm.geometric_parameters.l
delta = pybamm.geometric_parameters.delta
# In lead-acid the current collector and electrodes are the same (same thickness)
Expand Down Expand Up @@ -455,6 +459,7 @@ def j0_p_Ox_dimensional(c_e, T):
h_tab_p = pybamm.thermal_parameters.h_tab_p
h_cn = pybamm.thermal_parameters.h_cn
h_cp = pybamm.thermal_parameters.h_cp
h_total = pybamm.thermal_parameters.h_total

B = (
i_typ
Expand Down
5 changes: 5 additions & 0 deletions pybamm/parameters/standard_parameters_lithium_ion.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
L_z = pybamm.geometric_parameters.L_z
L = pybamm.geometric_parameters.L
A_cc = pybamm.geometric_parameters.A_cc
A_cooling = pybamm.geometric_parameters.A_cooling
V_cell = pybamm.geometric_parameters.V_cell

# Tab geometry
L_tab_n = pybamm.geometric_parameters.L_tab_n
Expand Down Expand Up @@ -290,6 +292,8 @@ def U_p_dimensional(sto, T):
l_y = pybamm.geometric_parameters.l_y
l_z = pybamm.geometric_parameters.l_z
a_cc = pybamm.geometric_parameters.a_cc
a_cooling = pybamm.geometric_parameters.a_cooling
v_cell = pybamm.geometric_parameters.v_cell
l = pybamm.geometric_parameters.l
delta = pybamm.geometric_parameters.delta

Expand Down Expand Up @@ -400,6 +404,7 @@ def chi(c_e):
h_tab_p = pybamm.thermal_parameters.h_tab_p
h_cn = pybamm.thermal_parameters.h_cn
h_cp = pybamm.thermal_parameters.h_cp
h_total = pybamm.thermal_parameters.h_total

B = (
i_typ
Expand Down
3 changes: 3 additions & 0 deletions pybamm/parameters/thermal_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
h_tab_p_dim = pybamm.Parameter("Positive tab heat transfer coefficient [W.m-2.K-1]")
h_edge_dim = pybamm.Parameter("Edge heat transfer coefficient [W.m-2.K-1]")

h_total_dim = pybamm.Parameter("Total heat transfer coefficient [W.m-2.K-1]")

# Typical temperature rise
Delta_T = pybamm.Scalar(1)

Expand Down Expand Up @@ -110,6 +112,7 @@
h_tab_p = h_tab_p_dim * pybamm.geometric_parameters.L_x / lambda_eff_dim
h_cn = h_cn_dim * pybamm.geometric_parameters.L_x / lambda_eff_dim
h_cp = h_cp_dim * pybamm.geometric_parameters.L_x / lambda_eff_dim
h_total = h_total_dim * pybamm.geometric_parameters.L_x / lambda_eff_dim


T_init = (T_init_dim - T_ref) / Delta_T
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def test_compare_outputs_thermal(self):
# load models - for the default params we expect x-full and lumped to
# agree as the temperature is practically independent of x
options = [{"thermal": opt} for opt in ["lumped", "x-full"]]
options.append({"thermal": "lumped", "geometry": "pouch"})

model_combos = [
([pybamm.lithium_ion.SPM(opt) for opt in options]),
([pybamm.lithium_ion.SPMe(opt) for opt in options]),
Expand Down
Loading