Skip to content

Commit

Permalink
pybamm-team#1788 added heat of mixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brosaplanella committed Mar 29, 2023
1 parent 908632a commit 6c92466
Showing 1 changed file with 64 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6c92466

Please sign in to comment.