def test_discharge_differential(self):
     options = {"surface form": "differential", "hydrolysis": "true"}
     model = pybamm.lead_acid.LOQS(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 2
0
 def test_particle_fast_diffusion(self):
     options = {"particle": "fast diffusion"}
     model = pybamm.lithium_ion.DFN(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 3
0
 def test_surface_form_algebraic(self):
     options = {"surface form": "algebraic"}
     model = pybamm.lithium_ion.DFN(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 4
0
 def test_basic_processing(self):
     options = {"thermal": "isothermal"}
     model = pybamm.lead_acid.Full(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all(t_eval=np.linspace(0, 3600 * 17),
                        solver=pybamm.CasadiSolver())
Esempio n. 5
0
 def test_basic_processing_with_capacitance(self):
     options = {"surface form": "differential"}
     model = pybamm.lead_acid.LOQS(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 6
0
 def test_basic_processing(self):
     model = pybamm.lead_acid.CompositeExtended()
     param = model.default_parameter_values
     param.update({"Current function [A]": 1})
     modeltest = tests.StandardModelTest(model, parameter_values=param)
     modeltest.test_all()
Esempio n. 7
0
 def test_zero_current(self):
     model = pybamm.lead_acid.LOQS()
     parameter_values = model.default_parameter_values
     parameter_values.update({"Current function [A]": 0})
     modeltest = tests.StandardModelTest(model, parameter_values=parameter_values)
     modeltest.test_all()
Esempio n. 8
0
 def test_well_posed_solvent_diffusion_limited(self):
     options = {"sei": "solvent-diffusion limited"}
     model = pybamm.lithium_ion.SPM(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 9
0
 def test_well_posed_ec_reaction_limited(self):
     options = {"sei": "ec reaction limited", "sei porosity change": True}
     model = pybamm.lithium_ion.SPM(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 10
0
 def test_basic_processing_python(self):
     options = {"thermal": "isothermal"}
     model = pybamm.lithium_ion.SPMe(options)
     model.convert_to_format = "python"
     modeltest = tests.StandardModelTest(model, solver=pybamm.ScipySolver())
     modeltest.test_all()
Esempio n. 11
0
 def test_basic_processing(self):
     options = {"side reactions": ["oxygen"]}
     model = pybamm.lead_acid.Full(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all(skip_output_tests=True,
                        t_eval=np.linspace(0, 3600 * 17))
Esempio n. 12
0
 def test_particle_uniform(self):
     options = {"particle": "uniform profile"}
     model = pybamm.lithium_ion.SPMe(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 13
0
 def test_well_posed_reaction_limited(self):
     options = {"sei": "reaction limited"}
     model = pybamm.lithium_ion.SPMe(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 14
0
 def test_basic_processing_differential(self):
     options = {"side reactions": ["oxygen"], "surface form": "differential"}
     model = pybamm.lead_acid.Full(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all(skip_output_tests=True)
Esempio n. 15
0
 def test_particle_quartic(self):
     options = {"particle": "quartic profile"}
     model = pybamm.lithium_ion.NewmanTobias(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 16
0
 def test_loss_active_material_reaction_both(self):
     options = {"loss of active material": "reaction-driven"}
     model = pybamm.lithium_ion.NewmanTobias(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
 def test_basic_processing_algebraic(self):
     options = {"side reactions": ["oxygen"], "surface form": "algebraic"}
     model = pybamm.lead_acid.Composite(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all(skip_output_tests=True)
Esempio n. 18
0
 def test_well_posed_constant(self):
     options = {"SEI": "constant"}
     model = pybamm.lithium_ion.NewmanTobias(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 19
0
 def test_basic_processing(self):
     model = pybamm.lead_acid.LOQS()
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 20
0
 def test_well_posed_reaction_limited_average_film_resistance(self):
     options = {"SEI": "reaction limited", "SEI film resistance": "average"}
     model = pybamm.lithium_ion.NewmanTobias(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 21
0
 def test_basic_processing_with_convection(self):
     model = pybamm.lead_acid.LOQS({"convection": "uniform transverse"})
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 22
0
 def test_well_posed_electron_migration_limited(self):
     options = {"SEI": "electron-migration limited"}
     model = pybamm.lithium_ion.NewmanTobias(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 23
0
 def test_basic_processing(self):
     options = {"surface form": "algebraic"}
     model = pybamm.lead_acid.LOQS(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 24
0
 def test_well_posed_interstitial_diffusion_limited(self):
     options = {"SEI": "interstitial-diffusion limited"}
     model = pybamm.lithium_ion.NewmanTobias(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 25
0
 def test_basic_processing(self):
     options = {"thermal": "isothermal"}
     model = pybamm.lithium_ion.SPM(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 26
0
 def test_well_posed_ec_reaction_limited(self):
     options = {"SEI": "ec reaction limited", "SEI porosity change": "true"}
     model = pybamm.lithium_ion.NewmanTobias(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 27
0
 def test_surface_form_differential(self):
     options = {"surface form": "differential"}
     model = pybamm.lithium_ion.DFN(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 28
0
 def test_particle_fickian(self):
     options = {"particle": "Fickian diffusion"}
     model = pybamm.lithium_ion.NewmanTobias(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Esempio n. 29
0
 def test_well_posed_constant(self):
     options = {"sei": "constant"}
     model = pybamm.lithium_ion.DFN(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
 def test_discharge_algebraic(self):
     options = {"surface form": "algebraic", "hydrolysis": "true"}
     model = pybamm.lead_acid.LOQS(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all(skip_output_tests=True)