From 6c9246656d9a872366abe8de60a38576f2b6c209 Mon Sep 17 00:00:00 2001 From: Ferran Brosa Planella Date: Wed, 29 Mar 2023 13:32:57 +0100 Subject: [PATCH] #1788 added heat of mixing tests --- .../base_lithium_ion_tests.py | 65 ++++++++++++++++++- 1 file changed, 64 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_models/test_full_battery_models/test_lithium_ion/base_lithium_ion_tests.py b/tests/unit/test_models/test_full_battery_models/test_lithium_ion/base_lithium_ion_tests.py index 2e8f04a7d1..5e2c084e3a 100644 --- a/tests/unit/test_models/test_full_battery_models/test_lithium_ion/base_lithium_ion_tests.py +++ b/tests/unit/test_models/test_full_battery_models/test_lithium_ion/base_lithium_ion_tests.py @@ -67,10 +67,73 @@ def test_well_posed_thermal_2plus1D(self): } self.check_well_posedness(options) - def test_well_posed_heat_of_mixing(self): + def test_well_posed_isothermal_heat_source_hom(self): options = { + "calculate heat source for isothermal models": "true", + "thermal": "isothermal", + "heat of mixing": "true", + } + self.check_well_posedness(options) + + def test_well_posed_2plus1D_hom(self): + options = { + "current collector": "potential pair", + "dimensionality": 1, + "heat of mixing": "true", + } + self.check_well_posedness(options) + + options = { + "current collector": "potential pair", + "dimensionality": 2, + "heat of mixing": "true", + } + self.check_well_posedness(options) + + def test_well_posed_lumped_thermal_model_1D_hom(self): + options = {"thermal": "x-lumped", "heat of mixing": "true"} + self.check_well_posedness(options) + + def test_well_posed_x_full_thermal_model_hom(self): + options = { + "thermal": "x-full", + "heat of mixing": "true", + } + self.check_well_posedness(options) + + def test_well_posed_lumped_thermal_1plus1D_hom(self): + options = { + "current collector": "potential pair", + "dimensionality": 1, + "thermal": "lumped", + "heat of mixing": "true", + } + self.check_well_posedness(options) + + def test_well_posed_lumped_thermal_2plus1D_hom(self): + options = { + "current collector": "potential pair", + "dimensionality": 2, + "thermal": "lumped", "heat of mixing": "true", + } + self.check_well_posedness(options) + + def test_well_posed_thermal_1plus1D_hom(self): + options = { + "current collector": "potential pair", + "dimensionality": 1, "thermal": "x-lumped", + "heat of mixing": "true", + } + self.check_well_posedness(options) + + def test_well_posed_thermal_2plus1D_hom(self): + options = { + "current collector": "potential pair", + "dimensionality": 2, + "thermal": "x-lumped", + "heat of mixing": "true", } self.check_well_posedness(options)